Openapoc: Clicking on Cityscape Map causes CTD

Created on 3 Jan 2019  路  5Comments  路  Source: OpenApoc/OpenApoc

Please load attached game and click on the map
Game will CTD without writing to log!
save_SuperHuman 1.zip

!BUG! HIGH PRIORITY !BUG! low priority

Most helpful comment

@JonnyH Ah, many thanks, then it's also related to issue #456
Those vehicles are stuck in the building on both save games
I just realised that they became stuck when the UFO they were attacking left the city and back to alien dimension or were among the UFOs destroyed before they left the building

It seems that there is a bug in dealing with how vehicles clear their orders when the target entity either leaves the dimension that it's in, or is destroyed

Will update #456 accordingly :)

All 5 comments

Interesting fix to this
Load the save
Press F1 (for debug)
Press F4 (to show all aliens on map)
Click the map icon
Game won't crash

If you do anything with the map before following the above, it CTDs

Quickly ran this through a debugger:

It's crashing at citytileview.cpp:745

In the save, it seems that "VEHICLE_3864" has somehow ended up with an AttackVehicle mission with a null targetVehicle

@JonnyH Ah, many thanks, then it's also related to issue #456
Those vehicles are stuck in the building on both save games
I just realised that they became stuck when the UFO they were attacking left the city and back to alien dimension or were among the UFOs destroyed before they left the building

It seems that there is a bug in dealing with how vehicles clear their orders when the target entity either leaves the dimension that it's in, or is destroyed

Will update #456 accordingly :)

I think this is a rendering issue. It seems it's possible for a vehicle to have a mission with a null target vehicle, but the mission is popped almost immediately.
In this case a bunch of vehicles are stuck in a takeoff mission (as in #456) so there's no way to pop the attack vehicle mission

Issue appears to be fixed by FranciscoDA's work
Many thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Quickmind01 picture Quickmind01  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments