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.
[2025-7-10. : 7:43 pm]
dumbducky -- >is retarded
[2025-7-10. : 7:43 pm]
dumbducky -- >is called Linksys Smart Wifi
[2025-7-10. : 12:15 am]
O)FaRTy1billion[MM] -- every time i want mosfets i can never find any, just boring bjts smh
[2025-7-10. : 12:15 am]
O)FaRTy1billion[MM] -- i want free mosfets
[2025-7-09. : 8:31 pm]
dumbducky -- Really cool for my router to ignore my static DHCP reservations
[2025-7-09. : 3:41 pm]
Ultraviolet -- Ya know, I was just wondering, "Where the heck can I collect some free mosfets??" Along comes dumbducky with a perfect solution. How lucky.
[2025-7-08. : 4:47 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet | l I 1 │ ︳ 〡│┃︱ hope I did include your line of choice :awesome:
fuck if I know :lol:
[2025-7-08. : 1:31 pm]
Oh_Man -- doing goods work with that water SIE
[2025-7-08. : 5:08 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: l in the chat for you cooked bois
| l I 1 │ ︳ 〡│┃︱ hope I did include your line of choice :awesome:
Please log in to shout.


Members Online: Zycorax