I haven't been able to really play games with this mod, but while trying to make some other stuff work I happened upon this error in the lua log file:
While updating other mods I decided it's time to try this one as well, but I haven't been able to choose production when founding my first city. I have a feeling this error comes when I press the "choose production" button, since it appears chronologically at the same frequencies as I'm pressing the button. To state a few things: I am using latest VP, and I am not using EUI. I do have a bunch of other mods enabled, but they are the same mods that used to work before updating and starting with this mod. Could this be a simple mod conflict?
EDIT: Nay, I'm sure this error comes when pressing the choose production button. Upon closer look I noticed it actually has to do with something called ProductionPopup.. Stupid me.
EDIT2: Allright well the line the error refers to is such:
Code:
return eraPriority + 2000;
and the context is
Code:
function GetUnitSortPriority(unitInfo)
local eraPriority = 0;
if(unitInfo.PrereqTech ~= nil) then
eraPriority = erasByTech[unitInfo.PrereqTech];
end
if(unitInfo.CivilianAttackPriority ~= nil) then
if(unitInfo.Domain == "DOMAIN_LAND") then
return eraPriority;
else
return eraPriority + 1000;
end
else
if(unitInfo.Domain == "DOMAIN_LAND") then
return eraPriority + 2000;
else
return eraPriority + 3000;
end
end
end
It seems like it has something to do with techs actually, am I right to end with that conclusion? I have had another problem in addition to not being able to choose productions: Opening the tech tree takes around 2 seconds. I mean it does open up eventually, but there's a very noticeable delay between the initial push of the button and the popup opening.
I'm guessing that is caused by the galley error also visible in the lua log bit I pasted above, and the runtime error with CP that is likely associated with it. Between the "choose production" button presses I opened the tech tree, which can be seen in the lua log as well. I'm now starting to think those two are somehow related, since before the line that gives the error in the CiD file, there's erasByTech mentioned, as well as PrereqTech. Not sure what eraPriority is in the first place, and I have no clue about any of this coding stuff, so I might be completely wrong with this conclusion. But maybe someone would be able to help me with this, based on this?
EDIT:
Okay so I did a bunch of testing around and I'm 100% confident it was a mere mod conflict, and that I've again wasted a bunch of space in the thread, along with some time for anyone who's read through this post. Sorry 'bout that.