Installation for Other Games

From Valve Developer Community
< Uk‎ | Hammer++‎ | Docs
Revision as of 08:00, 23 June 2023 by VIctor Quasar (talk | contribs) (Added ukrainian(not final!))
Jump to navigation Jump to search
English (en)Українська (uk)Translate (Translate)

Hammer++ Hammer++ Це дуже потужний інструмент для мапотворців, який вирішує цілу дюжину проблем стандартного Valve Hammer Editor та додає ті фішки та інструменти, які важливі, але яка Valve до 2013ого року не додала в жодну з ванільних версій. Однак самі розробники Гамер ++ зробили офіційні випуски тільки для Counter-Strike: Source, Source 2013 Singleplayer, Source 2013 Multiplayer, Team Fortress 2 та Counter-Strike: Global Offensive. Слава богу, що ви можете своїми руцями налаштувати сам Гамер ++ під такі ігри, без жодних проблем(можливо) Portal 2, Left 4 Dead 2, Black Mesa, І не тільки! Майже все можна налаштувати під ігри, використовуючи різні випуски Гамер++ для різних гілок, а саме:

Icon-Important.pngTemplate:Dictionary/Important/uk:In order to use CS:GO Hammer++, you must have the csgo_legacy beta branch installed for Counter-Strike 2 Counter-Strike 2. The CS:GO Hammer++ no longer receives updates, so it's highly recommended that you use the Garry's Mod version alongside it instead, if you have GMod.
Гра Engine branch (game) Hammer++ Version Notes ViewDiscussEdit templatePurge
Alien Swarm Alien Swarm Alien Swarm engine branch Garry's Mod Errors about reading particles, use mount.cfg to mount Alien Swarm data.
Note.pngПримітка:Functions differently than Hammer, instead of using a func_brush with name structure_seal, use a normal brush to close your maps.
If compiled it forces the map to be fullbright even if there are lights.
Icon-Important.pngTemplate:Dictionary/Important/uk:Use func_details for your entire map as it will generate unwanted portals
Half-Life: Source Half-Life: Source Source 2013 Singleplayer Source 2013 Singleplayer Configure Hammer for Half-Life: Source, then install to game's 🖿bin folder normally.
Half-Life Deathmatch: Source Half-Life Deathmatch: Source Team Fortress 2 branch Team Fortress 2 Configure Hammer for Half-Life: Source, then install to game's 🖿bin/x64 folder normally.
Half-Life 2: Deathmatch Half-Life 2: Deathmatch Team Fortress 2 branch Team Fortress 2 Install to game's 🖿bin/x64 folder normally.
Left 4 Dead Left 4 Dead Left 4 Dead engine branch L4D2 L4D2 Hammer++ appears fine on Left 4 Dead, except when compiling the map. Once compiled and joining the map, an error will appear and display: STEAM validation rejected and unable to interact with the menu after pressing ok.
PlacementTip.pngОбхідний шлях:Before compiling the map, check the box Don't run the game after compiling and then compile the map, after it has been compiled, enter Left 4 Dead and via console, type: map <map name>.
Tip.pngПорада:You can enable dev by going to manage < properties and on Launch options, type: -dev 1.
Note.pngTemplate:Dictionary/Fix/uk:Remove the steam_appid.txt from the 🖿hammerplusplus folder.
Left 4 Dead 2 Left 4 Dead 2 L4D2 Identical to Left 4 Dead Left 4 Dead, without the Steam rejection, only displaying error on console and unable to interact with the menu when exiting the map.
Note.pngTemplate:Dictionary/Fix/uk:Remove the steam_appid.txt from the 🖿hammerplusplus folder.
Momentum Mod Momentum Mod Strata Source Garry's Mod Need retest using GMOD version.
[Template:Dictionary/Confirm/uk]
Source Filmmaker Source Filmmaker Alien Swarm engine branch Garry's Mod & Portal 2 Need retest using GMOD version. Portal 2's compile tools also work. Hammer++ shouldn't be installed in SFM's 🖿bin folder, but works when pointed to from another game.
Team Fortress 2 Classic Team Fortress 2 Classic Source 2013 Multiplayer Source 2013 Multiplayer Setting up Hammer
Black Mesa Black Mesa Xengine Garry's Mod Follow this guide to make it working. Check out issues in relevant subpage. A separate version for Black Mesa is not planned.
Black Mesa (mod) Black Mesa (mod) (2012 mod version) Source 2007 Source 2013 Singleplayer Install to Source 2013 Singleplayer Source SDK Base 2013 - Singleplayer's 🖿bin folder and add a game configuration pointing to the mod; the Source 2013 Singleplayer Source 2013 SP compilers generate BSPs that are compatible with Source 2007 Source 2007.
Mapbase Mapbase Source 2013 Singleplayer Source 2013 Singleplayer Install to game's 🖿bin folder normally.

Check out the issues below in the relevant subpage.

Pirates Vikings & Knights II Pirates Vikings & Knights II Source 2013 Multiplayer Source 2013 Multiplayer & Team Fortress 2 Hammer++ shouldn't be installed in PVKII's 🖿bin folder, but works when pointed to from another game.
Icon-Important.pngTemplate:Dictionary/Important/uk:Requires the Use special I/O delimiter (ESC) setting to be off.
Postal III Postal III Source 2009 Source 2013 Singleplayer Requires modification to Postal 3's FGD file(s); Recommended to use Postal 3's compilers instead; Some Hammer features from Postal 3's are missing like 'prefabs' (not to be confused with Prefab on Hammer);

Requires Source SDK Base 2013 MP/SP to be installed; Requires folder linking inside SDK Base's 🖿sourcetest folder to load assets; Hammer++ will crash if placed inside Postal 3's 🖿bin folder.

Portal Portal Source 2013 Singleplayer Source 2013 Singleplayer Install to game's 🖿bin folder normally.
Portal 2: Community Edition Portal 2: Community Edition Strata Source Garry's Mod? Check out the issues on the relevant subpage. Support by developers is not planned, and usage is strongly discouraged; some Hammer++ features will be added to Strata Hammer Strata Hammer.
Source SDK Base 2013 - Multiplayer SDK Base 2013 - MP (2025) Team Fortress 2 branch Team Fortress 2 Install to game's 🖿bin/x64 folder normally.
Source SDK Base 2006 Source SDK Base
Source 2006 Source 2006 games & mods
(including Counter-Strike: Source v34, Half-Life 2 Old Engine, etc...)
Source 2006 Source 2013 Singleplayer See Installation for Source 2006 games. Don't forget that Source 2006 games will have less textures (including tools textures such as 2D Skybox), differences in LDR + HDR lighting compared to Source 2007 and later (including Hammer++ lighting preview). So remember to run both Source 2006's Hammer and Hammer++ and check see if the same texture exists in Texture Browser on Source 2006's Hammer before adding it to the map.
Hunt Down the Freeman Hunt Down the Freeman (launch version) Source 2013 Singleplayer Source 2013 Singleplayer Install to game's 🖿bin folder normally.[Template:Dictionary/Confirm/uk]
Hunt Down the Freeman Hunt Down the Freeman (latest) Source 2013 Multiplayer Source 2013 Multiplayer Install to game's 🖿bin folder normally.[Template:Dictionary/Confirm/uk]

This build uses Source 2013 Multiplayer Source 2013 Multiplayer to reduce map size.

Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3 Counter-Strike: Global Offensive Counter-Strike: Global Offensive Install to game's 🖿bin/win32 folder normally.[Template:Dictionary/Confirm/uk]
FGD must be modified to replace soundscape and sky KVs with string.
As CSGO version of Hammer++ is frozen on an older version, it may be desirable to use Garry's Mod H++ alongside the native CSGO version, to take advantage of newer features like Propper++.

Ці вирішення задачі з встановлення, а також фотографії були взяти з Туть: this steam guide Зроблено цією людиною Erin-Rose-Webs.

Встановлення Гамеру ++

Вікно, яке ви побачите запустивши вперше гамер(не вдруге)

Template:ModernNote Template:ModernWarning

Список Завантажуємого

- https://ficool2.github.io/HammerPlusPlus-Website/download.html
- https://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html#download (This is not required, but will make the process much easier)
- Game with supported Hammer++ version (See Above, Portal 2 uses CS:GO)

Встановлення Hammer++ у підтримуваній грі

Наступним кроком є встановлення Hammer++ у файли. Розпакуйте папку <директорія>bin</директорія> з архіву в папку Counter Strike: Global Offensive у папці <директорія>steamapps/common</директорія>. Тепер перейдіть до папки <директорія>bin</директорія> і запустіть Hammer++. Тепер ми створимо нову конфігурацію, спрямовану на ресурси Portal 2. Ось тут все може ускладнитися. Тепер ви запустите виконуваний файл <директорія>hammerplusplus.exe</директорія>. Ви отримаєте спливаюче вікно з повідомленням про відсутність конфігурацій. Обов’язково натисніть «Ні», інакше ви будете перенаправлені до іншої статті на цій вікі. Після натискання «Ні» ви побачите екран, схожий на той, який показано нижче, але повністю blank:
P2hammerppSetup1.png

Then, copy the information that is seen above into the respective boxes. If your game is in a separate folder than your normal steam directory, you will have to replace $SteamUserDir with the full file directory. Now click "Ok" to close and save this information. You will get two popups that say how this information will not update until Hammer++ restarts, but they are not important so just click "Ok" on both. With this completed, you are halfway done with configuring Hammer++. Now, for compiling the map, we need to define the build programs. Go to Tools>Options>Build programs and copy the information below:
P2hammerppSetup2.png

After you do this, press "Apply" then press "Ok" to save your changes. Then, close Hammer++. Now, we will have to bring over Portal 2's lighting data into CS:GO. Because Portal 2 had different texlights compared to CS:GO, we need to define portal 2's lights in the CS:GO directory l. Open Portal 2's lights.rad located in Portal 2/portal2 with any text editor and copy all of its contents. Then, go to CS:GO's lights file and paste Portal 2's contents at the bottom of the file. It should look similar to this (comments not needed):
P2hammerppSetup5.png

You have now completed the setup of Hammer++! However if you load a new map you will find that many of your custom models and textures are missing. This is because the program is searching through the CS:GO directory for the necessary files and then it doesn't find them it presents you with a missing model/texture. To fix this, we will need to create symbolic links.

Adding custom content

This is where things can get complicating. You can copy-paste all your custom files, but that can bloat your hard drive more than it needs to. Instead, it can be more space effective to create symbolic links. This is where the Link Shell Extension can help, but it is possible to use command prompt. First, navigate to Portal 2\portal2\Gameinfo.txt and add all the Portal_dlcx folders as well as all your custom folders following the format seen below:
P2hammerppSetup3.png
We do this because CS:GO's engine, and in turn Hammer++'s engine, do not search automatically for the dlcs folders, so we have to manually list them.

Link Shell Extension

Go to your base Portal 2 directory and Ctrl+Left click all your custom folders and dlcs folders and right click. Select "Choose link source" to start creating links. Then, go to your CS:GO directory and right click an empty space. Hover over "Drop link as" and select "Symbolic Links".

Command Prompt Method

Press the Windows key on your keyboard and type "cmd". Right click "Command Prompt" and click "Run as Administrator." A User Account Control prompt should pop up, press "Ok".

Template:ModernNote Now, type something similar to this:

mklink /j "C:\Program Files (x86)\Steam\steamapps\common\Counter-Stike Global Offensive\portal2_dlc1" "C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2_dlc1"

Template:ModernTip The first directory is the name of the folder the link will be named. The second directory is the name of the folder you are linking to. To simplify, by running this command you are creating a folder in your CS:GO directory called portal2_dlc1 that, when you open it, will show all the contents of the same folder, but in your Portal 2 directory. By creating this link you are not actually copying the files in those folders, you are essentially tricking Hammer++ into thinking that it is accessing a folder in CS:GO's directory when it is actually seeing files located in Portal 2's directory. This also works across drives, so you can have symbolic links on your D: drive that point to folders in your C: drive. You will now repeat this process for every custom folder you use, including the dlc folders.

Final Result

After you make links to all the folders, your CS:GO folder should look similar to this, just with all your custom folders instead:
P2hammerppSetup4.png
Now to fix the Hammer models, open the Counter-Stike Global Offensive\platform folder and delete the materials and Models folder and replace them with Symbolic Links to their respective folders in the Portal 2\platform folder. It should look similar to this:
P2hammerppSetup6.png
Template:ModernNote After you do this, open Hammer++ again. Now, you should be set! To get a list of all new features, try checking out the Hammer++ website and its page on this wiki. For general Hammer assistance, check out this article.

Template:ModernNote

External Links

Installing Hammer++ For Portal 2 (original guide)
Hammer++ Website
Link Shell Extension Website