racha
Prince
I wonder if someone could tell me what I'm doing wrong here? I found a mod that I really like (Moorish Wonders) and added it to a medieval wonders mod.
The original mod uses a lua script to give culture when you create a great person tile improvement or great work of art. I haven't even begun to learn that stuff yet, so, as my mod is just for personal use, I've simply copied the lua file without making any alterations to it at all.
In modbuddy, I've set VFS = False for the lua and SQL files, True for the image files and I've for an InGameUIAddin line in the content tab for the lua file. I've also checked my resulting .modinfo file against the one for the mod I'm copying and everything matches up.
However, the original mod works just fine, whereas mine (even when it's the only mod enabled) generates an error and the wonder gives no culture, though the other benefit (1 gold per luxury worked by the city) works:
Presumably, this is something I'm doing wrong, rather than an error in the lua script, but I'm at a loss as to where I'm making a mistake. Any takers?
Both mods are included as attachments.
The original mod uses a lua script to give culture when you create a great person tile improvement or great work of art. I haven't even begun to learn that stuff yet, so, as my mod is just for personal use, I've simply copied the lua file without making any alterations to it at all.
In modbuddy, I've set VFS = False for the lua and SQL files, True for the image files and I've for an InGameUIAddin line in the content tab for the lua file. I've also checked my resulting .modinfo file against the one for the mod I'm copying and everything matches up.
However, the original mod works just fine, whereas mine (even when it's the only mod enabled) generates an error and the wonder gives no culture, though the other benefit (1 gold per luxury worked by the city) works:
Code:
[9876.766] Runtime Error: Assets\DLC\Expansion2\UI\InGame\InGame.lua:1262: attempt to index local 'addinFile' (a nil value)
[9876.766] Runtime Error: Error loading Assets\DLC\Expansion2\UI\InGame\InGame.lua
Presumably, this is something I'm doing wrong, rather than an error in the lua script, but I'm at a loss as to where I'm making a mistake. Any takers?
Both mods are included as attachments.