Editor crashing problems

A forum to discuss custom scenarios, campaigns and modding in general.

Moderator: Panzer Corps 2 Moderators

Post Reply
The Land
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 42
Joined: Sat Nov 18, 2017 10:08 pm

Editor crashing problems

Post by The Land »

I have a problem with a scenario which I've edited, then crashes when I try to run it from the editor.

I get this error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000158

The only thing I can find that might cause this is having an invalid road and river set up, with roads/railroads attempting to run parallel to rivers. But I don't believe that is the case in this scenario. Can anyone help?
The Land
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 42
Joined: Sat Nov 18, 2017 10:08 pm

Re: Editor crashing problems

Post by The Land »

The Land wrote: Wed Feb 16, 2022 6:45 pm I have a problem with a scenario which I've edited, then crashes when I try to run it from the editor.

I get this error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000158

The only thing I can find that might cause this is having an invalid road and river set up, with roads/railroads attempting to run parallel to rivers. But I don't believe that is the case in this scenario. Can anyone help?
So now I think this is somehow linked to the road, rail and river setup. But it's very unclear what. I am having to do hex-by-hex changes to these linear connections, saving every iteration, to try to narrow down the problem.
The Land
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 42
Joined: Sat Nov 18, 2017 10:08 pm

Re: Editor crashing problems

Post by The Land »

The Land wrote: Thu Feb 17, 2022 1:23 pm
The Land wrote: Wed Feb 16, 2022 6:45 pm I have a problem with a scenario which I've edited, then crashes when I try to run it from the editor.

I get this error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000158

The only thing I can find that might cause this is having an invalid road and river set up, with roads/railroads attempting to run parallel to rivers. But I don't believe that is the case in this scenario. Can anyone help?
So now I think this is somehow linked to the road, rail and river setup. But it's very unclear what. I am having to do hex-by-hex changes to these linear connections, saving every iteration, to try to narrow down the problem.
I have fixed my scenario but I am still not entirely clear what the problems are, except that one must take great care with road, rail and rivers. If the engine doesn't expect how one of these linears crosses the other, or you try to superimpose different kinds of junction for different things in the same hex, then you get a crash. Furthermore even if you delete the offending junction the scenario seems to still crash and become irrecoverable.

If I get time I will post some samples.
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6115
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Editor crashing problems

Post by terminator »

The only general advice I can give you is to test and save regularly (this is valid for all game editors)...
Post Reply

Return to “Panzer Corps 2 Scenario Design”