• Reskin the ERROR model?
    25 replies, posted
This is gonna sound weird, but I want to reskin the error model in Gmod, and I found out that it doesn't have any materials. How would I do this?
Oh here [url]http://www.garrysmod.org/downloads/?a=view&id=71938[/url] Temporary entertainment.
That's... not what he asked. AT ALL. @OP: I'm pretty sure it does use a material. Give me a minute to check.
[QUOTE=MBAfortytwo;24791949]Oh here [url]http://www.garrysmod.org/downloads/?a=view&id=71938[/url] Temporary entertainment.[/QUOTE] Not exactly what I'm after. XP @gman003-main: Thanks
OK, it's rather complicated, but it loads "materials/models/error/new light1.vmt", which uses a $basetexture of "materials/models/Weapons/V_slam/new light1.vtf". If you just want to change the texture, you can just overwrite that texture file. However, I think that's also used by the SLAM weapon v_model, so you may want to change the .vmt to point to a different spot, and then put your texture there.
Okay, but since these are in GCF's, where am I going to create the new file? My model files are in S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SWEP\models\error\ I tried putting my materials in S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SWEP\materials\models\error\ The base files are in S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SWEP\materials\models\error\reference
Wait, model files? You've set up a model replacement?
No, I used the MDL files from the GCF, I'm trying to reskin them to have a black and purple texture instead of the glowing red one for a Gmod model.
The model should be at: S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SW EP\models\error.mdl The .vmt should be at S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SW EP\materials\models\error\new light1.vmt The .vtf should be at S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SW EP\materials\models\weapons\v_slam\new light1.vtf
I forgot to mention that I changed new light1.vmt to this: "VertexLitGeneric" { // Original shader: VertexLitSelfIlluminatedTexture "$basetexture" "models/error/reference/new light1" "$selfillum" 1 "Proxies" { "Sine" { "resultVar" "$selfIllumTint" "sinemin" 0.10 "sinemax" 1.00 "sineperiod" 0.50 } } } (I only changed the $basetexture.)
Well, then the texture would be S:\Steam\steamapps\#\garrysmod\garrysmod\addons\SW EP\Materials\models\error\reference\new light1.vtf
That's where it is and it isn't working. There is a VMT in the same folder, just in case that affects it. The VMT's base texture points to the vtf. [editline]10:15PM[/editline] Are you sure that new light1 is the right texture?
I'm sure it is on mine. If you want to double-check that our models are both trying to load the same material, open it up in HLMV, and look under the Model tab, at the "VMTs Loaded". There's a small chance that we have slightly different versions of the model, that look in different places for the texture.
I checked, and I guess it is new light1. I don't know why it wouldn't be working.
[QUOTE=Hoffer;24792883]No, I used the MDL files from the GCF, I'm trying to reskin them to have a black and purple texture instead of the glowing red one for a Gmod model.[/QUOTE] Just hex it so its looking in a non-existant folder for the materials then it will be pink and black. [img]http://fdhepq.bay.livefilestore.com/y1pIf2VtoOuFax3WJoVU9wie6HuUL3RKJfO1Tei-DtlpWRfKg-C_bJqrFHRq7r0w1r2LIegLeKBOV-h0fIeMaqpnVhERPUeoTuU/Hexed%20Error.jpg?psid=1[/img]
Not very familiar with hexing, which part do I edit? (And I noticed that file's name is Arror.mdl
[QUOTE=Hoffer;24806096]Not very familiar with hexing, which part do I edit? (And I noticed that file's name is Arror.mdl[/QUOTE] You go to the bottom of the MDL file in the hex editor and change the folder name of error to arror, thats what I did. I hexed it to arror so it didn't replace the original error model. ^^
That's what i figured... and what I tried. I really don't know why, but nothing is working. O_O
You do realize that HLMV doesn't read from the addons folder, right?
Yeah of course. I'm viewing these from my model in Gmod.
Well, I'm stumped then. You're probably just doing something wrong, but I've checked nearly everything I can think of. Time to check the very basics. Did you remember to extract the whole model, not just the .mdl? Does your addon have an info.txt? Is there a file at "/materials/models/error/reference/new light1.vtf"? Are the extensions on everything correct? If you have Windows set to hide extensions, don't, because you'll end up with things like "texture.vmt.vmt", which won't work. Have you tried moving it from addons into the main folder? I usually keep a clean install of GMod around so I can test things in it quicker. Just rename your garrysmod folder to something like garrysmod_old, then launch GMod to have it make a clean install, then do your work in there.
Tried each of those, and everything was as it was supposed to be. Did the last one, too. Nothing fixed it.
What exactly is the problem? What part of it isn't working?
I can't get the new texture on the error model.
[QUOTE=Hoffer;24811413]I can't get the new texture on the error model.[/QUOTE] Want me to send you mine so you can see how to do it?
Sure... email? I'll PM you mine. [editline]08:06PM[/editline] The one you gave me seemed to work. When I tried it with the other .mdl files, it doesn't work. Thanks a whole lot. Your error model file had 3 extra blank spaces below the last text line in the hex editor, while mine didn't. I just noticed that, wondering if it could affect it. [editline]08:13PM[/editline] Screw all that, I found the problem. MY error models didn't say "arror" at the top in hex. And the materials didn't work because I didn't change the error folder to arror afterwards. I just knew from the beginning that some stupid and small mistake would mess everything up. Thanks for all of your help.
Sorry, you need to Log In to post a reply to this thread.