In my current game with my modmod I'm getting a repeatable crash to desktop
edit: I was able to prevent the crash with these changes, making sure that each of the unit types exist before trying to initilize them.
Got it! Thanks!
In my current game with my modmod I'm getting a repeatable crash to desktop
edit: I was able to prevent the crash with these changes, making sure that each of the unit types exist before trying to initilize them.
An annoyance that MC told me to report here:
Before HBR is discovered, if workers get free exp from any source (apprenticeship) there is a blue glow around them. Same with settlers. How can you remove the glow from units who have no promotions to pick?
I get negative production sometimes on cities with governor's manor when playing Calabim. Such cities are then stuck and can't produce anything.
Here Phil Hall has some ideas on the issue: http://sourceforge.net/p/tholalsffhaimod/bugs/246/
I hope that helps... if you need a report, I could reinstall the latest patch and play a game until it happens... and send you the autosaves both before and after the issue.
I've seen the reports for this and have a bug entered but I dont know how to reproduce it. I've played numerous games with the Calabim and Governors Manors and havent had cities enter negative production. I've also tried with Pillar of Chains. If anyone can deduce what exactly causes it to happen, I'd be happy to fix it.
Jojo_Fr reported that the issue started happening after the Illians casted Stasis (see http://forums.civfanatics.com/showpost.php?p=13068866&postcount=601) so maybe my new code is interacting with Stasis in a way I did not foresee, triggering this issue.
So, while I'm playing More Naval AI modmod some units are not showing correct (like arcane units, see screenshot below). It's not only showing the unit correctly but if I happen to build one the game crashes. I'm playing on some 2.5x patch (forgot which). I also tired the most recent 2.53 patch but it didn't seem to fix the problem.
Any idea how to fix this, rather annoying, issue?
As you mention in your bug report, I also suspect that this bug is related to my unhappy production fix (for those who don't know, see http://sourceforge.net/p/tholalsffhaimod/code/1652/), although I have not been able to check what is happening.
I've tried to figure out what is going on and the problem eludes me. The error seems to occur during the AI_juggleCitizens function, but I think the issue actually occurs well before the assert is triggered.
So unless Terkhen (or someone else) can step in and solve this issue, I'm going to have to roll back Terkhen's fix to Unhappy Production.
// Bugfix: Unhappy production is now calculated in getBaseYieldRate. We ignore it in plot value calculations in order to avoid overcomplicating the algorithm.
//int iOldCityYield = getBaseYieldRate((YieldTypes)iI);
int iOldCityYield = getBaseYieldRate((YieldTypes)iI, false);
// Bugfix end
for (pLoopCity = GET_PLAYER(getOwnerINLINE()).firstCity(&iLoop); pLoopCity != NULL; pLoopCity = GET_PLAYER(getOwnerINLINE()).nextCity(&iLoop))
{
int iLoopCityBaseYieldRate = pLoopCity->getBaseYieldRate(eYield);
if ((iLoopCityBaseYieldRate > iRate) ||
((iLoopCityBaseYieldRatez == iRate) && (pLoopCity->getID() < getID())))
{
Is there a fast way to test if the bugfix work, such as a savegame from shortly before this issue happens?
Check out Krinn's first save from this post - http://forums.civfanatics.com/showpost.php?p=13194932&postcount=507 - Ito finished building a Manor in two turns and goes into negative production.
After 5 attempts I did not manage to reproduce the issue. Do I need to do something besides pressing Shift + Enter until Itos builds the Governor Mannor? I also waited a few turns after building it just in case.
Strange. I had no problems reproducing it. Things get out of whack the turn it finishes production. I was using the skip-turn feature by clicking the Armageddon Counter display, though I cant imagine why that would make any difference.
I'm going to try to debug what is happening exactly in AI_juggleCitizens. I'll report back once I get to know what is wrong.