Page 1 of 1

Using OpenAI chatGPT for .lua programming

Posted: Wed Jan 04, 2023 7:56 pm
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

Re: Using OpenAI chatGPT for .lua programming

Posted: Wed Jan 04, 2023 10:56 pm
by boogabooga
I think you have to train it on the Command Lua API?

Re: Using OpenAI chatGPT for .lua programming

Posted: Wed Jan 04, 2023 11:47 pm
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.

Re: Using OpenAI chatGPT for .lua programming

Posted: Thu Jan 05, 2023 3:36 am
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™.

Re: Using OpenAI chatGPT for .lua programming

Posted: Thu Jan 05, 2023 9:11 pm
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

Re: Using OpenAI chatGPT for .lua programming

Posted: Tue Jan 31, 2023 3:57 am
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?

Re: Using OpenAI chatGPT for .lua programming

Posted: Tue Jan 31, 2023 8:21 am
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.

Re: Using OpenAI chatGPT for .lua programming

Posted: Tue Jan 31, 2023 1:27 pm
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