Hi!
I've been working on a thing the last few days and today I got the first important thing working. In a few words: I hooked up a DLL in order to register new functions / libraries to Lua. Today I was able to do it the first time and run my helloworld() function while Supreme Commander was running.
It wasn't so easy because it seems those "slight changes" which are mentioned in the Supreme Commander Lua documentation are not so "slightly" after all - at least so far as I can tell.
However, the question I'd like to ask here is if this can actually be useful for you guys. Maybe I am not the first one who did it and the community decided against it already but I'd like to ask if this could be something of interest to us.
Some of you might have seen me asking in the FAF Chat a few things about programming an AI which can be controlled remotely. I am not sure yet if even though my hack works whether this is something doable but well - I can write arbitrary C functions, compile it into a DLL and run the code by calling it from Lua.
But maybe there are other things we're missing out in SupCom's implementation of Lua and maybe there's a way to do a few things about some restriction we're facing.
I already said too much. Please just let me know what you think about this. If the response is positive I'm willing to continue to work on it and of course share it with you guys. There's of course a lot more to say about this but first I need to know what you guys think.
BR; Stefan