Staredit Network

Staredit Network -> Modding Assistance -> TIP-usage for write iscript with preview/play GRP
Report, edit, etc...Posted by nirvanajung on 2006-03-30 at 23:20:28
ok... now i give really Great and useful Tip/Tutorial to urs
i say this usage is "CV5 and ice/iceCC combo"
then uguys curious to know about CV5
what is CV5?.... ok that is view and extract tool to many image files for Blizzard's Game Graphics
Basically CV5 is Diablo1/2 tool for GFX but i can work for StarCraft
and allow open,view,extract,convert,play animate,animate with Scriptthat is furnish more useful and Good functions

but CV5 can not compile to GRP file it just can open,view,extract,convert,play animate

so when u make to GRP then use other GRP Tools

ok~! if want get CV5 then just click this
http://www.staredit.net/index.php?download=5133

This Tools great stuffs for creat/edit StarCraft GRP file

unzip and then there is include 3 tools

1. cv5 - this is viewer and extract to many image files for Blizzard's Game Graphics
2. MPQMaster - this is MPQ tool,It is much faster and smaller than other tools
3. Paledit - tool for color set(pallette)

in my usage, i always use MPQMaster that is more faster and smaller than winmpq
trust me that is ture, i recommend "MPQMaster" to urs

ok then i gonna return to the subject

i said about "cv5's function" that can open,view,extract,convert,play animate,animate with Script(own strings) for GRP file

so if use CV5 and written script combo then u could work like Video Studio really

as u know , when write iscript with ice/iceCC ,especially when use iceCC ...
there are not enough wanted functions to play and preview
ice is service preview GRP but that just show images and if want see other frames
that function is very annoying because there is no functions about Auto play for Animate

but CV5 can that stuffs and also CV5 support animation Script
Scripting is very experimental

for example, if u write script for marnes actions something , write Scripts of CV5 animate as same with writed play frames in marine's header
and enable scripts in CV5 and play animate GRP then u can play Auto animation preview as marine's Script

ok then now it's gonna more details.....i will gonna with example and it will going step by step

1. when u use ice/iceCC then run CV5 together
2. ok u just write Script to marine Actions something (ex:Other Actions)
3. then that scription is similar like this

note: for raise understanding, i will not use hex for frames number
it just orignial number so uguys should notice that

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

that script contents is not important that script just written impromptu
Anyway now, write script-file for CV5 animating
if u read "README.txt" file in CV5 intalled folder then u could know how to use for
script-file with CV5

CV5 script just simple this is 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
--------------------------------
frm number | effect

that's all very simple

ok now going to CV5 windows

first, how to load CV5-Script ?

just follow this.....
-------------------------------------------------------------------------------------
1.run CV5 and load any GRP
2. creat *.txt file or *.scp whatever file format is not important
just creat document file with notepad or other text editor
3. write script like above-mentioned in created text file
4. now check "enable Scripts" in Animator area of CV5 windows and click [>>] button then select created text-script file and click [play] button finally then u will see animation with use script-file (sometimes u should to click [play] button twice then will play well)
5. and enjoy play ur Scripts ~!

-------------------------------------------------------------------------------------

then refer to that basic used script and now write script-file for CV5 animating
if want play in same with written Scripts then write like this

CODE

17
18
20
22
21
150
151

just write play frame number that's all
did u creat ur CV5-Script for unit's Actions ? if did that, load Script file and play
how's play?... that is cool? i think this way is ver usefull for write special motions and effect like as flame,explosion animation

ok just try this ways it maybe make more effectively and very useful for many stuffs

here is my workspace screenshot
user posted image
how about this ? looks cool ? if feel so just try CV5 then u could work like "Video Studio" happy.gif

Addional:
Basic usage for CV5

here are some usage of CV5 for StarCraft GRP

1. how to load StarCraft Pallette
- just click [palette] button and pick pal file then show colors as well

2. how to covert to other images file (like jpg,gif,bmp)
- when u load any GRP files then there is showed frame number list on Browser windows and selet frames and click [save] then u can covert to save files

3. how to change animation play speed
- just input speed value in speed input box happy.gif

4. when i use CV5 script-file it was crashed
- if u write non exist frame number in GRP files then that will crash

5. how to make to animate GIF file?
- if u want convert GRP frames to animate GIF then input start frame and end frame number and [save] button in animator label then frames save to Gif files

6. how to showed frames to multiple ?
- select frames multiple and click [view] button then just show images to multiple
in ones

ADDITION:
here is 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
Report, edit, etc...Posted by Voyager7456(MM) on 2006-03-31 at 15:36:00
Great tutorial nirvanajung... you should submit it to the Tutorial Database along with your pallettes one.
Report, edit, etc...Posted by Darktossgen(MM) on 2006-03-31 at 15:38:43
I cant get it to load a Script, but AWESOMEE!!1
Report, edit, etc...Posted by nirvanajung on 2006-03-31 at 21:34:52
QUOTE(Darktossgen(MM) @ Mar 31 2006, 02:38 PM)
I cant get it to load a Script, but AWESOMEE!!1
[right][snapback]456693[/snapback][/right]

alright, just follow this steps

1.run CV5 and load any GRP
2. creat *.txt file or *.scp whatever file format is not important
just creat document file with notepad or other text editor
3. write script like above-mentioned in created text file
4. now check "enable Scripts" in Animator area of CV5 windows and click [>>] button then select created text-script file and click [play] button finally then u will see animation with use script-file (sometimes u should to click [play] button twice then will play well)
5. and enjoy play ur Scripts ~!

ADDITION:
if u want preview to each Actions of units animations with ice/iceCC
then Scripting for CV5 is very cool gear to Advance writing iscript
just write play frames as same as written play frame number for iscript

and if CV5-script is would be shared for "pre-animation" to ice/iceCC users
i think that sharing is really had better to Try eachother happy.gif

ADDITION:
QUOTE(Voyager7456(MM) @ Mar 31 2006, 02:35 PM)
Great tutorial nirvanajung... you should submit it to the Tutorial Database along with your pallettes one.
[right][snapback]456691[/snapback][/right]

i not think so because that pallete is just edited transparence color #1
that is small stuff, i think most modder could make to own pallette by oneself
Next Page (1)