Hi! I am currently updating most of the civilization and leader mods in the workshop so they can be used in Gathering Storm, while updating their cultures and fixing some errors in the sql files. Right now, I've managed to make them all appear in the leader screen selection and they all load into the game, as they are almost done.
The problem is that some mods use some lua functions, which mark errors in the lua.log. I know nothing about lua (I am not a programmer and don't know much about sql too, as I learned while I worked on this), so if any of you could help me fix them I'd really appreciate it, and you would have a new and functional civ to play with.
Right now I'm stuck with Leugi's Haiti civ ( https://steamcommunity.com/sharedfiles/filedetails/?id=1562787583 ). I've already managed to make them appear and it all works great, except for it's builder and era score bonuses. The file "Leugi_Haiti_GameplayFunctions" has this lines that cause RunTime error:
include("Civ6Common.lua")
include("AdjacencyBonusSupport.lua")
And also the lua.log shows this:
Runtime Error: E:\Games\steam\steamapps\workshop\content\289070\1562787583\lua\Leugi_Haiti_GameplayFunctions.lua:372: operator - is not supported for nil - number
stack traceback:
E:\Games\steam\steamapps\workshop\content\289070\1562787583\lua\Leugi_Haiti_GameplayFunctions.lua:372: in function 'OnTurnActivatedEraScoreCheck'
[C]: in function 'func'
[C]: in function '(anonymous)'
If anyone can help me, I can send you the files I've edited so you could try it and maybe help me finish update these mods. I only need to understand why the error occurs on this mod, so then I can aplly the fix in the rest of them. Thank you in advance.
The problem is that some mods use some lua functions, which mark errors in the lua.log. I know nothing about lua (I am not a programmer and don't know much about sql too, as I learned while I worked on this), so if any of you could help me fix them I'd really appreciate it, and you would have a new and functional civ to play with.
Right now I'm stuck with Leugi's Haiti civ ( https://steamcommunity.com/sharedfiles/filedetails/?id=1562787583 ). I've already managed to make them appear and it all works great, except for it's builder and era score bonuses. The file "Leugi_Haiti_GameplayFunctions" has this lines that cause RunTime error:
include("Civ6Common.lua")
include("AdjacencyBonusSupport.lua")
And also the lua.log shows this:
Runtime Error: E:\Games\steam\steamapps\workshop\content\289070\1562787583\lua\Leugi_Haiti_GameplayFunctions.lua:372: operator - is not supported for nil - number
stack traceback:
E:\Games\steam\steamapps\workshop\content\289070\1562787583\lua\Leugi_Haiti_GameplayFunctions.lua:372: in function 'OnTurnActivatedEraScoreCheck'
[C]: in function 'func'
[C]: in function '(anonymous)'
If anyone can help me, I can send you the files I've edited so you could try it and maybe help me finish update these mods. I only need to understand why the error occurs on this mod, so then I can aplly the fix in the rest of them. Thank you in advance.