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.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Roy, jun3hong