Using OpenAI chatGPT for .lua programming

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
DmitriyBlade
Posts: 93
Joined: Mon Dec 20, 2021 3:22 pm
Location: Russia

Using OpenAI chatGPT for .lua programming

Post by DmitriyBlade »

i want suggest to try the quite impressive thing :shock:
it is not that good for a cmo, it takes many variables from DCS, which i guess uses .lua too
and there is not that much code on github to learn from

https://chat.openai.com/chat

Image
boogabooga
Posts: 973
Joined: Wed Jul 18, 2018 12:05 am

Re: Using OpenAI chatGPT for .lua programming

Post by boogabooga »

I think you have to train it on the Command Lua API?
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
thewood1
Posts: 9957
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Using OpenAI chatGPT for .lua programming

Post by thewood1 »

I have a number of my staff looking at ChatGTP to possibly write reports and develop dashboards. Its one of those things that gets people all excited until they have to use for something real. There needs to be some kind of extension for CMO-based lua. Even if you have that, there are still big holes in ChatGPT for anything thats nuanced. It misses lots of detail and everything we have executed so far has taken more work to clean up than if an analyst just wrote it. I suspect lua coding would be similar.

It might get there in time, but its most likely a couple years away from being a true productivity tool except in the most generic applications.
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

Re: Using OpenAI chatGPT for .lua programming

Post by KnightHawk75 »

Reminds me some time soon I gotta go update my Sumneko + Emmy partial intellisense attempt for all the updates in cmo in the last ~year, so much to get caught up on, maybe I'll wait for next milestone since it's apparently coming soon™.
BDukes
Posts: 2653
Joined: Wed Dec 27, 2017 12:59 pm

Re: Using OpenAI chatGPT for .lua programming

Post by BDukes »

KnightHawk75 wrote: Thu Jan 05, 2023 3:36 am Reminds me some time soon I gotta go update my Sumneko + Emmy partial intellisense attempt for all the updates in cmo in the last ~year, so much to get caught up on, maybe I'll wait for next milestone since it's apparently coming soon™.
Its still awesome!

M
Don't call it a comeback...
kahta
Posts: 553
Joined: Sat Sep 21, 2019 6:42 pm
Location: Arkansas

Re: Using OpenAI chatGPT for .lua programming

Post by kahta »

boogabooga wrote: Wed Jan 04, 2023 10:56 pm I think you have to train it on the Command Lua API?
How might one go about doing this?
User avatar
blu3s
Posts: 1025
Joined: Fri Jul 08, 2022 9:45 am

Re: Using OpenAI chatGPT for .lua programming

Post by blu3s »

KnightHawk75 wrote: Thu Jan 05, 2023 3:36 am Reminds me some time soon I gotta go update my Sumneko + Emmy partial intellisense attempt for all the updates in cmo in the last ~year, so much to get caught up on, maybe I'll wait for next milestone since it's apparently coming soon™.
I have updated some functions that create errors with parameters, I have created a new class for FillMagsLoadout function,etc. If you need it you can send me a dm and I'll be happy to help you.
BDukes
Posts: 2653
Joined: Wed Dec 27, 2017 12:59 pm

Re: Using OpenAI chatGPT for .lua programming

Post by BDukes »

I've been using ChatGPT for basic universal coding things and cleaning up my code. So you can stuff like naming ships or picking a point between two coordinates, and it generally comes up with stuff that works in CMO Lua. Obviously, it doesn't know CMO-specific things and is not sure training it would be worth it as its beta and may someday go behind a pay wall or get reset etc.

Mike
Don't call it a comeback...
Post Reply

Return to “Command: Modern Operations series”