Cap'n Steve
17 years ago
Okay so my Zero Hour is modded to all hell; Many things have changed, many duplicate units. My friend and I took an existing mod and ran with it and made it nuts.
because of that, WorldBuilder keeps finding errors and then just crashing while loading. Now i've tried correcting some errors, and telling it to ignore others, but in the end it just says something regarding abnormal program termination. If i click retry the same happens.
given that, I would like to know if there's any other way to edit the scripts. I've tried googling it and all i get is spam. All i'm trying to do is alter the AI skirmish settings to use the new units in game, and to use them en masse.
any help would be appreciated.
Sponsor
MicScoTho
17 years ago
WorldBuilder is the only way I know of to edit Zero Hour scripts.

The errors it is reporting to you are likely legitimate errors in your modified files. WorldBuilder performs some error-checking, whereas it seems Zero Hour just tries to deal with the errors, sometimes leading to unexpected crashes.

To find out the error(s) preventing WB from starting, look at the text file written here after WorldBuilder fails to start: C:\Program Files\EA Games\Command & Conquer Generals Zero Hour\wb_DebugLogFileI.txt

Specifically, look for lines starting with "ASSERTION FAILURE". Alternatively, you may post the contents of that log file here and someone may be able to help you debug it.
UserPostedImage 
Cap'n Steve
17 years ago
okay then, this would be the latter portion of that file you mentioned, from where the errors begin:
ASSERTION FAILURE: Requested add of 'GLAStatueSelect' multiple times. Is this intentional? - jkmcd

Stack Dump:
  <Unknown>(-1) : <Unknown> 0x006BCE12
  <Unknown>(-1) : <Unknown> 0x006BCC7A
  <Unknown>(-1) : <Unknown> 0x006E4DFF
  <Unknown>(-1) : <Unknown> 0x00738E1F
  <Unknown>(-1) : <Unknown> 0x007A1E3B
  <Unknown>(-1) : <Unknown> 0x006E3612
  <Unknown>(-1) : <Unknown> 0x0063848F
  <Unknown>(-1) : <Unknown> 0x006C3FB7
  <Unknown>(-1) : <Unknown> 0x004940BD
  <Unknown>(-1) : <Unknown> 0x004923C7
  <Unknown>(-1) : <Unknown> 0x73DDCF74
  <Unknown>(-1) : <Unknown> 0x7C816FD7
[Ignore]
ASSERTION FAILURE: tab characters are not allowed in INI files (Data\INI\Voice.ini). please check your editor settings. Line Number 446

Stack Dump:
  <Unknown>(-1) : <Unknown> 0x006BCE12
  <Unknown>(-1) : <Unknown> 0x006BCC7A
  <Unknown>(-1) : <Unknown> 0x007A222F
  <Unknown>(-1) : <Unknown> 0x007A4295
  <Unknown>(-1) : <Unknown> 0x007A419F
  <Unknown>(-1) : <Unknown> 0x00738EB5
  <Unknown>(-1) : <Unknown> 0x007A1E3B
  <Unknown>(-1) : <Unknown> 0x006E36B2
  <Unknown>(-1) : <Unknown> 0x0063848F
  <Unknown>(-1) : <Unknown> 0x006C3FB7
  <Unknown>(-1) : <Unknown> 0x004940BD
  <Unknown>(-1) : <Unknown> 0x004923C7
  <Unknown>(-1) : <Unknown> 0x73DDCF74
  <Unknown>(-1) : <Unknown> 0x7C816FD7
[Ignore]
THRUST locos may not have zero m_minSpeed; healing...
ASSERTION FAILURE: addModuleInfo - ERROR defining module 'ActiveBody' on thing template 'AmericaJetB52H'.  The module 'ActiveBody' has the tag 'ModuleTag_02' which must be unique among all modules for this object, but the tag 'ModuleTag_02' is also already on module 'W3DModelDraw' within this object.

Please make unique tag names within an object definition

Stack Dump:
  <Unknown>(-1) : <Unknown> 0x006BCE12
  <Unknown>(-1) : <Unknown> 0x006BCC7A
  <Unknown>(-1) : <Unknown> 0x006E93D3
  <Unknown>(-1) : <Unknown> 0x006E9EC6
  <Unknown>(-1) : <Unknown> 0x007A4385
  <Unknown>(-1) : <Unknown> 0x007A419F
  <Unknown>(-1) : <Unknown> 0x006C7EE0
  <Unknown>(-1) : <Unknown> 0x009B5255
  <Unknown>(-1) : <Unknown> 0x007A1E3B
  <Unknown>(-1) : <Unknown> 0x007A1990
  <Unknown>(-1) : <Unknown> 0x006C4055
  <Unknown>(-1) : <Unknown> 0x0049456D
  <Unknown>(-1) : <Unknown> 0x00492A38
  <Unknown>(-1) : <Unknown> 0x73DDCF74
  <Unknown>(-1) : <Unknown> 0x7C816FD7
[Ignore]
ASSERTION FAILURE: [LINE: 5092 - FILE: 'Data\INI\Object\AmericaAir.ini'] Error reading field 'End' of block 'Object'

Stack Dump:
  <Unknown>(-1) : <Unknown> 0x006BCE12
  <Unknown>(-1) : <Unknown> 0x006BCC7A
  <Unknown>(-1) : <Unknown> 0x007A4401
  <Unknown>(-1) : <Unknown> 0x007A419F
  <Unknown>(-1) : <Unknown> 0x006C7EE0
  <Unknown>(-1) : <Unknown> 0x009B5255
  <Unknown>(-1) : <Unknown> 0x007A1E3B
  <Unknown>(-1) : <Unknown> 0x007A1990
  <Unknown>(-1) : <Unknown> 0x006C4055
  <Unknown>(-1) : <Unknown> 0x0049456D
  <Unknown>(-1) : <Unknown> 0x00492A38
  <Unknown>(-1) : <Unknown> 0x73DDCF74
  <Unknown>(-1) : <Unknown> 0x7C816FD7
[Ignore]
ASSERTION FAILURE: Error parsing block '  End' in INI file 'Data\INI\Object\AmericaAir.ini'

Stack Dump:
  <Unknown>(-1) : <Unknown> 0x006BCE12
  <Unknown>(-1) : <Unknown> 0x006BCC7A
  <Unknown>(-1) : <Unknown> 0x007A1E84
  <Unknown>(-1) : <Unknown> 0x007A1990
  <Unknown>(-1) : <Unknown> 0x006C4055
  <Unknown>(-1) : <Unknown> 0x0049456D
  <Unknown>(-1) : <Unknown> 0x00492A38
  <Unknown>(-1) : <Unknown> 0x73DDCF74
  <Unknown>(-1) : <Unknown> 0x7C816FD7
[Ignore]

********** EXCEPTION DUMP ****************
Dump exception info
Exception is access violation
WinMain at b88bf6
Found exception description
Error code: EXCEPTION_ACCESS_VIOLATION
Description: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Access address:10DF6E68 was read from.

Stack Dump:
Call Stack
**********
  <Unknown>(-1) : <Unknown> 0x21110F86
  <Unknown>(-1) : <Unknown> 0xFF006AEC

Details:
Register dump...
Eip:21110F86 Esp:00128408 Ebp:7C802520
Eax:10DF6E68 Ebx:7C802442 Ecx:0ADA6008
Edx:00000000 Esi:0ADA6008 Edi:7C80E93F
EFlags:00010246 
CS:001b  SS:0023  DS:0023  ES:0023  FS:003b  GS:0000
EIP bytes dump...

Bytes at CS:EIP (21110F86)  : 8B 08 50 FF 51 48 3D 96 00 78 88 75 55 8B 86 E0 00 00 00 8B 10 50 FF 52 50 A1 F8 16 15 21 85 C0 
********** END EXCEPTION DUMP ****************
CommieDog
17 years ago

ASSERTION FAILURE: Requested add of 'GLAStatueSelect' multiple times. Is this intentional? - jkmcd[/code][/quote]
No clue what this means.

[quote=Cap'n Steve][code]ASSERTION FAILURE: tab characters are not allowed in INI files (Data\INI\Voice.ini). please check your editor settings. Line Number 446[/code][/quote]
...Don't use tabs in your code.  Specifically, don't use tabs in line 446 of Voice.ini of your code.

[quote=Cap'n Steve][code]ASSERTION FAILURE: addModuleInfo - ERROR defining module 'ActiveBody' on thing template 'AmericaJetB52H'.  The module 'ActiveBody' has the tag 'ModuleTag_02' which must be unique among all modules for this object, but the tag 'ModuleTag_02' is also already on module 'W3DModelDraw' within this object.

Please make unique tag names within an object definition
...
ASSERTION FAILURE: [LINE: 5092 - FILE: 'Data\INI\Object\AmericaAir.ini'] Error reading field 'End' of block 'Object'
...
ASSERTION FAILURE: Error parsing block '  End' in INI file 'Data\INI\Object\AmericaAir.ini'

Cap'n Steve wrote:


You have two an object with two modules that share the name tag. Change one of them to something else.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Cap'n Steve
17 years ago

...Don't use tabs in your code. Specifically, don't use tabs in line 446 of Voice.ini of your code.


oddly enough, it isn't a tab, it's two spaces. re-typed the line, still popping up.

You have two an object with two modules that share the name tag. Change one of them to something else.


this, i've done a lot. I'm correcting as i go. however, it's not what kills it, i don't think; it's these:

ASSERTION FAILURE: [LINE: 5092 - FILE: 'Data\INI\Object\AmericaAir.ini'] Error reading field 'End' of block 'Object'


immediately after that, the app crashes.
So i've been trying to correct them, but it's strange. It complains only about some occurences of the word ' End', which i then change to 'End' (without the spaces). now it's throwing a fit about the letter 'd' in one line i've previously fixed. still trying.


ASSERTION FAILURE: [LINE: 5092 - FILE: 'Data\INI\Object\AmericaAir.ini'] Error reading field 'End' of block 'Object'


this is popping up a lot, seemingly at random. I'm correcting it as i go, but my correction to it is to reduce the spaces before end from two to one. if i eliminate the spaces altogether, it complains about the letter d in the same line.
so a question then: do those spaces matter or is it simply to organize it better for the coders? the game doesn't seem to care how many spaces there are, and i could preemptively run through all my ini files and reduce all the spaces to one, but i don't know if that'd be useful, or if it would cause more problems.

i'm glad it's actually telling me what lines are faulty, else i wouldn't even try.
curiously, they seem to start after line 4800 or so, all the time. i wonder why?

edit- okay something else i've noticed: the error reading section usually come within ten lines or so of the moduleupdate problems. i think it really has no problem with the word end, just that it throws a fit over module names and then finds something nearby to crash the whole thing. HAH! i knew it. corrected the module update and it didn't mention the end problem. so it's just the modules. oh well, about halfway through my ini files, we'll see what it comes up with after that.
--and that's because the 'end' is at the end of the block with the module update problem. well i feel stupid; guess that's what you were trying to tell me.


hot damn! something like 50 errors and another 100 problems preemptively fixed, I've got world builder running. thanks a lot, you've been rather helpful. I might be back if i screw something else up.

again, thanks.