So, this is interesting.. I just loaded up a couple mods since I was a few versions out of date, and freshly updated them.
However, FireTuner reported this:
Code:
Loading TableSaverLoader.lua...
Runtime Error: Failed to iterate table due to query error. Check Database.log for more details.
Of course, the Database.log revealed nothing of interest related to tables. (It instead has tons of errors from other people's mods.)
Any ideas what this might be? Going to try saving and reloading, and then restarting a new game with the same Civs to see if I can reproduce this.
EDIT:
After extensive testing, and with Vice Virtuoso's assistance, I have identified the problem.
Turns out his mods were using an old version of TableSaverLoader (v0.14) while mine used the newest one (v0.16.)
This caused some compatibility issues, as his mods loaded after mine did, and it seems that the last TableSaverLoader.lua to be loaded into VFS became the one that would be used by every mod.
In effect, this meant that my mod attempted to use the newly-introduced TableLoad() method of determining a new game with a version of TableSaverLoader that didn't yet support it, I think.
I tested this by removing TSL from my mod, which caused Lua errors (referencing a nil TableLoad()) when I attempted to load it on its own.
However, it loaded fine when the other mods using TSL were also enabled -- it displayed the same error as posted earlier.
Once I swapped out his old version of TSL with the new one, everything worked fine, even though my own mod was still missing the file.
Based on my results, here is my question:
Is it recommended/suggested, or even safe, to have multiple instances of TableSaverLoader going?
My thought is to rename TableSaverLoader.lua on my end to something unique so that I won't run into this issue in the future with other mods, but Vice Virtuoso worried that multiple instances could cause more problems.
Is TSL safe to run multiple instances if each one has a unique filename, or is there a way to enforce loading of the latest version if multiple versions are loaded?