I finally finished fixing it up, here it is.
Okay, here's a great and useful tip/tutorial
use this for "CV5 and Ice/IceCC combo"
then you guys want to know about CV5.
What is CV5? a view and extract tool for most image files blizzard uses for it's graphics files.
Basically, CV5 is a Diablo tool for GFX files, but it also works for StarCraft and allows open/view/extract/convert/play animation/animating with scripts for easily furnishing and other useful functions.
Note: CV5 can't compile GRP files, it can only open/view/extract/convert/play animation...
So don't try to just use this tool, as you still need other GRP tools along with it.
This tool's great for creating or editing GRP files.
To set it up, unzip it and there should be 3 included tools.
1. CV5 - this is a viewer and extracts image files for Blizzard's Game Graphics.
2. MPQMaster - this is a MPQ tool, it is much faster and smaller than other tools.
3. Paledit - this tool is for color set. (palette files)
In my usage, I always use MPQMaster since it's faster and smaller than WinMPQ, so I'd recommend you use MPQMaster.
Ok, I'll return to the subject.
As I said about CV5's function, it can open/view/extract/convert/play animation/animate with Script(own strings) for GRP file.
As you know, when you write a iscript with Ice/IceCC, especially when use IceCC... there isn't the functions to play and preview.
Ice has the preview GRP function, but that just shows images and if you want to see other frames that function is very annoying because there is no functions to auto play for animation.
But CV5 can do that and also supports animation Script.
Note: scripting is very experimental.
For example, if you write a new iscript for the marines actions, write a script for CV5 to animate the same as you'd write play frames in the marine's header
and set it to enabling scripts in CV5 and play animate GRP, you can play auto animation preview the same as the marine's script.
Okay, now it's going to be more detailed.....I will go on with a example and it will get more detailed step by step.
1. When u use Ice/IceCC, run CV5 with it.
2. Write a script for marine's Actions. (ex: Other Actions)
3. then the script should look similar like this:
CODE
MarineOther:
playfram 17
wait 1
playfram 18
wait 1
playfram 20
wait 1
playfram 22
wait 1
playfram 21
wait 1
playfram 150
wait 1
playfram 151
wait 1
goto other somthing
what that script contains is not important, that script is just written for an example.
Anyway, write script-file for CV5 animating.
If u read "README.txt" file in CV5's installed folder then u could learn how to use the
script-file with CV5
CV5 is simple, this is a basic script.....
CODE
// this is a comment
01
02
03
03 MIRROR_X
02 MIRROR_X
01 MIRROR_X
01 MIRROR_Y
02 MIRROR_X MIRROR_Y
--------------------------------
frame number | effect
it's all very simple
okay, now going to CV5 windows...
first, how to load CV5-Script?
just follow this.....
-------------------------------------------------------------------------------------
•1. Run CV5 and load any GRP.
•2. Create a *.txt file or *.scp, whatever file format you choose is not important, just create document file with notepad or another text editor.
•3. Write script like the one I showed you earlier.
•4. Now check "enable Scripts" in Animator area of CV5 windows and click [>>] button then select a created text-script file and click the [play] button, finally you will see the animation using the script-file. (sometimes u might need to click the [play] button twice for it to play well)
•5. Enjoy playing your animated scripts ~!
-------------------------------------------------------------------------------------
refer to that basic script and now write a script-file for CV5 animating,
if you want it to play at the same time, written Scripts then write like this
CODE
17
18
20
22
21
150
151
You just write play frame number.
Did u create your CV5-Script for unit's Actions? if you did, load the script file and play.
How's play?... That is cool? I think this way is very useful for write special motions and effect such as flames, or explosions animation
okay, just try this way and it might be more effective and useful for many things.
here is my workspace screenshot
Basic usage for CV5:
here are some uses CV5 has for StarCraft's GRPs.
1. How to load StarCraft Palette:
- just click [palette] button and pick palette file, then show colors as well.
2. How to covert to other image file types: (like jpg, gif, bmp)
- when you load any GRP files, it shows the frame number list on Browser windows, select frames and click [save], then you can covert to other file types.
3. How to change animation play speed?
- Just input speed value in speed input box.
4. When I use a CV5 script-file it crashes.
- If you write a non-existent frame number it will crash.
5. How do I make it animate a GIF file?
- If you want to convert the GRP frames to animate GIF, then input starting frame and ending frame number, and click on the [save] button in animator label, then frames save to GIF files.
6. How to show multiple frames?
- Select multiple frames and click the [view] button, then just show images to view multiple frames in ones.
here is a basic marine script for CV5 animating
CODE
//attack
0
17
34
51
34
51
34
51
34
17
0
//walking
85
102
119
136
153
170
187
204
68
and SCV
CODE
//Attack and working
34
17
34
17
this is my custom script
CODE
//SCV looks like Dancing
16
33
49
50
49 MIRROR_X
49
50
49 MIRROR_X
33
49
49 MIRROR_X
49
50
49 MIRROR_X
33
49
49 MIRROR_X
49
50
49 MIRROR_X
33
49
CODE
//marine gun shot and jump
33
31
30
48
63
46
63
46
63
82
101
118
186
FAQ
-------
Q : I cant get it to load a script, but AWESOMEE!!1
A : •1. Run CV5 and load any GRP.
•2. Create a *.txt file or *.scp file, whatever file format you choose is not important, just create a new document file with notepad or any other text editor.
•3. Write a script like one above-mentioned in a created text file.
•4. Now check "enable Scripts" in Animator area of CV5 windows and click [>>] button then select a created text-script file and click [play] button finally, then you will see the animation with it using the script-file (sometimes u should click [play] button twice for it to play well)
•5. Enjoy play your scripts ~!
If you want to preview each Action of a unit's animations with Ice/IceCC,
then scripting for CV5 is a very good tool for writing advanced iscripts,
just write play frames the same as writing play frame number for iscript.