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.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Ultraviolet