Staredit Network

Staredit Network -> Modding Assistance -> icecc code not sure if i wrote this right
Report, edit, etc...Posted by Kookster on 2006-09-13 at 19:27:22
the only changes ive done is to the dragoon but icecc doesnt want to compile the text to a bin file so i might of written something wrong or something along those lines here is my work:

CODE
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 122 Dragoon (protoss\dragoon.grp)
.headerstart
IsId            153
Type            21
Init            DragoonInit
Death           DragoonDeath
GndAttkInit     DragoonGndAttkInit
AirAttkInit     DragoonGndAttkInit
SpAbility1      DragoonSpAbility1
GndAttkRpt      DragoonGndAttkRpt
AirAttkRpt      DragoonGndAttkRpt
SpAbility2      [NONE]
GndAttkToIdle   DragoonGndAttkToIdle
AirAttkToIdle   DragoonGndAttkToIdle
SpAbility3      [NONE]
Walking         DragoonWalking
Other           DragoonOther
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking       [NONE]
Landing         [NONE]
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       [NONE]
Unknown20       [NONE]
Unknown21       DragoonUnknown21
.headerend
# ----------------------------------------------------------------------------- #

DragoonInit:
imgul           123 0 0 # DragoonShad (protoss\pdrShad.grp)
DragoonOther:
playfram        0x00 # frame set 0
waitrand        1 3
local226:
playfram        0x11 # frame set 1
wait            2
playfram        0x22 # frame set 2
wait            2
playfram        0x33 # frame set 3
wait            2
playfram        0x44 # frame set 4
wait            2
playfram        0x55 # frame set 5
wait            2
playfram        0x66 # frame set 6
wait            2
playfram        0x77 # frame set 7
wait            2
playfram        0x00 # frame set 0
wait            2
goto            local226

DragoonDeath:
playsnd         493 # Protoss\DRAGOON\PDrDth00.WAV
playframno      0
playfram        0x198 # frame set 24
wait            2
playfram        0x199 # frame set 24
wait            2
playfram        0x19a # frame set 24
wait            2
playfram        0x19b # frame set 24
wait            2
playfram        0x19c # frame set 24
wait            2
playfram        0x19d # frame set 24
wait            2
playfram        0x19e # frame set 24
wait            2
sprul11         192 0 0 # DragoonDeath (protoss\pdrDeath.grp)
wait            1
end            

DragoonGndAttkInit:
playfram        0x110 # frame set 16
wait            1
playfram        0x121 # frame set 17
wait            1
playfram        0x132 # frame set 18
wait            1
playfram        0x143 # frame set 19
wait            1
playfram        0x154 # frame set 20
wait            1
playfram        0x165 # frame set 21
wait            1
DragoonGndAttkRpt:
playfram        0x176 # frame set 22
wait            1
playfram        0x187 # frame set 23
wait            1
attackwith      1
playfram        0x176 # frame set 22
wait            1
playfram        0x165 # frame set 21
gotorepeatattk  
ignorerest  
DragoonSpAbility1:
tmprmgraphicstart
move            4
wait            1
playfram        0x88 # frame set 8
move            6
wait            1
playfram        0x99 # frame set 9
move            8
wait            1
playfram        0xaa # frame set 10
move            8
wait            1
playfram        0xbb # frame set 11
move            2
wait            1
playfram        0xcc # frame set 12
move            2
wait            1
playfram        0xdd # frame set 13
move            6
wait            1
playfram        0xee # frame set 14
move            6
wait            1
playfram        0xff # frame set 15
goto            DragoonWalking
DragoonGndAttkToIdle:
wait            1
playfram        0x154 # frame set 20
wait            1
playfram        0x143 # frame set 19
wait            1
playfram        0x132 # frame set 18
wait            1
playfram        0x121 # frame set 17
wait            1
playfram        0x110 # frame set 16
goto            DragoonOther

DragoonWalking:
__1e_condjmp 2 DragoonSpAbility1
tmprmgraphicend
move            4
wait            1
playfram        0x88 # frame set 8
move            6
wait            1
playfram        0x99 # frame set 9
move            8
wait            1
playfram        0xaa # frame set 10
move            8
wait            1
playfram        0xbb # frame set 11
move            2
wait            1
playfram        0xcc # frame set 12
move            2
wait            1
playfram        0xdd # frame set 13
move            6
wait            1
playfram        0xee # frame set 14
move            6
wait            1
playfram        0xff # frame set 15
goto            DragoonWalking
DragoonUnknown21:
imgol           125 0 0 # Unknown125 (protoss\dragoon.grp)
goto            local227

local227:
wait            125
goto            local227


the only things changed in here are that i added DragoonSpAbility1 so it has one i gave it the script under DragoonSpAbility1 and i changed DragoonWalking so it would include the random go to offset thing
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-09-13 at 19:59:20
Mind telling us the error?
It would make it allot easier, which would help since I'm too lazy to read all this today... tongue.gif
Report, edit, etc...Posted by Kookster on 2006-09-13 at 20:27:25
there is no error i click the button it does nothing

scratch that it does do something i noticed my computer was going way slower so i opened up task manager and it showed over 30 operations by icecc everytime i hit compile it would make another, they all would shut if i closed icecc
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-09-13 at 22:09:05
1) Try placing the "tmprmgraphicend" at the end of "SpAbility1" instead of the beginning of "Walking." I'd bet it can only process that if it detects a tmprmgraphicstart in the same vicinity.

2) Are you sure "attackwith" is a real opcode? It sounds like you might be using a fix--those tend to break.
Report, edit, etc...Posted by Kookster on 2006-09-14 at 00:16:35
attackwith where did you get that code??
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-09-14 at 08:51:36
Switch to normal IceCC, and replace attackwith to attack25
Next Page (1)