Staredit Network

Staredit Network -> Modding Assistance -> Why do I crash?
Report, edit, etc...Posted by Ultramilkman on 2006-10-03 at 22:01:03
Why do I crash when I unsiege my siege tank, build a vulture that has mine researched?

Why why why?

QUOTE
# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Sat Sep 30 21:52:29 2006
# ----------------------------------------------------------------------------- #
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 250 SiegeTankTankBase (terran\tank.grp)
.headerstart
IsId            90
Type            23
Init            SiegeTankTankBaseInit
Death          SiegeTankTankBaseDeath
GndAttkInit    [NONE]
AirAttkInit    [NONE]
SpAbility1      [NONE]
GndAttkRpt      [NONE]
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle  [NONE]
AirAttkToIdle  [NONE]
SpAbility3      [NONE]
Walking        SiegeTankTankBaseWalking
Other          SiegeTankTankBaseOther
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking      [NONE]
Landing        [NONE]
LiftOff        [NONE]
Unknown18      [NONE]
Unknown19      [NONE]
Unknown20      [NONE]
Unknown21      [NONE]
Unknown22      [NONE]
Unknown23      SiegeTankTankBaseUnknown23
.headerend
# ----------------------------------------------------------------------------- #

SiegeTankTankBaseUnknown23:
playframno      12
imgol0d        251 2 0 # SiegeTankTankTurret (terran\tankt.grp)
SiegeTankTankBaseInit:
wait            1
imgul09        252 0 0 # SiegeTankTankShad (terran\ttaShad.grp)
playframno      12
SiegeTankTankBaseOther:
playfram        0x00 # frame set 0
goto            STlocal05

STlocal05:
wait            125
goto            STlocal05

SiegeTankTankBaseDeath:
playsnd        317 # Terran\TANK\TTaDth00.WAV
imgol08        333 0 0 # TerranBuildingExplosionmedium (thingy\tBangL.grp)
wait            3
end           

SiegeTankTankBaseWalking:
move            5
wait            1
playfram        0x00 # frame set 0
move            5
wait            1
playfram        0x11 # frame set 1
move            5
wait            1
playfram        0x22 # frame set 2
goto            SiegeTankTankBaseWalking

# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Sat Sep 30 21:52:29 2006
# ----------------------------------------------------------------------------- #
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 251 SiegeTankTankTurret (terran\tankt.grp)
.headerstart
IsId            91
Type            13
Init            SiegeTankTankTurretInit
Death          SiegeTankTankTurretDeath
GndAttkInit    SiegeTankTankTurretGndAttkInit
AirAttkInit    SiegeTankTankTurretAirAttkInit
SpAbility1      [NONE]
GndAttkRpt      SiegeTankTankTurretGndAttkInit
AirAttkRpt      SiegeTankTankTurretAirAttkInit
SpAbility2      [NONE]
GndAttkToIdle  SiegeTankTankTurretGndAttkToIdle
AirAttkToIdle  SiegeTankTankTurretGndAttkToIdle
SpAbility3      [NONE]
Walking        SiegeTankTankTurretGndAttkToIdle
Other          SiegeTankTankTurretGndAttkToIdle
BurrowInit      SiegeTankTankTurretGndAttkToIdle
.headerend
# ----------------------------------------------------------------------------- #

SiegeTankTankTurretInit:
wait            1
playframno      12
goto            SiegeTankTankTurretGndAttkToIdle

SiegeTankTankTurretGndAttkToIdle:
wait            125
goto            SiegeTankTankTurretGndAttkToIdle

SiegeTankTankTurretDeath:
wait            1
end           

SiegeTankTankTurretGndAttkInit:
wait            1
nobrkcodestart 
playsnd        68 # Bullet\TTaFir00.wav
imgol08        536 0 0 # Unknown536 (thingy\ettFlash.grp)
wait            2
attack25        1
nobrkcodeend   
gotorepeatattk 
goto            SiegeTankTankTurretGndAttkToIdle

SiegeTankTankTurretAirAttkInit:
wait  1
nobrkcodestart
playsnd  79
imgol08  249 7 7
wait  1
attack26
nobrkcodeend
gotorepeatattk
goto  SiegeTankTankTurretGndAttkToIdle

# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Sat Sep 30 21:52:29 2006
# ----------------------------------------------------------------------------- #
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 253 SiegeTankSiegeBase (terran\stank.grp)
.headerstart
IsId            92
Type            23
Init            SiegeTankSiegeBaseInit
Death          SiegeTankSiegeBaseDeath
GndAttkInit    [NONE]
AirAttkInit    [NONE]
SpAbility1      [NONE]
GndAttkRpt      [NONE]
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle  [NONE]
AirAttkToIdle  [NONE]
SpAbility3      [NONE]
Walking        [NONE]
Other          [NONE]
BurrowInit      [NONE]
ConstrctHarvst  SiegeTankSiegeBaseConstrctHarvst
IsWorking      [NONE]
Landing        [NONE]
LiftOff        [NONE]
Unknown18      [NONE]
Unknown19      [NONE]
Unknown20      [NONE]
Unknown21      [NONE]
Unknown22      [NONE]
Unknown23      SiegeTankSiegeBaseUnknown23
.headerend
# ----------------------------------------------------------------------------- #

SiegeTankSiegeBaseUnknown23:
imgol0d        254 2 0 # SiegeTankSiegeTurret (terran\stankt.grp)
SiegeTankSiegeBaseInit:
imgul09        255 0 0 # SiegeTankSiegeShad (terran\tstShad.grp)
imgul09  239 0 0
wait            1
__37            0
playsnd        319 # Terran\TANK\TTaTra01.WAV
playfram        0
wait            5
playfram        1
wait            5
playfram        2
wait            5
playfram        3
wait            5
playfram        4
wait            5
playfram        5
wait            38
sigorder        1
goto            SSlocal26

SSlocal26:
wait            125
goto            SSlocal26

SiegeTankSiegeBaseDeath:
playsnd        317 # Terran\TANK\TTaDth00.WAV
imgol08        333 0 0 # TerranBuildingExplosionmedium (thingy\tBangL.grp)
wait            3
end           

SiegeTankSiegeBaseConstrctHarvst:
wait            38
playsnd        319 # Terran\TANK\TTaTra01.WAV
playfram        4
wait            5
playfram        3
wait            5
playfram        2
wait            5
playfram        1
wait            5
playfram        0
wait            5
sigorder        1
goto            SSlocal26

# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Sat Sep 30 21:52:29 2006
# ----------------------------------------------------------------------------- #
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 254 SiegeTankSiegeTurret (terran\stankt.grp)
.headerstart
IsId            93
Type            14
Init            SiegeTankSiegeTurretInit
Death          SiegeTankSiegeTurretDeath
GndAttkInit    SiegeTankSiegeTurretGndAttkInit
AirAttkInit    [NONE]
SpAbility1      [NONE]
GndAttkRpt      SiegeTankSiegeTurretGndAttkInit
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle  SiegeTankSiegeTurretGndAttkToIdle
AirAttkToIdle  [NONE]
SpAbility3      [NONE]
Walking        [NONE]
Other          SiegeTankSiegeTurretGndAttkToIdle
BurrowInit      SiegeTankSiegeTurretGndAttkToIdle
ConstrctHarvst  SiegeTankSiegeTurretConstrctHarvst
IsWorking      [NONE]
.headerend
# ----------------------------------------------------------------------------- #

SiegeTankSiegeTurretInit:
playfram        0x11 # frame set 1
wait            1
nobrkcodestart 
wait            38
playsnd        318 # Terran\TANK\TTaTra00.WAV
wait            10
playfram        0x22 # frame set 2
wait            10
playfram        0x33 # frame set 3
wait            10
playfram        0x44 # frame set 4
wait            10
playfram        0x55 # frame set 5
wait            10
playframno      28
playfram        0x00 # frame set 0
nobrkcodeend   
goto            SiegeTankSiegeTurretGndAttkToIdle

SiegeTankSiegeTurretGndAttkToIdle:
wait            125
goto            SiegeTankSiegeTurretGndAttkToIdle

SiegeTankSiegeTurretDeath:
wait            1
end           

SiegeTankSiegeTurretGndAttkInit:
wait            1
nobrkcodestart 
playsnd        96 # Bullet\TTaFi200.wav
imgol0d        537 2 0 # Unknown537 (thingy\esiFire.grp)
wait            2
attack25        1
wait            1
playfram        0x00 # frame set 0
nobrkcodeend   
gotorepeatattk 
ignorerest     
goto            SiegeTankSiegeTurretGndAttkToIdle

SiegeTankSiegeTurretConstrctHarvst:
playframno      12
playsnd        318 # Terran\TANK\TTaTra00.WAV
playfram        0x55 # frame set 5
wait            20
playfram        0x44 # frame set 4
wait            15
playfram        0x33 # frame set 3
wait            7
playfram        0x22 # frame set 2
wait            9
playfram        0x11 # frame set 1
goto  SiegeTankSiegeTurretGndAttkToIdle
Report, edit, etc...Posted by Pie_Sniper on 2006-10-03 at 22:03:00
Automagic problem sensors, activate!

Well, what did you do?

:: Edit
Okay, but could you just post the tank and vulture scripts?

:: Edit 2
At a glance, you have no air attack repeat header in the vulture script.
Report, edit, etc...Posted by Ultramilkman on 2006-10-03 at 22:10:37
QUOTE(Pie_Sniper @ Oct 3 2006, 09:02 PM)
Automagic problem sensors, activate!

Well, what did you do?

:: Edit
Okay, but could you just post the tank and vulture scripts?

:: Edit 2
At a glance, you have no air attack repeat header in the vulture script.
[right][snapback]571495[/snapback][/right]



But why does it only crash if I research spider mines?
Report, edit, etc...Posted by Pie_Sniper on 2006-10-03 at 22:18:11
I don't know. It doesn't look like the vulture has an air attack anyways. Is that a default dat? Why was there a "die" command at the end of the BurrowInit header in the vulture script?
Report, edit, etc...Posted by Ultramilkman on 2006-10-03 at 22:24:13
QUOTE(Pie_Sniper @ Oct 3 2006, 09:17 PM)
I don't know.  It doesn't look like the vulture has an air attack anyways.  Is that a default dat? Why was there a "die" command at the end of the BurrowInit header in the vulture script?
[right][snapback]571504[/snapback][/right]


Where do you see the "die" command?
QUOTE
# This header is used by images.dat entries:
# 256 Vulture (terran\Vulture.grp)
.headerstart
IsId            86
Type            13
Init            VultureInit
Death          VultureDeath
GndAttkInit    VultureGndAttkInit
AirAttkInit    VultureAirAttkInit
SpAbility1      [NONE]
GndAttkRpt      VultureGndAttkInit
AirAttkRpt      VultureGndAttkInit
SpAbility2      [NONE]
GndAttkToIdle  VultureGndAttkToIdle
AirAttkToIdle  VultureGndAttkToIdle
SpAbility3      [NONE]
Walking        VultureGndAttkToIdle
Other          VultureGndAttkToIdle
BurrowInit      VultureBurrowInit
.headerend
# ----------------------------------------------------------------------------- #

VultureInit:
imgul09        257 0 7 # VultureShad (terran\Vulture.grp)
playfram        0x00 # frame set 0
goto            VultureGndAttkToIdle

VultureGndAttkToIdle:
wait            125
goto            VultureGndAttkToIdle

VultureDeath:
playsnd        353 # Terran\VULTURE\TVuDth00.WAV
imgol08        332 0 0 # TerranBuildingExplosionsmall (thingy\tBangS.grp)
wait            3
end           

VultureGndAttkInit:
wait            1
attack25 1
gotorepeatattk 
goto            VultureGndAttkToIdle

VultureAirAttkInit:
wait  1
attack26
gotorepeatattk
goto  VultureGndAttkToIdle

VultureBurrowInit:
attack25        1
sigorder        1
wait            1
end           
Report, edit, etc...Posted by Pie_Sniper on 2006-10-03 at 22:30:53
Er, sorry, I meant "end". tongue.gif

:: Edit
I think you should change it to "goto VultureGndAttkToIdle".
Report, edit, etc...Posted by Ultramilkman on 2006-10-04 at 16:49:21
QUOTE(Pie_Sniper @ Oct 3 2006, 09:30 PM)
Er, sorry, I meant "end". tongue.gif

:: Edit
I think you should change it to "goto VultureGndAttkToIdle".
[right][snapback]571512[/snapback][/right]


Wait that's default script, I didn't tamper with it at all, well today I decided to remake my mod, it's getting hard to fix the various amounts of errors and crashes I keep getting =D.
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-10-07 at 09:15:55
Did you check the "miner" flag (in DatEdit) for the vulture? That would cause a crash if you had spider mines researched.
Next Page (1)