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

From Valve Cut Content
Jump to: navigation, search
(Undo revision 9402 by Uncanny (talk))
(Tag: Undo)
m (Reverted edits by John Lennon (talk) to last revision by Uncanny)
(Tag: Rollback)
Line 1: Line 1:
澳大利亞前總理保羅·基廷週三在《悉尼先驅晨報》發表的一篇評論文章中寫道,四邊安全對話或“四邊”只有一個目標,那就是遏制中國。
+
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.
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
 
他在文章中寫道:“不知何故,20% 的人類從赤貧狀態上升到接近現代國家的狀態,這是不合法的——但更重要的是,僅僅因為它的存在,是對美國的侮辱。”
+
== Requirements ==
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
* You should have Half-Life 2 installed.
基廷說:“這並不是說中國對美國構成威脅——這是中國從未表達過或交付過的——相反,它的存在僅僅代表了對美國優勢地位的挑戰。”
+
* You should have the leak unpacked on your hard drive somewhere.
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
* You should have at least a basic understanding of hammer.
“一個國家,像美國一樣大,怎麼敢代表自己。但不僅僅是代表自己,擁有可能擴大兩倍的資金。在美國的劇本中找不到這樣的可能性。但這就是Quad 就是一切。而且,天真地,我們就在其中。”
+
* You should have the latest revision (or the revision I used, present in the files' Misc folder) of LeakNet installed.
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
 
在文章中,基廷還提到澳大利亞外交部長瑪麗斯佩恩上週一沖上國家舞台攻擊他,因為他冒昧地說澳大利亞政府的 AUKUS 協議將這些國家重新釘在了英語圈上,同時又強硬地背棄了他們的地理環境。亞洲地區。
+
== Part 1 - File Moving ==
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
Before we do anything else, we should make sure that all of the files are in the right places. Go to [https://drive.google.com/drive/u/2/folders/0B7JIKUn-ZBIvenlqU3g5SEtwUUU here], and go to the "Part1" subfolder.
“佩恩和總理對他們在華盛頓受到的盛大招待感到眼花繚亂——如果美國的任何戰略客戶將武裝部隊的控制權移交給美國,他們都會受到這種招待,”他說,並補充說“但是在我們的案例中,將對我們外交政策的有效控制變成交易”。
+
* Move "lights.rad" to anon-hl2/bin/.
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
* Move "gameinfo.txt" to anon-hl2/hl2/.
根據基廷的說法,美國潛艇的決定不僅僅是關於海底戰,而是將澳大利亞支付的八艘潛艇捐贈給美國指揮部,作為其太平洋艦隊的一個組成部分。
+
 
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
== Part 2 - Gameconfig setup ==
“試著想想另一個國家會做任何如此順從的事情,”他寫道。
+
=== Method 1 - Within Hammer ===
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
 
此外,通過這樣做,該國粗暴地冒犯了歐洲唯一的國際大國法國——一個擁有先進軍事、核潛艇和核武器的歐洲國家,他說。
+
=== Step 1 - Creating the config ===
<pre style="color: red">WARNING INFLUENCE DETECTED, TYPE 2</pre>
+
After opening Hammer, go to Tools > Options. A window named "Configure Hammer" should open.
基廷在文章的結尾寫道:“根據佩恩的說法,我沒有跟上時代,我太久不合時宜了,是過去時代的遺物。好吧,我可能是,但有一件事我不是——澳大利亞的失敗主義者誰一出現緊張跡象,就會把國家賣給另一個大國。”
+
 
<pre style="color: yellow">ATTENTION ALL, YOUR MULTINATIONAL FORUM MUST BE DESTROYED, THE RED FLAG WILL CONTINUE. WE WILL BOMB YOU, THE WINDS BLOW TO THE EAST LANDS.</pre>
+
Go to the first "Edit" button on the side of the window.
 +
<gallery widths="310" position="center" hideaddbutton="true">
 +
Leakhammertut s2 m1 1a.png
 +
</gallery>
 +
Then, press "Add" to add another Hammer configuration.
 +
<gallery widths="310" position="center" hideaddbutton="true">
 +
Leakhammertut s2 m1 2.png
 +
</gallery>
 +
After that, type in whatever you want your leak compilation config to be.
 +
<gallery widths="310" position="center" hideaddbutton="true">
 +
Leakhammertut_s2_m1_4.png
 +
</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===
 +
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:
 +
<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:
 +
|}
 +
 
 +
[[Category:To_do]]

Revision as of 08:56, 8 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:

|}