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.


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

ok, thanks :)

  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:22 am]
Zycorax -- :wob:
[03:58 am]
razorback9423 -- :wob: C.I.S. Conversion Mod Version 1.4 is now out! :wob:
[01:57 am]
KrayZee -- :wob:
[01:15 am]
O)FaRTy1billion[MM] -- :wob:
[12:09 am]
razorback9423 -- :wob:
[10:41 pm]
RIVE -- :wob:
[05:16 pm]
jjf28 -- :wob:
[04:04 pm]
Vrael -- :wob:
[02:12 pm]
MTiger156 -- :wob: wob u :wob:
[09:57 am]
Zycorax -- :wob:
Please log in to shout.

Members Online: Roy, Suicidal Insanity, razorback9423