Exception C0000005 when saving a game
Moderators: GSH, VSMIT, Commando
-
- Sober Scav
- Posts: 20
- Joined: Wed Jul 25, 2012 6:17 pm
Exception C0000005 when saving a game
Hi,
In SP mode I get the C0000005 exception when trying to save a game starting with "Hidden threats". The probability is about 90% and does not depend on the /novista switch. Using the remaining 10% I manage to get to the "Escape path" but there is no way to win because the Recycler gets inevitably destroyed after it builds an "Undeployed". BTW, loading a game becomes slow (about 20 seconds) after a game is loaded 2-3 times.
Is there a way to win in the "Escape path"? Would be very grateful for something that can help me to go on (saved game from the next mission will do but is there a more common solution?). Sorry for my English.
---- Battlezone II Log File ----
//=====================================================
App version: bzone 1.3.6.2 Public Beta Jul 29 2011 21:43:22
Windows version: Windows Version: 6.1.7601 'Service Pack 1' PlatformID=2
Last few battlezone.log lines (may or may not be relevant):
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:06|181613 |page = 0
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:06|181613 |page = 0
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:06|181613 |page = 0
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:07|182603 |warnrestartchanges = 0
(done)
Exception code: C0000005 (ACCESS VIOLATION) WRITING to 7CB50000h
Message : Exception
Error occurred at 7/25/2012 22:14:12.
E:\Games\Battlezone II\bzone.exe, run by Annihilator.
E:\Games\Battlezone II\bzone.exe, run by Annihilator.
CPU: 8 processor(s), Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
x86 Family 6 Model 42 Stepping 7
Process Memory : 1452 MB free out of 2048 MB total
Physical memory: 2242 MB free out of 3574 MB total
Page(swap) file: 5516 MB free out of 7145 MB total
This exe is using 293 MB (140 MB dlmalloc), peak use 293 MB
Fault address: 004EA6E9 01:001196E9 E:\Games\Battlezone II\bzone.exe
Registers:
EAX:00000001
EBX:00000004
ECX:00000000
EDX:00000008
ESI:7CB4FFFF
EDI:00000283
CS:EIP:001B:004EA6E9
SS:ESP:0023:0639D200 EBP:0639D230
DS:0023 ES:0023 FS:003B GS:0000
Flags:00210246
Call stack:
Address Offset1 Offset2 Module SourceFile
004EA6E9 +0011A6E9 000000DB bzone (bzone): : out_close
004EC506 +0011C506 00000018 bzone (bzone): : out_ptr
003D8EAC +00008EAC 00000019 bzone (bzone): : AOI::Save
003D8E84 +00008E84 00000057 bzone (bzone): : AOI::SaveAll
004EE70D +0011E70D 00000353 bzone (bzone): : SaveGame
004EE381 +0011E381 0000003C bzone (bzone): : SaveGame
00428EDA +00058EDA 0000003E bzone (bzone): : MissionHandler::DoSaveGame
00428DF2 +00058DF2 0000006D bzone (bzone): : MissionHandler::SaveCallback
005DEDE6 +0020EDE6 00000056 bzone (bzone): : MsgBoxWindow::HandleEvent
0059A72F +001CA72F 0000007F bzone (bzone): : IControl::NotifyParent
00596BF8 +001C6BF8 00000128 bzone (bzone): : ICButton::HandleEvent
005A3F58 +001D3F58 00000208 bzone (bzone): : IFace::OnModeChange
In SP mode I get the C0000005 exception when trying to save a game starting with "Hidden threats". The probability is about 90% and does not depend on the /novista switch. Using the remaining 10% I manage to get to the "Escape path" but there is no way to win because the Recycler gets inevitably destroyed after it builds an "Undeployed". BTW, loading a game becomes slow (about 20 seconds) after a game is loaded 2-3 times.
Is there a way to win in the "Escape path"? Would be very grateful for something that can help me to go on (saved game from the next mission will do but is there a more common solution?). Sorry for my English.
---- Battlezone II Log File ----
//=====================================================
App version: bzone 1.3.6.2 Public Beta Jul 29 2011 21:43:22
Windows version: Windows Version: 6.1.7601 'Service Pack 1' PlatformID=2
Last few battlezone.log lines (may or may not be relevant):
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:06|181613 |page = 0
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:06|181613 |page = 0
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:06|181613 |page = 0
DIAG| console:819 |22:14:06|181613 |entered = 1
DIAG| console:819 |22:14:07|182603 |warnrestartchanges = 0
(done)
Exception code: C0000005 (ACCESS VIOLATION) WRITING to 7CB50000h
Message : Exception
Error occurred at 7/25/2012 22:14:12.
E:\Games\Battlezone II\bzone.exe, run by Annihilator.
E:\Games\Battlezone II\bzone.exe, run by Annihilator.
CPU: 8 processor(s), Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
x86 Family 6 Model 42 Stepping 7
Process Memory : 1452 MB free out of 2048 MB total
Physical memory: 2242 MB free out of 3574 MB total
Page(swap) file: 5516 MB free out of 7145 MB total
This exe is using 293 MB (140 MB dlmalloc), peak use 293 MB
Fault address: 004EA6E9 01:001196E9 E:\Games\Battlezone II\bzone.exe
Registers:
EAX:00000001
EBX:00000004
ECX:00000000
EDX:00000008
ESI:7CB4FFFF
EDI:00000283
CS:EIP:001B:004EA6E9
SS:ESP:0023:0639D200 EBP:0639D230
DS:0023 ES:0023 FS:003B GS:0000
Flags:00210246
Call stack:
Address Offset1 Offset2 Module SourceFile
004EA6E9 +0011A6E9 000000DB bzone (bzone): : out_close
004EC506 +0011C506 00000018 bzone (bzone): : out_ptr
003D8EAC +00008EAC 00000019 bzone (bzone): : AOI::Save
003D8E84 +00008E84 00000057 bzone (bzone): : AOI::SaveAll
004EE70D +0011E70D 00000353 bzone (bzone): : SaveGame
004EE381 +0011E381 0000003C bzone (bzone): : SaveGame
00428EDA +00058EDA 0000003E bzone (bzone): : MissionHandler::DoSaveGame
00428DF2 +00058DF2 0000006D bzone (bzone): : MissionHandler::SaveCallback
005DEDE6 +0020EDE6 00000056 bzone (bzone): : MsgBoxWindow::HandleEvent
0059A72F +001CA72F 0000007F bzone (bzone): : IControl::NotifyParent
00596BF8 +001C6BF8 00000128 bzone (bzone): : ICButton::HandleEvent
005A3F58 +001D3F58 00000208 bzone (bzone): : IFace::OnModeChange
Re: Exception C0000005 when saving a game
That seems to be related to AOIs, a section of code that has been problematic in the past. If you're running bz2edit.exe, it supports a shortcut "-DeleteAOIsOnLoad" . This is documented in the readme13.rtf file installed with BZ2, near where it documents "-novista" . How are you reloading the map? From a savegame? Quitting to the 2D pregame menu and launching again? I'd like to see if this bug is repeatable elsewhere.
To go to the next mission, open up the console -- control+` (the key immediately left of the 1 key on US keyboards; it may be the same physical combination on your keyboard) -- and type
game.cheat bzwinner
That'll complete the current mission and progress to the next.
-- GSH
To go to the next mission, open up the console -- control+` (the key immediately left of the 1 key on US keyboards; it may be the same physical combination on your keyboard) -- and type
game.cheat bzwinner
That'll complete the current mission and progress to the next.
-- GSH
Re: Exception C0000005 when saving a game
If this a FE mission?
-
- Sober Scav
- Posts: 20
- Joined: Wed Jul 25, 2012 6:17 pm
Re: Exception C0000005 when saving a game
Thanks for that -- as always, RTFM is the last chance... I am an experienced C++ programmer but I never tried to look what is under the hood of BZ - the fairy tale must remain the fairy tale. Anyway, if I can help the developers to make the game better -- I will do my best. Where I can learn about the technical details of BZ, is there a some document?
I am restoring the game from the savegame (Fille -> Load -> Choose a name). What does the "How are you reloading the map" mean?
I am restoring the game from the savegame (Fille -> Load -> Choose a name). What does the "How are you reloading the map" mean?
Re: Exception C0000005 when saving a game
If you want to looking at mission dlls (C++) might be a good idea. It would be nice to have an active programmer around here for modding. I can show you a bunch of things if you are interested. It would be nice to have an active programming modder other than myself.
AOIs are something stored into BZNs that are probably old BZ1 code. There can be too many at times, so we started to remove them from the ASCII saved BZNs (1.3 default format). Now there is a command line flag for the program to help remove them.
AOIs are something stored into BZNs that are probably old BZ1 code. There can be too many at times, so we started to remove them from the ASCII saved BZNs (1.3 default format). Now there is a command line flag for the program to help remove them.
- Red Devil
- Recycler
- Posts: 4398
- Joined: Fri Feb 18, 2011 5:10 pm
- Location: High in the Rocky Mountains
Re: Exception C0000005 when saving a game
greg louganis, maybe?
i've been working on the FE missions, but recently took a brain break (you can only play FE missions 100 times in a row before you go numb)
check out the other subject threads in this area for FE SP DLL fixes.

i've been working on the FE missions, but recently took a brain break (you can only play FE missions 100 times in a row before you go numb)
check out the other subject threads in this area for FE SP DLL fixes.
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln
Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV
Lifetime member of JBS and NRA
Abraham Lincoln
Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV
Lifetime member of JBS and NRA
Re: Exception C0000005 when saving a game
At this point, the most you can do is continue to submit these error reports. As BZ2 is still closed-source, there is no way for you to help with the engine coding. You can, however, check out the modlog (found here: ModLog) to see how the different lines in the ODFs affect gameplay. You can also, as Nielk1 said, take a look at the mission DLLs to learn that way. As far as I know, there is no actual primer for getting started; your best bet will be to dive in and take a look for yourself.White Diver wrote:Thanks for that -- as always, RTFM is the last chance... I am an experienced C++ programmer but I never tried to look what is under the hood of BZ - the fairy tale must remain the fairy tale. Anyway, if I can help the developers to make the game better -- I will do my best. Where I can learn about the technical details of BZ, is there a some document?
Meaning, after the crash, how do you get back to the point where the failure happens? Saying that you restored from a saved game answers the question, as opposed to starting the mission from scratch and getting to that point.I am restoring the game from the savegame (Fille -> Load -> Choose a name). What does the "How are you reloading the map" mean?
Silence is banal.
-IX
-IX
Re: Exception C0000005 when saving a game
NNNNNecro-post.
Re: Exception C0000005 when saving a game
Blah... It was near the top of the topic list, so I didn't look at the dates.
Silence is banal.
-IX
-IX
Re: Exception C0000005 when saving a game
Actually, yeah... why did it appear up there?
battlezone.wikia.com needs your help!
Re: Exception C0000005 when saving a game
Yes children, and thats why we do not drink and moderate fora at the same time ... 
