Staredit Network > Forums > Modding Assistance > Topic: Building GRP Sprites
Building GRP Sprites
Sep 1 2022, 7:13 pm
By: andreasvz  

Sep 1 2022, 7:13 pm andreasvz Post #1


I try to find some "rules" in the frame ordering of building sprites.

Is the first frame always the standing frame? Which ones are the flyer frames? Which one the construction frames?

From which data could I see this?


Sep 1 2022, 8:10 pm IlyaSnopchenko Post #2

The Curious

The frame order is defined in iscript (.bin/.txt). There is no strict rule for which animation comes after which, though. Some sprites have the death animations put up front but in this case the initialization animation points to some other frames / framesets (for example, for ghosts the first frameset to be played is 3).

Open up iscript.bin found under scripts\ in the game archive (or better yet, decompile it to text) using PYICE and look at the desired animation.

Trial and error... mostly error.

Sep 2 2022, 2:12 pm andreasvz Post #3

Ok, thanks.

Could I also find out how many walking directions are possible for a units sprite?

It seems most units have 32 walking directions, but for e.g. protoss/wittness.grp it looks less (compared with marine.grp). I tried to find this in iscript.bin but didn't find it.

Sep 2 2022, 10:47 pm Voyager7456 Post #4

Responsible for my own happiness? I can't even be responsible for my own breakfast

Every unit that turns has 32 directions. The GRP has 17 frames of rotation (from 0-180 degrees), and these are mirrored by the engine when facing the other direction. So for units that turn, every 17th frame is the next frame in that animation for that direction.

Ground units appear to have fewer directions in game because their GRPs duplicate each frame except for the 17th frame in a frameset. Taking the Marine as an example, if you decompile it you'll see marine000 and marine001 are identical, as are marine002 and marine003, etc. So in game they appear to have 9 directions.

all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox

Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]

  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:53 am]
jjf28 -- memes
[2023-3-26. : 5:11 pm]
KroznadeSC -- Didn't see the color selection on the left XD
[2023-3-26. : 5:10 pm]
KroznadeSC -- hehe, I managed to on XD
[2023-3-26. : 3:21 pm]
Vrael -- <div class="TakeOverAsAdmin" class="threeturtlesinastraightjacket" class="Boppin"> Hi Guys! Nothing inconspicuous here!</element>
[2023-3-26. : 6:54 am]
NudeRaider -- KroznadeSC
KroznadeSC shouted: oh my god sorry having problems typing
you mean having problems cheating your way into a shoutbox color :P
[2023-3-26. : 4:56 am]
Dem0n -- meme
[2023-3-26. : 3:34 am]
KroznadeSC -- :wob:
[2023-3-26. : 2:45 am]
O)FaRTy1billion[MM] -- i forgot this was a thing
[2023-3-26. : 2:44 am]
O)FaRTy1billion[MM] -- ya
[2023-3-25. : 11:56 pm]
KroznadeSC -- oh my god sorry having problems typing
Please log in to shout.

Members Online: IlyaSnopchenko, Roy, Salamano, jjf28