Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
COMMON: Move the Lua code from SWORD25 to COMMON #1566
Thanks for this.
Is there any use for LUA scripts outside of the sword25 engine?
A lot of code has been removed from the LUA interpreter, since it is quite specific to the needs of the sword25 engine. If we need a more generic LUA interpreter, we should adapt the full original LUA code, not this engine-specific interpreter
Well, the original sources have been adapted, but some unused (in sword25) non-portable LUA functionality has been removed, or adapted. An example is the LUA I/O code. Check the history:
If you don’t need this functionality, then the interpreter can be used as-is, otherwise, it’ll need to be adapted for this engine. It would be best if you checked the game’s scripts for these cases.