'Is there a way to dynamically call functions from different files in Lua 5.0?
I'm trying to execute Lua scripts, but the file names of the files that will contain the functions that need to be run are variable.
I've tried looking for ways to include whole folders of Lua files at a time, implement some kind of dependency injection, use variables across files without including the files. All of them have yielded no result.
I'm using a Lua 5.0.2 interpreter that I can't change/replace. I also can't really use LuaRocks modules.
It's for an old game called Zoo Tycoon 2.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
