I noticed a different but probably related problem :
With r2718 and Pak64, and loading Colin's r2682 save, then enlarge the map from 1024x1024 to 1152x1152, setting to add 4 new cities only, and the game crashes after a short while.
When does the game crash? During enlargement? Or afterwards?
Seems to be during enlargement.
Colin's game is ...
map 39
rotation 1
size 1024*1024
How to reproduce:
- Start new map no.39 1024*1024
- Rotate once
- Enlarge to 1152*1152
Result:
Crash.
Quote
sim.exe caused an Access Violation at location 00566335 in module sim.exe Reading from location 0758ee18.
Registers:
eax=0758ee20 ebx=10020024 ecx=07590020 edx=ffffedf8 esi=00d7f9f4 edi=04f65868
eip=00566335 esp=0023e4f0 ebp=0023f8f8 iopl=0 nv up ei pl nz ac pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000212
Call stack:
00566335 sim.exe:00566335 smoothed_noise(int, int) simtools.cc:145
005C3E67 sim.exe:005C3E67 WinMain simsys_w16.cc:791
00401247 sim.exe:00401247
00401298 sim.exe:00401298
7C817077 kernel32.dll:7C817077 RegisterWaitForInputIdle
thank you! that helped alot! at least to find the bug - not the fix :P
z9999 error will happen with any rotated map, as the cahced values can get negative => cahce only on new map.
But guys, initially (and actually still) Colin's talking about enlarging cities - not the map.
Quote from: Colin on October 09, 2009, 08:46:10 PM
I missread posts too. LOL
Yes, pobody is nerfect. :D
But that's what such a little reminder is good for - before the whole discussion turns the wrong way (actually not really "wrong" since there seems to be a problem with map enlarging as well, but it's something else than the original problem)