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



Hi,

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?

regards
Andreas




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]


Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Zergy