Staredit Network

Staredit Network -> Modding Assistance -> Iscript not working right...
Report, edit, etc...Posted by Lord_Jeremy on 2007-01-16 at 21:54:26
I'm pretty sure there's an error somewhere, since when the little bugger attacks SC crashes... I think I need a second set of eyes on this one.

CODE

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 054 Zergling (zerg\zergling.grp)
.headerstart
IsId            31
Type            26
Init            ZerglingInit
Death           ZerglingDeath
GndAttkInit     ZerglingGndAttkInit
AirAttkInit     [NONE]
SpAbility1      [NONE]
GndAttkRpt      ZerglingGndAttkInit
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle   ZerglingGndAttkToIdle
AirAttkToIdle   [NONE]
SpAbility3      [NONE]
Walking         ZerglingWalking
Other           ZerglingGndAttkToIdle
BurrowInit      [NONE]
ConstrctHarvst  ZerglingConstrctHarvst
IsWorking       [NONE]
Landing         [NONE]
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       [NONE]
Unknown20       [NONE]
Unknown21       [NONE]
Unknown22       [NONE]
Unknown23       [NONE]
Unknown24       [NONE]
Burrow          ZerglingBurrow
UnBurrow        ZerglingUnBurrow
Unknown27       [NONE]
.headerend
# ----------------------------------------------------------------------------- #

ZerglingInit:
imgul09         55 0 0 # ZerglingShad (zerg\zzeShad.grp)
ZerglingGndAttkToIdle:
playfram        0x55 # frame set 5
goto            local00

local00:
wait            125
goto            local00

ZerglingDeath:
playsnd         896 # Zerg\Zergling\ZZeDth00.WAV
playframno      0
playfram        0x121 # frame set 17
wait            2
playfram        0x122 # frame set 17
wait            2
playfram        0x123 # frame set 17
wait            2
playfram        0x124 # frame set 17
wait            2
playfram        0x125 # frame set 17
wait            2
playfram        0x126 # frame set 17
wait            2
playfram        0x127 # frame set 17
wait            2
sprul11         160 0 0 # ZerglingDeath (zerg\zzeDeath.grp)
wait            1
end            

ZerglingGndAttkInit:
playfram        0x00 # frame set 0
waitrand        1 3
nobrkcodestart  
playfram        0x11 # frame set 1
waitrand        1 3
playfram        0x2 # frame set 2
playsnd  894 # Zerg\Ultra\zulHit00.WAV
attack25        1
waitrand        3 6
playsnd  894 # Zerg\Ultra\zulHit00.WAV
attack25        1
playfram        0x33 # frame set 3
waitrand        1 3
playfram        0x44 # frame set 4
waitrand        1 3
nobrkcodeend    
gotorepeatattk  
goto            ZerglingGndAttkToIdle

ZerglingWalking:
move            2
wait            1
playfram        0x66 # frame set 6
move            8
wait            1
playfram        0x77 # frame set 7
move            9
wait            1
playfram        0x88 # frame set 8
move            5
wait            1
playfram        0x99 # frame set 9
move            6
wait            1
playfram        0xaa # frame set 10
move            7
wait            1
playfram        0xbb # frame set 11
move            2
wait            1
playfram        0x55 # frame set 5
goto            ZerglingWalking

ZerglingConstrctHarvst:
playfram        0x110 # frame set 16
goto            local00

ZerglingBurrow:
imgol08         423 0 0 # Unknown423 (thingy\bDust.grp)
playfram        0xcc # frame set 12
wait            1
playfram        0xdd # frame set 13
wait            1
playfram        0xee # frame set 14
wait            1
playfram        0xff # frame set 15
wait            1
playfram        0x110 # frame set 16
wait            1
sigorder        4
goto            local00

ZerglingUnBurrow:
waitrand        1 5
imgul09         423 0 0 # Unknown423 (thingy\bDust.grp)
playfram        0xff # frame set 15
wait            1
playfram        0xee # frame set 14
wait            1
playfram        0xdd # frame set 13
wait            1
playfram        0xcc # frame set 12
wait            1
sigorder        4
goto            ZerglingGndAttkToIdle
Report, edit, etc...Posted by TheNomad on 2007-01-17 at 04:00:36
QUOTE(Lord_Jeremy @ Jan 17 2007, 05:54 AM)
CODE
ZerglingGndAttkInit:
[...]
playfram        0x2 # frame set 2
[...]

[right][snapback]614557[/snapback][/right]


should be playfram 0x22; so far that is the only difference I noticed, but I didn't test it in game, although I did have some weird SC moments when wrong frames caused it to crash... (unless you made any weapon dat changes)
Report, edit, etc...Posted by nirvanajung on 2007-01-17 at 04:41:21
yea.. u misstaked numbering binary-coded in playfram order
and i can see in ur use script u use "attack25 1"
but sometime some weapons doesnt work perpectly as compared with original attacking such as zealot

keep that attack order as before i don't know now which attack order used in zergling attack animations but that wasnt same that
maybe that was "attack1c" or something
if u didnt modify weapon quite different then anyways keep opcodes as possible

and another thing is...
dont use "waitrand" order much into attack animations for waiting time

just use orders for effective and well-directed
Report, edit, etc...Posted by TheNomad on 2007-01-17 at 05:38:09
attack25 1 is good, I experimented with all of them some time ago.
Report, edit, etc...Posted by Lord_Jeremy on 2007-01-17 at 07:01:52
QUOTE(nirvanajung @ Jan 17 2007, 04:41 AM)
and another thing is...
dont use "waitrand" order much into attack animations for waiting time

just use orders for effective and well-directed
[right][snapback]614679[/snapback][/right]

What's wrong with "waitrand"? I want the attack to look a bit funny. I also used it successfully in the SEN mod.
Report, edit, etc...Posted by nirvanajung on 2007-01-17 at 10:52:16
ya~! that isn't wrong
i just said that Don't overdo the randomical order
but if u use that much for funny then that's fine no problem

my purpose of saying use that a bit when u make animations to feel at ease wink.gif

btw, how about ur Windows of VPC is it work pretty well ?
and i'd tell u when grp coverting finished i'd send msg 2 u, its will soon

take care~!
Report, edit, etc...Posted by TheNomad on 2007-01-17 at 11:36:51
does it work now ? if it isn't that, it might be in a dat change (if you did one)
Report, edit, etc...Posted by Lord_Jeremy on 2007-01-17 at 20:29:13
yeah it works now. I guess all it was a stupid type of x22 being x2... or whatever... brain not entirely conscious right now...
Next Page (1)