Difference between revisions of "Compiling Leak maps with Retail Hammer"

From Valve Cut Content
Jump to: navigation, search
oldwiki>Livelong2
(yeah idk but this isn't workin)
m (Reverted edits by Tea.jai (talk) to last revision by Uncanny)
(Tag: Rollback)
 
(15 intermediate revisions by 7 users not shown)
Line 2: Line 2:
  
 
== Requirements ==
 
== Requirements ==
* You should have a Valve game that has the retail hammer installed beforehand. The Source SDK's tends to not work right, and I cannot advocate for it functioning at all.
+
* You should have Half-Life 2 installed.
 
 
 
* You should have the leak unpacked on your hard drive somewhere.
 
* You should have the leak unpacked on your hard drive somewhere.
* You should at least a basic understanding of hammer.
+
* You should have at least a basic understanding of hammer.
* You should have the latest revision (or the revision I used, present in the files' Misc folder) of LeakNet installed. (It technically isn't necessary, but I can't guarantee it will work correctly without it)
+
* You should have the latest revision (or the revision I used, present in the files' Misc folder) of LeakNet installed.
  
 
== Part 1 - File Moving ==
 
== Part 1 - File Moving ==
Line 13: Line 12:
 
* Move "gameinfo.txt" to anon-hl2/hl2/.
 
* Move "gameinfo.txt" to anon-hl2/hl2/.
  
== Part 2 - Gameinfo setup ==
+
== Part 2 - Gameconfig setup ==
Method 1 - Within Hammer
+
=== Method 1 - Within Hammer ===
  
 +
=== Step 1 - Creating the config ===
 
After opening Hammer, go to Tools > Options. A window named "Configure Hammer" should open.
 
After opening Hammer, go to Tools > Options. A window named "Configure Hammer" should open.
  
 
Go to the first "Edit" button on the side of the window.
 
Go to the first "Edit" button on the side of the window.
<gallery widths="310" position="center">
+
<gallery widths="310" position="center" hideaddbutton="true">
 
Leakhammertut s2 m1 1a.png
 
Leakhammertut s2 m1 1a.png
 
</gallery>
 
</gallery>
 
Then, press "Add" to add another Hammer configuration.
 
Then, press "Add" to add another Hammer configuration.
<gallery widths="310" position="center">
+
<gallery widths="310" position="center" hideaddbutton="true">
 
Leakhammertut s2 m1 2.png
 
Leakhammertut s2 m1 2.png
 
</gallery>
 
</gallery>
After that, select the "New" button.
+
After that, type in whatever you want your leak compilation config to be.
<gallery widths="310" position="center">
+
<gallery widths="310" position="center" hideaddbutton="true">
Leakhammertut s2 m1 2.png
+
Leakhammertut_s2_m1_4.png
 
</gallery>
 
</gallery>
 +
Finally, go to the dropdown menu to select the config you just made to begin setting it up.
 +
 +
=== Step 2 - Directories ===
 +
 +
 +
This is where having the hl2 leak available is required, as we will be pointing to various directories in it.<br />
 +
Tip - The directory selector can be annoying to work with, beforehand you may want to navigate to anon-hl2, to copy-paste the directories into the boxes.<br />
 +
 +
'''Important''': Make sure that the directories you put in do not have ending slashes. Otherwise, the game configuration window will not display.
 +
 +
{| border="0" cellpadding="1" cellspacing="1" class="article-table" style="margin: 0px auto; width: 800px;"
 +
|-
 +
! scope="col"|Layout reference
 +
! scope="col"|Setup instructions
 +
|-
 +
|[[File:Leakhammertut_s2_m1_5a.png|right]]
 +
|1. Go to anon-hl2/bin/ and add both of the .fgd files.
 +
2. Set it to what is most convenient for you. I put them as "info_player_start", and "func_detail", respectively.
 +
3. Set this to be your base anon-hl2 directory.<br />
 +
4. Set this as anon-hl2/hl2/.<br />
 +
5. Set this to what you wish. Be advised, however, that the "Open" dialog will usually go to this location.
 +
|}
 +
When you are done, it should look something like this: ''(click to expand)''
 +
[[File:Leakhammertut_s2_m1_5.png|thumb]]
 +
 +
----
 +
 +
=== Step 3 - Build Programs ===
 +
Now that we've gotten our game configuration setup, we need to setup the build programs we will be using later.
 +
 +
First, make sure to select your config from the dropdown menu. The last selected config doesn't carry over between the two windows.
 +
{| border="0" cellpadding="1" cellspacing="1" class="article-table" style="width: 800px;"
 +
|-
 +
! scope="col"|Layout reference
 +
! scope="col"|Setup instructions
 +
|-
 +
|[[File:Leakhammertut_s2_m1_6a.png|right]]
 +
|1. Go to your base anon-hl2 directory. Then, select "hl2.exe".
 +
2-4. Go to anon-hl2/bin/. Then, in respective order for each, select "vbsp.exe", "vvis.exe", and "vrad.exe".<br />
 +
5. Go to anon-hl2/hl2/maps, and then select the directory.
 +
|}
 +
Recheck that none of the selected directories in either window end with a slash. It will make your life easier.
  
Method 2 - Outside Hammer
+
===Method 2 - Outside Hammer===
 +
This method is faster, but can be more difficult to follow.
  
Within your hammer's folder (or the main bin folder of the game you are using hammer from), there is a text document named gameinfo.txt.
+
*Within your hammer's folder (or the main bin folder of the game you are using hammer from), there is a text document named gameconfig.txt. Open this.
 +
 
 +
*Scroll to the bottom of the config, and place your cursor here:
 +
<gallery widths="420" position="left" hideaddbutton="true">
 +
Leakhammertut_s2_m2_1.png
 +
</gallery>
 +
*Press enter.
 +
*Paste [https://hastebin.com/evevosalof.tex this] into the config, without changing your position in the text document:
 +
|}
  
Open this.
+
[[Category:To_do]]

Latest revision as of 01:04, 9 October 2021

Mapping for the leak is a very challenging task to setup, and the resources for making the leak hammer function are often hard to follow. What's an alternative to using the leak's hammer? Making the retail hammer run the leak's compilers.

Requirements

  • You should have Half-Life 2 installed.
  • You should have the leak unpacked on your hard drive somewhere.
  • You should have at least a basic understanding of hammer.
  • You should have the latest revision (or the revision I used, present in the files' Misc folder) of LeakNet installed.

Part 1 - File Moving

Before we do anything else, we should make sure that all of the files are in the right places. Go to here, and go to the "Part1" subfolder.

  • Move "lights.rad" to anon-hl2/bin/.
  • Move "gameinfo.txt" to anon-hl2/hl2/.

Part 2 - Gameconfig setup

Method 1 - Within Hammer

Step 1 - Creating the config

After opening Hammer, go to Tools > Options. A window named "Configure Hammer" should open.

Go to the first "Edit" button on the side of the window.

Then, press "Add" to add another Hammer configuration.

After that, type in whatever you want your leak compilation config to be.

Finally, go to the dropdown menu to select the config you just made to begin setting it up.

Step 2 - Directories

This is where having the hl2 leak available is required, as we will be pointing to various directories in it.
Tip - The directory selector can be annoying to work with, beforehand you may want to navigate to anon-hl2, to copy-paste the directories into the boxes.

Important: Make sure that the directories you put in do not have ending slashes. Otherwise, the game configuration window will not display.

Layout reference Setup instructions
Leakhammertut s2 m1 5a.png
1. Go to anon-hl2/bin/ and add both of the .fgd files.

2. Set it to what is most convenient for you. I put them as "info_player_start", and "func_detail", respectively. 3. Set this to be your base anon-hl2 directory.
4. Set this as anon-hl2/hl2/.
5. Set this to what you wish. Be advised, however, that the "Open" dialog will usually go to this location.

When you are done, it should look something like this: (click to expand)

Leakhammertut s2 m1 5.png

Step 3 - Build Programs

Now that we've gotten our game configuration setup, we need to setup the build programs we will be using later.

First, make sure to select your config from the dropdown menu. The last selected config doesn't carry over between the two windows.

Layout reference Setup instructions
Leakhammertut s2 m1 6a.png
1. Go to your base anon-hl2 directory. Then, select "hl2.exe".

2-4. Go to anon-hl2/bin/. Then, in respective order for each, select "vbsp.exe", "vvis.exe", and "vrad.exe".
5. Go to anon-hl2/hl2/maps, and then select the directory.

Recheck that none of the selected directories in either window end with a slash. It will make your life easier.

Method 2 - Outside Hammer

This method is faster, but can be more difficult to follow.

  • Within your hammer's folder (or the main bin folder of the game you are using hammer from), there is a text document named gameconfig.txt. Open this.
  • Scroll to the bottom of the config, and place your cursor here:
  • Press enter.
  • Paste this into the config, without changing your position in the text document:

|}