[center]
Infested SCVsUsing IceCC to edit the "Iscript.bin" file.Iscripts, they do more then you think they do![/center]
Disclaimer: This is not a tutorial on how to write custom iscripts or substantially change iscripts, if you want to learn that, talk to someone like BSTRhino. This tutorial is meant to teach you how to use IceCC. Future iscript tutorials (by me at least) will assume you know this and will deal with the actual language itself.Before starting: IceCC's Iscript.bin file might be out of date. To update it open your patch_rt.mpq in
WinMPQ and drag the "scripts\ISCRIPT.BIN" file into C:\IceCC\data\scripts
1. Download, install and open
IceCC. Make sure that you install it into your C:\ drive, or else you might get an error message.
2. Double click on the file called "IceCCUI"
3. Select Terran SCV from the units header and press the decompile button.
4. Click the "Open in editor" button. IceCCUI should create a file called "Iscript.txt" in the IceCC folder. Notepad should then open that file.
5. You should see some text like this:
CODE
# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file './data\scripts\iscript.bin'
# created on: Mon Jun 06 21:01:17 2005
# ----------------------------------------------------------------------------- #
Explanation: The goal of this tutorial is to create an infested look on SCVs by overlaying an acid spores image on the SCV unit. To do this, you need to find the number which corresponds to an acid spores effect in the images.dat file. Steps 6 through 8 show you how to find that number using IceCC.
6. Minimize those windows. Then go to the IceCC folder and double click on the "Help" folder.
7. Open images.txt, and search for the entry which says "Acid Spores Overlay 4 (Large)" (hint, it's at the very bottom of the file).
As you can see, the number this corresponds to is 997.
8. Unminimize notepad, and go to where it says:
CODE
SCVInit:
imgul09 248 0 7 # SCVShad (terran\SCV.grp)
playfram 0x00 # frame set 0
goto SCVOther
Explanation: "SCVInit" is the section that starcraft will go to when the SCV is first created. "imgul09" basically gives the SCV a shadow. "Playfram 0x00" draws the SCV and "goto SCVOther" makes the SCV play it's idle animation. We want to make an image that overlays the SCV. The command for this is "imgol08 <images.dat entry number> <offset y> <offset x>"
(thingys in <> correspond to variables)
Because we want to have the acid spores directly on top of the SCV, set the offset x and y to 0. We found out previously that the number for the images.dat entry we want is 989.
9. Under where it says "playfram 0x00" write:
CODE
[tab]imgol08[tab]989 0 0
10. Save the .txt file. Open the command line promt by going to RUN and typing in "cmd".
Type: cd C:\IceCC
Type: icecc -o "C:\my modding folder\iscript.bin" C:\IceCC\data\scripts\iscript.bin C:\IceCC\iscript.txt
( Silence is good, error messages are bad. Don't re do it just because it didn't say "DONE!". IceCC never says DONE.)
Explanation: Ice cc is the txt to bin compiler. The syntax is -[options] <input 1> <input 2> <input n>
The option "o" tells IceCC to write the compiled .bin file to <input> instead of the defult directory.
What you are basically saying is: Merge the files "C:\IceCC\data\scripts\iscript.bin" and "C:\IceCC\iscript.txt" and write the result to "C:\my modding folder\iscript.bin"
IceCC will compile any .txt files it comes across (it's main function actually).
11. Add your new Isciprt file to your MPQ and run it. You should know how to do this.
For more details and technical explanations of how to edit Iscripts, please READ THE MANUAL.PDF that comes with IceCC. I can't attach it if because I'm not allowed to attach PDFs.
Note to Mods: Sticking this would be nice. Also if mods can attach PDF files, then it would really be appreciated.