Model Recompile a model with a new name

tyler

aa
Sep 11, 2013
5,102
4,621
I was hoping someone could recompile the red dirty bomb cart with a new name -- just whatever it is with "_red" on the end or something so it doesn't replace the blue dirty bomb in my own files.

I've tried PMing snipergen but he's been quiet and hasn't been active in a week.

Thanks in advance!
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
I suspect if you went to a different name that was the same length or shorter, then it would be possible to just hex-edit it. (Any extra space could be padded with 0x00)
 

tyler

aa
Sep 11, 2013
5,102
4,621
I've never done anything with models at all. I'm not really comfortable with it. I know it's a relatively quick job, so I was hoping someone would just do it for me. I'd just like to make sure that of all the things I stick into my map, there are no problems with the bomb model.
 

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,773
I don't think you need to recompile it.

[Edit] Nope, I'm WRONG -- I didn't move the originals before I tried renaming, so any references in the renamed were still valid. Once I moved the originals out of the same folder, it caused the renamed one to fail.

Kep
 
Last edited:

tyler

aa
Sep 11, 2013
5,102
4,621
At this point, I've tried. I spent about four hours trying to figure it out. It always recompiles into a blue cart. I don't really know what to do to make it red. I'd appreciate someone doing it a lot.
 
Apr 13, 2009
728
309
Right, I think I see a possible problem : you need to rename the material (.vmt and .vtf) to something_red.vmt and .vtf, you also need to edit the vmt (with a text editor) so that it points to your renamed vtf, not the original.
Then you must edit the decompiled smd to reflect this change, open it with a text editor (even wordpad if you have to) and do a replace all for the texture's old name to the new (it will be filename.bmp in the .smd, leave it as .bmp even though the actual model will use a vmt file). Make sure you have changed the model's export dir/filename in the .qc file, and recompile with this and it should work.
 
Feb 18, 2009
640
629
You don't have to rename the vtf, just rename the vmt (a texture's name is defined by the vmt name, not the vtf name).

EDIT: Just thought, depending on how the compiler works, you may have to change the name of the vtf... If changing the vmt doesn't work, try as loc_n_lol said and change the vtf too.
 
Last edited:

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,773
The problem isn't that nobody knows how to decompile it for you, but that we can't redistribute modifications of someone else's stuff (Valve content is typically okay to mod and redistribute).

Have you tried contacting snipergen by email? It's available on his website from the readme.

Kep
 

tyler

aa
Sep 11, 2013
5,102
4,621
Aha! Thank you! It works!


The problem isn't that nobody knows how to decompile it for you, but that we can't redistribute modifications of someone else's stuff (Valve content is typically okay to mod and redistribute).

Have you tried contacting snipergen by email? It's available on his website from the readme.

Kep

It's not really a modification though, is it? Nothing about the model changed at all. Anyway, it's moot now.