About This File
Edited by Lindor
What's New in Version 1.0.9 See changelog
fixed an ULTRA WIERD lua issue which came from loading the same module from two different running threads:
Enable.exe loads modules/scripts/Update.lua which loads modules/scripts/gen_IDs_bonus.lua which loads modules/scripts/hardcoded_boni.lua. Then later in the execution, Enable.exe loads hardcoded_boni.lua too.
- at least it should, but not only does Enable.exe not load hardcoded_boni.lua, even worse: it takes the table into which gen_IDs_bonus.lua loaded hardcoded_boni.lua, together with all changes that gen_IDs_bonus.lua does to that table!
The same happened with Update.lua.
This issue has been addressed by creating a temporary copy of hardcoded_boni.lua with a different name for each .exe and loading the module from there (and deleting the copy afterwards).
This is an ultra wierd bug and I think this is a lua compiler bug, not a mistake on my end. Because if that's how it's intended to behave, then well rip because it puts up so many possible undetected bugs when working with modules, I can't underestimate how bad this is.