Finding out what caused a crash
Hello everybody, long time no see.
I'm stumbled upon a crash at 1107. It happens when i end my turn, and it switches from independents back to me. It says "M2TW has encountered an error and must close".
I've tried stopping all the buildings that are about to be built, units about to be created, moved family members out of cities, moved all family members Into cities, moved merchants off their trade tiles, etc, but it still happens.
I remember in Rome there was a way to get the game to tell you exactly what has caused the problem, or at least which line of code has caused the problem. Is there a similar thing here?
Re: Finding out what caused a crash
Hey Dayve.
Go to your SEGA/Medieval II - Total War folder, and look for a folder named "logs". In there, you will find a text file which will (hopefully) explain the problem.
Re: Finding out what caused a crash
What Hax said.
If there are no specifics in the log, you can also use toggle_fow in the console and enable viewing of all AI moves to examine the problem.
Re: Finding out what caused a crash
Hmm, apparently the game was trying to remove a trait from a character that no longer existed... that's what was causing the crash.
Strange that it would try to remove a trait from a FM that no longer exists. Anyway, repeated loading + ending turn seems to have fixed it.