Page 1 of 1

What Lua Version does the game use?

Posted: Fri Feb 03, 2017 1:56 pm
by RalleYTN
I'm currently working on a GUI program that should make it easy to create mods with a few clicks.
I also want to provide a simple Lua Editor. But For the auto completetion I have to know what version of Lua the game is using so that no functions are shown that are deprecated or not even implemented.

Also a short sneak peek on the software as attachment.

Re: What Lua Version does the game use?

Posted: Fri Feb 03, 2017 2:08 pm
by prg

Code: Select all

/c game.player.print(_VERSION)

Code: Select all

Lua 5.2

Re: What Lua Version does the game use?

Posted: Fri Feb 03, 2017 2:09 pm
by daniel34
Lua 5.2.1.

Re: What Lua Version does the game use?

Posted: Fri Feb 03, 2017 2:38 pm
by RalleYTN
prg wrote:

Code: Select all

/c game.player.print(_VERSION)

Code: Select all

Lua 5.2
daniel34 wrote:Lua 5.2.1.
Thank you very much. :)

Re: What Lua Version does the game use?

Posted: Sat Feb 04, 2017 8:32 pm
by aubergine18
If possible, please make it so your editor sets up the common directory structure (based on what's in mod) as that will make it much easier should community need to offer support or provide long-term maintenance of mod at later date.

Re: What Lua Version does the game use?

Posted: Sun Feb 05, 2017 3:47 am
by Adil
There exists `_VERSION` global variable, which reports current version. (5.2 indeed)