Valkrionn
The Hamster King
I believe Xienwolf has this fixed for the next patch.
1) Whenever I try to reload a saved game out of the rnning game, it crashes.
(Not too bad, keeps me from cheating too much)
2) Worse: when the game starts to get complex, especially after turn 400 or so, it crashes nearly every end of turn, making it close to unplayable. The fact that I am still playing it, knitting socks while I wait for it to restart, shows how much I love it, but still... ist there hope? Or which information would sb need from me to get an idea why it's happening?
for (iI = 0; iI < GC.getNumUnitClassInfos(); iI++)
{
if (m_aiUnitClassWeights[iI] > 0)
{
UnitTypes eUnit = (UnitTypes)GC.getUnitClassInfo((UnitClassTypes)iI).getDefaultUnitIndex();
m_aiUnitCombatWeights[GC.getUnitInfo(eUnit).getUnitCombatType()] += m_aiUnitClassWeights[iI];
}
}
for (iI = 0; iI < GC.getNumUnitClassInfos(); iI++)
{
if (m_aiUnitClassWeights[iI] > 0)
{
UnitTypes eUnit = (UnitTypes)GC.getUnitClassInfo((UnitClassTypes)iI).getDefaultUnitIndex();
int unitCombatType = GC.getUnitInfo(eUnit).getUnitCombatType();
FAssert(unitCombatType < GC.getNumUnitCombatInfos());
FAssert(unitCombatType > NO_UNITCOMBAT);
if (unitCombatType > NO_UNITCOMBAT && unitCombatType < GC.getNumUnitCombatInfos())
{
m_aiUnitCombatWeights[unitCombatType] += m_aiUnitClassWeights[iI];
}
}
}

With that one fixed up (pretty sure I only placed asserts at the other) I was able to reload a game which was autoplaying up to turn 180. Previously any extended duration of straight play meant NO chance of loading a save. So you may very well have found the proper fix for the entire mess
(Mild pity it came so quickly AFTER the patch
)


BTW, what program did you use to help isolate the cause Moot? Been trying to find something capable of tracking down the issue and haven't had any good results yet.
I had narrowed down to CvPlayer as well, but was convinced it was something that I had done, so was getting ready to pluck out all of the code from CvPlayer (would have been frustratingly pointless...)
This is great news!! 



many many thanx to MootPoint and anyone else who has been trying hard to make FF crash-free ( I'm looking at YOU, FF team!
)
13. Settler AI Improved.
14. Worker AI Improved.
15. Several bug fixes from unofficial patch and BetterAI (fixes, not features so far).

If I understand correctly, Moot's find probably solves the problems with reloading games. GREAT!
What about the issue with Lairs and Unique Features? Has that been solved yet? Or is it maybe related to the above?
I've been playing with Lairs and UFs plus Hyborem disabled and my latest game is perfectly stable so far.
Haven't downloaded patch I because I want to finish that game first - but will it make sense to play with Lairs etc. again next time? I'm really missing those features![]()
