I'm currently working on a mod where I'd like to use a built-in faction system.
as a part of this, several units must receive model swaps based on the choice. I've used the same upgrade tactic as is used for the swap to Tal'Darim units in Legacy.
I run into a little snag though... The swaps are working fine for Zealots, Archon, Immortals, colossi and Disruptor, however I have some problems with the Stargate units.
I remeber from way back that this had something to do with the fact that Stargate built units get a "hidden" swap from the warping model.
I've been trying to piece together how this works but I'm not seeing it.
Can someone provide some help on how to succesfully model swap a stargate unit?
Yeah i know. If I recall correctly, in WoL-era they were actor actions with a model swap action and a unit validator. They were configured in the Stargate actor that at warp in finish, the model would swap from the blue warping model to the normal unit model. But this now seems to be different in that it works with signals and I don't know what. It also refers to other actors which do something with the warp in model, but the link to the "reswap" back to normal unit model is unclear to me.
What I crrently have done is: upgrade 'name-upgrade' add, modelswap 'model'
And secondly; unit birth, validate unit 'validator', modelswap 'model'.
And this setup work for all other models, but for the Phoenix for instance, the model doesn't swap and remains the original model it is set to in the "art model" expression of the actor.
And when I go look in the event section for the stargate it only seems to say it must create the warping model when a Phoenix is being produced, but the swap from warp-to-normal isn't configured there (at least for as far as I can tell).
Probably a Simple actor or some invisible Model actor that gets the signal and then sends the needed actor message back the the ::Host, ::Sender or ::Main target.
WOL used data HOTS and LOTV used triggers to swap the units.
For debugging I like to use the Set Tint Color event action and have a buff that adds +1 max energy validated by the validator under scrutiny. First make sure the events and terms being used to model swap are working. Then find out about downstream.
I tried to change the unit birth event for the actor creation event but that didn't work when the remainder of the setup was unchanged.
From that post from yesterday, I did it again to remove a unit birth event thats higher up in the events list, and tested my map twice now, and it seems to be caused by that event that creates the change.... in my testmap that is.
Attached picture shows which event I mean.
Removing it allowed the Phoenix to correctly warp in as a Scout model when the required upgrade is given to the player.
Its an event that seems to be present for all units.
I'm a little puzzled however as to why that this works??
Hi guys,
I'm currently working on a mod where I'd like to use a built-in faction system.
as a part of this, several units must receive model swaps based on the choice. I've used the same upgrade tactic as is used for the swap to Tal'Darim units in Legacy.
I run into a little snag though... The swaps are working fine for Zealots, Archon, Immortals, colossi and Disruptor, however I have some problems with the Stargate units.
I remeber from way back that this had something to do with the fact that Stargate built units get a "hidden" swap from the warping model.
I've been trying to piece together how this works but I'm not seeing it.
Can someone provide some help on how to succesfully model swap a stargate unit?
Thanks
Custom Campaign Initiative
Most swaps are on actor creation using a Validate Player term.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Yeah i know. If I recall correctly, in WoL-era they were actor actions with a model swap action and a unit validator. They were configured in the Stargate actor that at warp in finish, the model would swap from the blue warping model to the normal unit model. But this now seems to be different in that it works with signals and I don't know what. It also refers to other actors which do something with the warp in model, but the link to the "reswap" back to normal unit model is unclear to me.
What I crrently have done is: upgrade 'name-upgrade' add, modelswap 'model'
And secondly; unit birth, validate unit 'validator', modelswap 'model'.
And this setup work for all other models, but for the Phoenix for instance, the model doesn't swap and remains the original model it is set to in the "art model" expression of the actor.
And when I go look in the event section for the stargate it only seems to say it must create the warping model when a Phoenix is being produced, but the swap from warp-to-normal isn't configured there (at least for as far as I can tell).
Custom Campaign Initiative
*Bump
Still having issues with this.
Custom Campaign Initiative
Probably a Simple actor or some invisible Model actor that gets the signal and then sends the needed actor message back the the ::Host, ::Sender or ::Main target.
WOL used data HOTS and LOTV used triggers to swap the units.
For debugging I like to use the Set Tint Color event action and have a buff that adds +1 max energy validated by the validator under scrutiny. First make sure the events and terms being used to model swap are working. Then find out about downstream.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Not solved
Custom Campaign Initiative
What action was it linked to?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Sorry, I had it wrong.. Yesterday in my testmap I did something which worked, but I don't remember what it was. however it was not what I wrote here.
Now I'm trying to get it working again, and just NOTHING I try does it. I'm so lost that I'm done looking.
Nothing in the goddamn actor (events or otherwise) looks even in the slightest the cause.
I just do not understand .....
Edit: I also can't find a single reason why the model swap action works for basically any ground unit, and not for the stupid aircrafts....
I've also attached a few screenshots
Custom Campaign Initiative
Try using an Actor Creation event?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I tried to change the unit birth event for the actor creation event but that didn't work when the remainder of the setup was unchanged.
From that post from yesterday, I did it again to remove a unit birth event thats higher up in the events list, and tested my map twice now, and it seems to be caused by that event that creates the change.... in my testmap that is.
Attached picture shows which event I mean.
Removing it allowed the Phoenix to correctly warp in as a Scout model when the required upgrade is given to the player.
Its an event that seems to be present for all units.
I'm a little puzzled however as to why that this works??
Custom Campaign Initiative
Event Macro?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg