Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Crash when going into tactical screen on mine sectors
Crash when going into tactical screen on mine sectors[message #248222]
|
Wed, 31 March 2010 11:33
|
|
bbun |
|
Messages:74
Registered:April 2004 Location: Amsterdam |
|
|
For some reason my compiled version on OSX would crash when going into tactical view on maps with mines (at least for drassen mine and alma mine), but only the 2nd time I entered them (and had already captured them).
I tracked this down to a Bus Error in SET_MOVEMENTCOST, triggered from:
StrategicMap.cc -> SetCurrentWorldSector
Keys.cc -> UpdateDoorGraphicsFromStatus
Keys.cc -> SyncronizeDoorStatusToStructureData
WorldDef.cc -> RecompileLocalMovementCosts
WorldDef.cc -> CompileTileMovementCosts
seems like some problem calculating movement costs for mine entrances.
Anyhow, for people running into the same problem, I fixed this by replacing
SET_MOVEMENTCOST( usGridNo, ubDirLoop, 0, TRAVELCOST_OFF_MAP );
SET_MOVEMENTCOST( usGridNo, ubDirLoop, 1, TRAVELCOST_OFF_MAP );
with
FORCE_SET_MOVEMENTCOST( usGridNo, ubDirLoop, 0, TRAVELCOST_OFF_MAP );
FORCE_SET_MOVEMENTCOST( usGridNo, ubDirLoop, 1, TRAVELCOST_OFF_MAP );
at lines 426-427 of TileEngine/WorldDef.cc
Hope this helps others.
Report message to a moderator
|
Corporal
|
|
|
|
|
Crash when going into tactical screen on mine sectors
By: bbun on Wed, 31 March 2010 11:33
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Wed, 21 April 2010 23:34
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Thu, 22 April 2010 00:00
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Thu, 22 April 2010 21:57
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Thu, 22 April 2010 23:57
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: usrbid on Fri, 23 April 2010 07:18
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Fri, 23 April 2010 14:15
|
|
|
Re: Crash when going into tactical screen on mine sectors
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Sat, 24 April 2010 12:03
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Sun, 25 April 2010 16:39
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Wed, 28 April 2010 22:48
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Fri, 30 April 2010 01:22
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Fri, 30 April 2010 10:34
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Fri, 30 April 2010 12:28
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Fri, 30 April 2010 14:20
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Fri, 30 April 2010 19:31
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Fri, 30 April 2010 20:13
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: Tron on Tue, 04 May 2010 10:47
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: bbun on Tue, 04 May 2010 13:28
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: mgl on Wed, 05 May 2010 00:08
|
|
|
Re: Crash when going into tactical screen on mine sectors
By: Helios on Wed, 05 May 2010 13:49
|
Goto Forum:
Current Time: Fri Jan 10 23:06:58 GMT+2 2025
Total time taken to generate the page: 0.01375 seconds
|