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.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
Please log in to shout.


Members Online: RIVE, Wing Zero, 1carolinee471rM1