I'd like to find a way to change the textures of a portrait model, is that even possible through actors messages?
Also, I'm quite confused about how the slot system works.
I understand that the Prefix and Substring are what allow the texture change to occur, so what is the purpose of the Slot?
The material folders always have odd names and bear no relation to "main" or "hair" etc.
Seems like this would have been easier and more efficient for the engine if the Texture Declaration used the numeric Material Index instead of string matching.
There is an easier method to replace textures. The select ID tutorial was meant if you need both the original and new texture. This method will replace the original texture.
You have to export/download the textures you want. Than rename it to the original used by the model. If you import them it will overwrite the old ones. You can find this information in the previewer (previewer/right mouse-button/select model information/ (you have the model information tab right before you) than materials and at than search for the texture used (most of the time its 0)
For example, i downloaded Foreswornes tempest textures. They are named Tempest_diffuse and tempest_Perfect (whatever they're named) Than i rename them to Carrier_diffuse and Carrier_Perfect, than i import them, save the editor and than close/reopen.
Now my carrier turns into an dark Carrier. But the original is not longer available.
I've read this Texture Select By ID tutorial and successfully changed the textures of a unit.
I'd like to find a way to change the textures of a portrait model, is that even possible through actors messages?
Also, I'm quite confused about how the slot system works. I understand that the Prefix and Substring are what allow the texture change to occur, so what is the purpose of the Slot? The material folders always have odd names and bear no relation to "main" or "hair" etc. Seems like this would have been easier and more efficient for the engine if the Texture Declaration used the numeric Material Index instead of string matching.
Thanks in advance.
There is an easier method to replace textures. The select ID tutorial was meant if you need both the original and new texture. This method will replace the original texture.
You have to export/download the textures you want. Than rename it to the original used by the model. If you import them it will overwrite the old ones. You can find this information in the previewer (previewer/right mouse-button/select model information/ (you have the model information tab right before you) than materials and at than search for the texture used (most of the time its 0)
For example, i downloaded Foreswornes tempest textures. They are named Tempest_diffuse and tempest_Perfect (whatever they're named) Than i rename them to Carrier_diffuse and Carrier_Perfect, than i import them, save the editor and than close/reopen.
Now my carrier turns into an dark Carrier. But the original is not longer available.
You will find the Unit actor has a separate actor for portraits it links to. Alter the events there for texture swaps.
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