Bug fixed - solution may help

modmyciv

Warlord
Joined
Oct 5, 2009
Messages
175
Finally fixed the bug which crashes my mod.

I have immobile units, the AI had loaded one into a boat and the game crashes (instant bang) when it ties to unload it - turns out I set the flag for foot unit, so it was possible to load it into a boat in the same city - not something I ever tried or noticed. Saw it in a Debug game, it took some time to transpire I can tell you.

So there we are - after I went through a lot of other hoops, including all sorts of stuff with resources and whatnot, it was something simple.
 
It is not the Loading of an immobile unit into a boat from a city but rather the unit trying to Unload to shore that causes the crash.. because an Immobile unit cannot move and therefore cannot move off of a ship on its own.
...If the AI were to take the Ship to another City, the immobile unit could be unloaded there without a crash. So the point is the immobile unit would be loaded and unloaded rather than doing it itself.
 
Well quite - it took me ages to find this bug, because of course it was only the AI tried this move, and only in some games. So pleased it is fixed.
 
Back
Top Bottom