Staredit Network > Forums > SC2 Custom Maps > Topic: Make a normal unit appear like a Stone-Statue
Make a normal unit appear like a Stone-Statue
Jan 24 2014, 6:46 am
By: Dabbu  

Jan 24 2014, 6:46 am Dabbu Post #1



Take the Reaper for example, aside from editing the unit texture and pausing the animation, is there an easy/efficient way to make the unit appear like it is a stone statue?
Ideally even pause it in a given pose/frame?

It's fine if I need to duplicate Actors for this, this will not be an effect applied through Abilities, I need it to be permanent.
Basically want to turn the unit into a doodad.



None.

Jan 24 2014, 7:07 am TF- Post #2

🤙🏾

There is definitely a way to make a unit skip to a certain part of an animation, I know this because some guys make animations play in reverse by skipping backwards through the animation, just take a careful look at all the Animation triggers available.



🤙🏾

Jan 24 2014, 9:01 pm Dabbu Post #3



I'll look into those triggers and check out the actor messages upon unit creation.

Most likely I'll end up making a custom stone like texture too.



None.

Jan 26 2014, 12:31 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Use "Texture Select By ID" for the texture change. Tutorial that I really should update




Jan 27 2014, 12:04 am Dabbu Post #5



I've read about three different SetTextureByID tutorials.
Was able to successfully change the textures of a reaper this way.
I am going to try to do the same with a portrait actor.


Also, I am confused by the "Slot" fields and how exactly they are handled by the engine.
I've seen this list for available slot values:
Decal
Main
Reflection
Video
Campaign
Terran
Zerg
Protoss
Merc
Body
Head
Hair
Generic 01
Generic 02
Generic 03
Generic 04
Generic 05


But when looking at a model's materials in the cutscene editor, there is usually never any reference to these labels.
It seems the texture swapping procedure is a bit inefficient since it's using String matching to find/replace the texture assignments for that model.
Things would have been a lot easier if you could select a material by its Index and then assign the diffuse/normal/specular/emissive textures via dedicated fields.
I donno... feels like the whole texture swapping implementation was quite ad-hoc on Blizzard's end. But I'm glad it works.



None.

Jan 27 2014, 2:04 am Pr0nogo Post #6



Blizzard tends to release community tools that aren't fully completed or lacking in features, e.g. the editor itself. That's part of the reason that SC2 mapping (there is no modding since you can get banned for doing such a thing, there is only Blizzard's loosey-goosey definition of a 'mod' that involves data stored in a map-like file) is so difficult to get into.

You should be able to access the strings manually if the automated procedure isn't working out for you. They do still have the string editor, right?




Jan 27 2014, 2:57 am Ahli Post #7

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from Pr0nogo
You should be able to access the strings manually if the automated procedure isn't working out for you. They do still have the string editor, right?
Text module can't edit these strings. The paths to the textures are defined by the model file itself.

Quote from Dabbu
But when looking at a model's materials in the cutscene editor, there is usually never any reference to these labels.
It seems the texture swapping procedure is a bit inefficient since it's using String matching to find/replace the texture assignments for that model.
Things would have been a lot easier if you could select a material by its Index and then assign the diffuse/normal/specular/emissive textures via dedicated fields.
I donno... feels like the whole texture swapping implementation was quite ad-hoc on Blizzard's end. But I'm glad it works.

These slot strings are only used for matching a texture declaration and a texture entry in the texture tab together.

I agree that the texture replacement stuff could have been designed better. The community found a way that works, but we don't actually understand what the implementation is actually capable of or if it is just a horrible implementation. The problem is as usual the documentation.

Usually I put the whole texture file name into the Trigger on Substring. Then I think I'm putting that into the prefix, too, in case an empty prefix isn't working. The slot just needs to have a valid slot name.

The texture entry requires the path to the texture and the slot name. If you only want to replace the diffuse texture, you need to write "slotname.diffuse" in the texture's slot field.

So, well, the good aspect of this is that we can change an actors texture per instance on the fly.

One known limitation is that one texture can only be used on one unit type at the same time, I believe. So, worst case scenario is that you import the same texture image file multiple times...




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2023-12-09. : 1:16 am]
NudeRaider -- Dem0n
Dem0n shouted: who said you were crossing a line
NT kinda did Ultraviolet
Ultraviolet shouted: I always thought it was kind of messed up to impersonate someone without their permission, but I guess that's artistic license for you. When you get into the realm of using AI to do it.. it seems even worse to me, but I'm not sure why
[2023-12-08. : 8:38 pm]
Zoan -- and tbh no, this is exactly the type of thing ai should be used for. Now if you were monetizing it, I would say you should emohasize you used ai for the voicelines
[2023-12-08. : 8:29 pm]
Zoan -- he asked if "am I now crossing a line"
[2023-12-08. : 7:43 pm]
Dem0n -- who said you were crossing a line
[2023-12-08. : 2:24 pm]
Oh_Man -- but if i want to make a LOTR map and use AI generation to give aragorn etc more voice lines am I now suddenly crossing a line? wen did we get so snowflakey
[2023-12-08. : 2:23 pm]
Oh_Man -- well we been doing dodgy stuff in SC for ages playing resident evil and helms deep maps - we dont own the rights to them
[2023-12-06. : 8:46 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet absolutely. You can count me among those folks. ;) But I understand it. It's a silly name only kids find funny. However to know that and still own it that would be the manliest move in my eyes.
Yeah, I can appreciate that perspective. I've used so many handles over the years, I think I had less attachment to NerdyTerdy than some of the folks here. Just never changed my name much here cause it was expensive :P I still kind of like the NT name, but definitely prefer Ultraviolet. I think UV has been my handle for around half my life at this point O.o
[2023-12-06. : 6:34 pm]
NudeRaider -- So the question is will we as a society become resilient against these forms of attacks? Either by detecting or accepting? Find new ways to deal with it? I guess we will have to wait and see.
[2023-12-06. : 6:32 pm]
NudeRaider -- da real donwano
da real donwano shouted: Society is not ready for the AI power we're being given. I'll die on that hill.
"social media" is imo a much better example for "society was not ready for it". We haven't seen yet where AI will lead us. It has a lot of potential for good, but then again, so had social media. For now the only potential for abuse in AI that I see is in forgery of various kinds.
[2023-12-06. : 6:26 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: guys what are your thoughts on AI voice cloning vs someone doing impressions. why is one moral and the other immoral? or do you think both are fair game
For me it's the intent that make the difference, not the method. If you copy someone for profit or harm, then that's immoral. If your goal is satire then all bets are off. I think people are just afraid to be deceived because AI removes skill from the equation and painting AI usage as immoral is their weak attempt to defend against it.
Please log in to shout.


Members Online: jjf28, da real donwano, Tableguy