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.
[11:58 pm]
O)FaRTy1billion[MM] -- wb sen
[2024-9-30. : 6:06 pm]
NudeRaider -- Zoan
Zoan shouted: NudeRaider :O so that's why we get spambots about exercise equipment: they're just mineral farmers
of course, hired by me. Get on my level!
[2024-9-30. : 6:05 pm]
Zoan -- NudeRaider
NudeRaider shouted: just post more, plebs :ego:
:O so that's why we get spambots about exercise equipment: they're just mineral farmers
[2024-9-30. : 1:48 pm]
Vrael -- they made a movie about it and everything: https://en.wikipedia.org/wiki/Free_Willy
[2024-9-30. : 1:37 pm]
Oh_Man -- i dont know who this will guy is but he has been in captivity for far too long. free will!
[2024-9-30. : 8:41 am]
NudeRaider -- just post more, plebs :ego:
[2024-9-29. : 8:45 pm]
RIVE -- The top 1% of the top 1% are soulless, mod-entities who control more minerals than the bottom 99%
[2024-9-29. : 4:31 pm]
Vrael -- down with the mods! take their minerals!
[2024-9-29. : 4:31 pm]
Vrael -- if the top 1% just paid their fair share of minerals we all could just have minerals dammit
[2024-9-28. : 5:39 pm]
RIVE -- Minerals should be taxed
Please log in to shout.


Members Online: RIVE, Roy, xiongba, jun3hong, RexyRex