Staredit Network > Forums > Modding Assistance > Topic: Question about GPTP
Question about GPTP
Mar 27 2013, 1:54 pm
By: Black_Overseer  

Mar 27 2013, 1:54 pm Black_Overseer Post #1



Question about GPTP

GPTP sprite ID swap doesn't work. A friend told me that you can change SC's 17 direction graphic to 32 direction graphic with this. Of course, it would be old GPTP or 1.15.1 ver. However recent GPTP sprite ID swap doesn't work which means we need a new method.
TychusFindlay from moddb is having problem with making Hellbat.

Likewise, we wanted to make a unit which completely changes if he gets upgrade.
Nevertheless we couldnt because sprite ID swap didn't work.




Mar 27 2013, 4:15 pm Biophysicist Post #2



Of course changing the sprite ID doesn't change the graphic. Why would it? For that to work, you'd need to completely destroy the existing image object, and replace it with a new one. Changing the sprite ID doesn't do any such thing. The sprite ID is passed to various constructors, but that doesn't mean that changing it after the fact would call the constructor again or anything. If it worked that way, then every time you changed a variable, every function that had ever been passed that variable as an argument would have to be called again to replace the previous function call, which would make absolutely no sense whatsoever.

That having been said, there is another way. A guy over at BWAI has figured out how to dynamically add and remove overlays from a unit. You could use that to replace the graphic, I'd think.



None.

Mar 28 2013, 4:21 pm Black_Overseer Post #3



ok, thanks :)




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy