Staredit Network

Staredit Network -> Modding Assistance -> Help with iscripting
Report, edit, etc...Posted by CommmanderMoo19 on 2007-01-20 at 22:22:06
In the tutorials i read about doing stuff to units it says decompile,i do that,then it says to open in editor.I open in editor after clicking decompile and they say look for the part of the document that says The unit are using init(example SCVinit)The txt file i opened in the editor does not have the init.Is it supposed to have nothing written in the file you are making or is it supposed to have that text with the "init" and code for the unit?
Report, edit, etc...Posted by O)FaRTy1billion on 2007-01-21 at 13:36:43
I believe this is what it is talking about... I highlighted everything to do with Init...
[codebox]# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 247 SCV (terran\SCV.grp)
.headerstart
IsId 84
Type 15
Init SCVInit
Death SCVDeath
GndAttkInit SCVGndAttkInit
AirAttkInit [NONE]
SpAbility1 [NONE]
GndAttkRpt SCVGndAttkInit
AirAttkRpt [NONE]
SpAbility2 [NONE]
GndAttkToIdle SCVGndAttkToIdle
AirAttkToIdle [NONE]
SpAbility3 [NONE]
Walking SCVWalking
Other SCVOther
BurrowInit [NONE]
ConstrctHarvst [NONE]
IsWorking SCVIsWorking
.headerend
# ----------------------------------------------------------------------------- #

SCVInit:
imgul09 248 0 7 # SCVShad (terran\SCV.grp)
playfram 0x00 # frame set 0
goto SCVOther


SCVOther:
wait 125
goto SCVOther

SCVDeath:
playsnd 369 # Terran\SCV\TSCDth00.WAV
imgol08 332 0 0 # TerranBuildingExplosionsmall (thingy\tBangS.grp)
wait 3
end

SCVGndAttkInit:
shvertpos 0
wait 1
playfram 0x22 # frame set 2
attack25 1
wait 1
playfram 0x11 # frame set 1
wait 1
gotorepeatattk
goto SCVOther

SCVGndAttkToIdle:
playfram 0x00 # frame set 0
goto SCVOther

SCVWalking:
playfram 0x00 # frame set 0
imgol08 249 0 0 # SCVGlow (thingy\tscGlow.grp)
shvertpos 0
goto SCVOther

SCVIsWorking:
shvertpos 0
wait 1
local153:
playfram 0x22 # frame set 2
useweapon 14 # Fusion Cutter
wait 1
playfram 0x11 # frame set 1
waitrand 8 10
goto local153[/codebox]
Report, edit, etc...Posted by CommmanderMoo19 on 2007-01-21 at 14:28:08
ya but when you extract the file for scv and it makes a txt in the ice folder(or whereever you put it)and you open that txt file is it supposed to say all of what you wrote in it?If it is supposed to say all that i dont know what i did wrong.I went to the units tab and extracted scv file.Im trying to use the tutorial for infested scvs with the acid spores.


Also everything in the code above since the txt doesnt have any of that should i type it all in there and make the chenge the turorial said?When iscripting you need the iscript.bin and then your file in the mpq right?Some mods the iscript . bin looks like this-scripts\ISCRIPT.BINmine looks like this-scripts\iscript.bin,so is that a problem?
Report, edit, etc...Posted by SubFocus on 2007-01-21 at 16:42:36
Are you sure you're compiling your script right? After the .txt is saved in the IceCC folder, you click the compile tab when you have IceCC running, and then click the add button and find the .txt you just saved to.

For some reason, I had alot of difficulty compiling stuff before.
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2007-01-21 at 21:52:03
File names in MPQs are not case sensitive, although things within iscript are. Did you select everything you wanted to extract and then hit "Decompile?" You wouldn't even need to find iscript if you have the "Use default iscript" box checked...

It should generate a text file in the ICECC folder containing everything you had highlighted when you decompiled. If it's not, give us a step-by-step description of everything you did.
Report, edit, etc...Posted by CommmanderMoo19 on 2007-01-22 at 19:30:16
I clicked on the terran scv,clcked decompile,open in editor and then it siad there was no scv.txt create new file and it was blank.
Next Page (1)