XMOD Random Crashing

Moderators: GSH, VSMIT, Red Devil, Commando

User avatar
Vadam
Thunderbolt
Posts: 104
Joined: Sat May 18, 2013 3:02 pm

XMOD Random Crashing

Post by Vadam »

I recently started trying to get XMOD to work in 1.3.6.5

I have gotten it so mostly everything works now, except that when I am in a game it just decides to crash sometimes. I can usually decipher what causes crashes, but I can't figure this one out. Here is the error message I received

Code: Select all

---- Battlezone II Log File ----
//=====================================================
App version: bzone 1.3.6.5 Public Beta Jun  4 2014 21:24:28
Windows version: Windows Version: 6.1.7600 '' PlatformID=2

Last few battlezone.log lines (may or may not be relevant):
ERR |              bitmap:1355 |23:10:13|494739 |Can't load texture wire_xbpower.tga.
DIAG|         ParameterDB:209  |23:10:13|494739 |Last few opened ODFs:
DIAG|         ParameterDB:214  |23:10:13|494739 | 1 : dunesi.TRN
DIAG|         ParameterDB:214  |23:10:13|494739 | 2 : shieldeffect.odf
DIAG|         ParameterDB:214  |23:10:13|494739 | 3 : bridges2i.TRN
DIAG|         ParameterDB:214  |23:10:13|494739 | 4 : shieldeffect.odf
DIAG|            runcodes:172  |23:10:16|497441 |[View] Entering run code [COCKPIT]
DIAG|            runcodes:172  |23:10:20|501439 |[View] Entering run code [FORWARD]
(done)

Exception code: C0000005 (ACCESS VIOLATION) READING from 000005C0h
Message :  Exception
Error occurred at 3/5/2015 23:10:52.
C:\Users\Brandon\Desktop\Battlezone Testing\bzone.exe, run by Brandon.
C:\Users\Brandon\Desktop\Battlezone Testing\bzone.exe, run by Brandon.
CPU: 8 processor(s), Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
     Intel64 Family 6 Model 26 Stepping 4
Process Memory :   1169 MB free out of   2048 MB total
Physical memory:   9605 MB free out of  12280 MB total
Page(swap) file:  21527 MB free out of  24557 MB total
This exe is using 516 MB (147 MB dlmalloc), peak use 519 MB

Fault address:  00C434F6 01:001224F6 C:\Users\Brandon\Desktop\Battlezone Testing\bzone.exe

Registers:
EAX:2A4515C0
EBX:2A451610
ECX:00000000
EDX:00000008
ESI:2A4511B0
EDI:2A4515C0
CS:EIP:0023:00C434F6
SS:ESP:002B:005EE1A4  EBP:005EE1D8
DS:002B  ES:002B  FS:0053  GS:002B
Flags:00010202

Call stack:
Address  Offset1  Offset2  Module              SourceFile
00C434F6 +001234F6 00000012 bzone            (bzone): : Weapon::GetLeadPositionArcing

00C3ED6E +0011ED6E 00000012 bzone            (bzone): : Mortar::GetLeadPosition

00B96BF0 +00076BF0 000000AE bzone            (bzone): : Craft::UpdateWeaponAim

00B96E8D +00076E8D 000001A0 bzone            (bzone): : Craft::Simulate

00BB3ED5 +00093ED5 00002195 bzone            (bzone): : HoverCraft::Simulate

00C34D57 +00114D57 00000247 bzone            (bzone): : ENTITY::SimulateAllLocal

00B7B897 +0005B897 00000198 bzone            (bzone): : MissionHandler::MoveOneTurn

00B7C0C8 +0005C0C8 00000232 bzone            (bzone): : MissionHandler::State::RunState::Process

00B7980D +0005980D 0000001E bzone            (bzone): : MissionHandler::Process

77B3EAE2 +0002EAE2 00000066 ntdll            (ntdll): : bsearch

77B3EA21 +0002EA21 00000368 ntdll            (ntdll): : RtlUpcaseUnicodeChar

77B3E7F1 +0002E7F1 00000138 ntdll            (ntdll): : RtlUpcaseUnicodeChar

77B3E876 +0002E876 000001BD ntdll            (ntdll): : RtlUpcaseUnicodeChar

77B3EDFB +0002EDFB 000000E9 ntdll            (ntdll): : RtlHashUnicodeString

6A09C3AD +0006C3AD 0000EC7D dbghelp          (dbghelp): : MiniDumpReadDumpStream

77B8178C +0007178C 00000802 ntdll            (ntdll): : MD5Update


When its done I'll put the download link in my signature for those interested
Starfleet 0.8 - Almost done!
Shadow Knight
Thunderbolt
Posts: 158
Joined: Sat Feb 19, 2011 6:39 am

Re: XMOD Random Crashing

Post by Shadow Knight »

Sounds like it took offense to wire_xbpower.tga. The last time I tried to do anything with BZ2 it was very picky about not having RLE compression in its TGAs, but that was before the change to dxtbz2. I don't think it's a case of missing texture because it used to just draw a blank texture instead if that happened - there's something wrong with the file itself.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: XMOD Random Crashing

Post by General BlackDragon »

Got nothing to do with a texture file, that's just the most recent item logged in the editor.

Does it happen consistantly? if so, what weapon is being used to cause it? It looks like something to do with the AI triyng to aim a mortar?
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: XMOD Random Crashing

Post by MrTwosheds »

The error msg is not complete, there should be a lot more of it.
The Silence continues. The War Of Lies has no end.
User avatar
Vadam
Thunderbolt
Posts: 104
Joined: Sat May 18, 2013 3:02 pm

Re: XMOD Random Crashing

Post by Vadam »

General BlackDragon wrote:Does it happen consistantly? if so, what weapon is being used to cause it? It looks like something to do with the AI triyng to aim a mortar?
No, sometimes I go through an entire game without it and sometimes it happens right as it starts. The standard mortar does not fire and just displays "--" for ammo, so maybe thats part of the problem? I'll take a look at it.
Starfleet 0.8 - Almost done!
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: XMOD Random Crashing

Post by Red Devil »

i think i've run into this before; check for a misplaced eyepoint?
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
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: XMOD Random Crashing

Post by General BlackDragon »

find which particular unit or weapon causes it.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Vadam
Thunderbolt
Posts: 104
Joined: Sat May 18, 2013 3:02 pm

Re: XMOD Random Crashing

Post by Vadam »

I appear to have fixed it, it hasn't happened to me at all the past few games, though that just may be luck. The mortar having no ordinance to fire must have been the problem.
Starfleet 0.8 - Almost done!
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: XMOD Random Crashing

Post by General BlackDragon »

Probably.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Vadam
Thunderbolt
Posts: 104
Joined: Sat May 18, 2013 3:02 pm

Re: XMOD Random Crashing

Post by Vadam »

I'm just going to nest this inside this topic to avoid spamming the mod making section

I'm trying to make Intimidators more effective. Whenever they shoot, whatever they were shooting at has already moved. I want the mortar to get to the target faster (Not instantaneous, but just fast enough to actually hit slow moving assault units), but increasing the shotSpeed makes it go further up when fired, and decreasing it shortens the Intimidator's range. Any suggestions as to what I should do?

Edit: Nevermind, I figured it out. I just made it into a popper-class weapon.
Starfleet 0.8 - Almost done!
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: XMOD Random Crashing

Post by Red Devil »

can probably also add IsArcing = false and AllowAimHigh = false to the weapon, too.
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
User avatar
Vadam
Thunderbolt
Posts: 104
Joined: Sat May 18, 2013 3:02 pm

Re: XMOD Random Crashing

Post by Vadam »

What does isArcing do?

On a side note, is there some kind of complete list of these types of commands?
Starfleet 0.8 - Almost done!
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: XMOD Random Crashing

Post by Red Devil »

go to the Extras\Changelog folder in your install, open up all the Changelog*.txt files in a text editor like Notepad++ and search through all files for IsArcing (or any other string. Commando also made a list of all the new ODF settings, etc., (called ModLog) but it is out of date by about 5 years and is missing the changes from a few patches.
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
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: XMOD Random Crashing

Post by Ded10c »

Vadam wrote:What does isArcing do?

On a side note, is there some kind of complete list of these types of commands?
isArcing is a boolean that defines whether the ordnance should arc through the air (ie. be affected by gravity).
battlezone.wikia.com needs your help!
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: XMOD Random Crashing

Post by General BlackDragon »

Though IIRC it only effects how the AI aims, it doesn't actually make the ordnance arc.
Battlezone Classic Public Forums
*****General BlackDragon*****
Post Reply