James, on 15 March 2013 - 09:50 AM, said:
Heh, just wondering....what exactly is this 'lunatic' thing I see all the time in the changelog? I've seen it time and time again and always wondered.
Congrats for being the first to ask about Lunatic after 1.5 years of development

. Bonus points will be awarded for finding the first post containing an allusion to it. Don't search for too long!
TerminX has given a good basic overview of Lunatic, and I intend to formally introduce it when the time is ripe. Right now, just a couple of clarifications.
TerminX, on 16 March 2013 - 12:36 PM, said:
There is, however, a way to dump the automatically generated Lua made from the translated CONs to files on disk which can then be used as the base for a Lua version of a mod previously written in CON.
This should only be used for educational purposes. As TX mentioned, Lua code usually is much more terse that the corresponding CON code, but another reason is that the generated Lua code makes use of internal Lunatic interfaces which are off-limits to users. (The corresponding identifiers all start with an underscore.)
Quote
Oh, one more thing: if anyone wants to play with the work-in-progress version of Lunatic now, you need to compile your own builds. EDuke32 cannot be compiled with both our existing CON system and Lunatic enabled; it's one or the other (and Lunatic and its CON implementation are definitely incomplete).
Also, for translating large CON mods like AMC TC, LuaJIT needs to be compiled with an increased C stack size, and LPeg needs to have one change done to prevent overflowing a 16-bit integer. Not that they would work as expected at this point, though.