I cannot seem to replace the marine's diffuse texture with "Texture Select By Id".
I keep getting an error in the message window saying " CActorUnit[PoliceOfficer] PoliceOfficer Assets\Units\Terran\Marine\Marine.m3; Could not find texture with id PoliceOfficer_Diffuse and expression <None>."
My texture is named "PoliceOfficer_Diffuse", the slot is main.diffuse, the texture declarations I've tried practically every iteration imaginable.
Can someone tell me how to properly do it? I think it's in the texture declarations. The name of the texture I'm replacing it with doesn't matter, does it? I don't know what I'm doing wrong and I've been experimenting for hours.
Check the Previewer, open marine model, look at materials. Write down the entire name of the texture you wanna swap into "Trigger on Substring" and leave prefix empty (I believe it should be Marine_Diffuse, you've managed to post this in the only 2 hours of the week I dont have my comp so I can't check, lol)
Go to your textures tab. Make sure no other texture object uses the same file as your PoliceOfficer_Diffuse - If two objects use the same file, errors occur and it won't work.
If that doesn't fix it, I'm out of ideas. You'll probably have to wait for Kueken or DrSuperEvil to find this thread (I'll msg kueken if I see him on skype)
Also, I think Kueken has a test map somewhere, probably in the Texture select thread, see if he set up a marine for texture select there, then compare (Or just copy the xml data from the xml view and paste it in your map)
I cannot seem to replace the marine's diffuse texture with "Texture Select By Id".
I keep getting an error in the message window saying " CActorUnit[PoliceOfficer] PoliceOfficer Assets\Units\Terran\Marine\Marine.m3; Could not find texture with id PoliceOfficer_Diffuse and expression <None>."
My texture is named "PoliceOfficer_Diffuse", the slot is main.diffuse, the texture declarations I've tried practically every iteration imaginable.
Slot is "main."
Trigger On Substring I've tried "Marine_Diffuse_Blood", "marine_diffuse_blood", "_diffuse_blood", "_blood", "_diffuse", "_Diffuse"
Prefix I've tried "(nothing)", "Marine_", "marine_", "marine_diffuse_", "Marine_Diffuse_", "marine_Diffuse_", practically everything.
Can someone tell me how to properly do it? I think it's in the texture declarations. The name of the texture I'm replacing it with doesn't matter, does it? I don't know what I'm doing wrong and I've been experimenting for hours.
hmmm...
If that doesn't fix it, I'm out of ideas. You'll probably have to wait for Kueken or DrSuperEvil to find this thread (I'll msg kueken if I see him on skype) Also, I think Kueken has a test map somewhere, probably in the Texture select thread, see if he set up a marine for texture select there, then compare (Or just copy the xml data from the xml view and paste it in your map)
The texture declaration in the model needs the texture file name within the model. You can get that thing from the previewer.
So you write inside the model declarations:
Slot: main
Trigger on Substring: marine_diffuse_blood
The texture needs the following information:
Slot: main.diffuse
Filepath: path to your new texture image file
I might be mistaken atm because I'm to lazy to look it up in my map.
That's what I have down right now, and it's still giving me an error.
Edit: Nevermind, it's working now. I guess it just errors for some reason but still works in game?