Today I learnt...
Posted: Mon Jun 06, 2022 4:54 pm
... that a lua file has a limit of 200 local variables?
Any fix for this? (This is the way I make save files.)
Code: Select all
Error
toybox/LGML.lua:125: Syntax error: hunt_TMP:201: main function has more than 200 local variables
Traceback
[C]: in function 'load'
toybox/LGML.lua:125: in function 'getSettingsToSave'
toybox/LGML.lua:165: in function 'saveData'
hunt/GameScreen.lua:1346: in function 'loadOverworld'
hunt/GameScreen.lua:1201: in function 'exitPlace'
hunt/Player.lua:393: in function 'action'
toybox/libs/chrono.lua:38: in function 'update'
toybox/entities/Room.lua:50: in function '__step'
toybox/entities/Game.lua:59: in function '__step'
toybox/LGML.lua:225: in function 'update'
[C]: in function 'xpcall'