Multiple Hammer Installs

MantridMantrid Lockpick Join Date: 2003-12-07 Member: 24109Members
Is it possible to have two seperate installs of Hammer working independantly of each other?

I'd like to have one install dedicated to NS, and another for messing around with Half Life and Opposing Force.

I need to do them seperatly, because otherwise I'd have to swap .wad files in and out every time.

I tried doing this by just installing Hammer in two different places, but the .wad file selection is shared.

What can I do?

Comments

  • ReebdoogReebdoog Join Date: 2003-09-20 Member: 21035Members
    edited May 2004
    I use a batch file and a .reg file.
    Basically (Please, be very very careful, messing with your registry can cause serious damage) go to run-> type regedit. Find where the valva hammer editor keys are stored (on my comp it is HKEY_CURRENT_USER\Software\Valve\Valve Hammer Editor\General) and export the general folder.
    You will end up with a reg file.
    This is what mine looks like :
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><span style='font-size:8pt;line-height:100%'>[HKEY_CURRENT_USER\Software\Valve\Valve Hammer Editor\General]
    "TextureFileCount"=dword:00000008
    "TextureFile0"="j:\\nsmapping\\zhlt.wad"
    "Brightness"=dword:0000000a
    "Undo Levels"=dword:00000032
    "Locking Textures"=dword:00000001
    "Texture Alignment"=dword:00000001
    "Independent Windows"=dword:00000000
    "Load Default Positions"=dword:00000001
    "GroupWhileIgnore"=dword:00000000
    "StretchArches"=dword:00000001
    "NewBars"=dword:00000001
    "Undo Memory Warning"=dword:00000000
    "TextureFile1"="j:\\nsmapping\\liquids.wad"
    "TextureFile2"="j:\\nsmapping\\ns2.wad"
    "TextureFile3"="j:\\nsmapping\\ns.wad"
    "TextureFile4"="j:\\nsmapping\\decals.wad"
    "TextureFile5"="j:\\nsmapping\\ns_converge.wad"
    "TextureFile6"="j:\\nsmapping\\textures01.wad"
    "TextureFile7"="j:\\nsmapping\\ns_remix.wad"</span><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    Obviously yours will be different.

    Now, copy/paste that file so you have 2 of the same. Edit one so it uses the textures that you want for whatever mod. (i.e: "TextureFile1"="c:\\mapping\\wads\\tfc.wad or whatever)

    Once they are different (only change the texturefile entries.) Put them in your VHE folder.

    Next make your batch file (A text doc with the extension .bat). Inside this type: <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><span style='font-size:8pt;line-height:100%'>NSMapping.reg
    hammer.exe</span><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    Where NSmapping is the name of your ns reg file.
    Then make another batch file, with your other mapping reg file listed instead.

    Then run the batch file for whichever version you need.

    Sorry its not too clear, i'll clarify later if needed.

    edit: Make sure that : "TextureFileCount"=dword:00000008 equals the amount of textures you have listed. So 00000008 = 8, 00000002 = 2, etc. Remember this goes from TextureFile0 - TextureFileX. AND Please if you don't know what your doing, be carefull!!!!!
  • MantridMantrid Lockpick Join Date: 2003-12-07 Member: 24109Members
    edited May 2004
    Edit: Nevermind.

    Thank you so much! I think I love you. Will you have my children?
Sign In or Register to comment.