Model Recompile a model with a new name

Discussion in 'Request Area' started by tyler, Jul 28, 2010.

  1. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
    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!
     
  2. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    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)
     
  3. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
    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.
     
  4. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
  5. EArkham

    aa EArkham Necromancer

    Messages:
    1,570
    Positive Ratings:
    2,193
    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: Jul 30, 2010
  6. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
  7. Loc_n_lol

    Loc_n_lol L10: Glamorous Member

    Messages:
    726
    Positive Ratings:
    273
  8. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
    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.
     
  9. Loc_n_lol

    Loc_n_lol L10: Glamorous Member

    Messages:
    726
    Positive Ratings:
    273
    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.
     
  10. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    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: Aug 2, 2010
  11. EArkham

    aa EArkham Necromancer

    Messages:
    1,570
    Positive Ratings:
    2,193
    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
     
  12. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
    Aha! Thank you! It works!


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