Why does this mod-scenario crash on turn 2?

Fullerene

Warlord
Joined
Aug 26, 2009
Messages
228
I'm building a Rise of Rome scenario for Mare Nostrum (Beta5).Idea or story is that the Homeland represents Persian Empire which controls all trade routes to east and also demands tribute from western civs. Goal is to rise against Persians and beat them in battle field. I'm still on early stages on development though.

My problem is that scenario crashes to desktop everytime after 2 turns. The mediterranea map script seems to not crash so, I guess the problem is in the WBS file.

I have made few modifications to the mod. I merged it to 2-plots city radius mod and added few lines of python to code to event manager. Those lines stores 50 weapons and horses to every city, because without the script, stored values would be negative. Problem with WorldBuilder I guess, WorldBuilder seems to take weapons for soldiers from city storage, when you add soldiers.

I didn't play test scenario much when I was building it, untill now, so I'm not sure when the crashing problem started. Maybe someone has idea what may cause the crash.

Also, is it possible to run Col on somekind of debug environment?

Mod requires Mare Nostrum Beta 5.
 
Very well, I found tutorial and managed to get Debug configuration running with Visual Studio 2010 express.
Anyway it wasn't much use for this particular problem:
First-chance exception at 0x0394ec10 in Colonization.exe: 0xC0000005: Access violation reading location 0x0000003a
It also said something about cannot showing the source code. Obviously the error isn't in dll.

But I'm not giving up, I'll fix the problem. I believe there's something wrong in scenario file.
 
Problem solved.:) Just in case someone in future has similar error, I explain how I fixed this: I removed all the cities and units from the map then saved the map.
Then I copied everything back again.It seems that it's important to add all civs in game before adding cities.
I removed the file from first post since it's not needed anymore and it's broken and whole thing is still heavily under construction.
 
Back
Top Bottom