WiseHammer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Corrections + added "-" and ":")
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:WiseHammer: Hammer without the SDK Launcher}}
{{DISPLAYTITLE:WiseHammer: Hammer without the SDK Launcher}}
{{note|This tutorial is old, and doesn't really apply anymore after a number of major changes to how Steam and the Source SDK operate. It is here solely for archival purposes.}}
{{SDKNuts Tutorials}}
{{warning|This tutorial is old, and doesn't really apply anymore after a number of major changes to how Steam and the Source SDK operate. It is here solely for archival purposes.}}
{{wisemxport|[[User:Pinsplash|Pinsplash]] ([[User talk:Pinsplash|talk]]) 22:14, 16 June 2018 (UTC)}}
{{wisemxport|[[User:Pinsplash|Pinsplash]] ([[User talk:Pinsplash|talk]]) 22:14, 16 June 2018 (UTC)}}


==Introduction==
The purpose of this document is to save you some time by eliminating the need to run the SDK Launcher to load Hammer 4 with the proper game parameters.
The purpose of this document is to save you some time by eliminating the need to run the SDK Launcher to load Hammer 4 with the proper game parameters.


Note: I don't have anything againt the SDK Launcher, Valve does a great job on it. Smile
{{note|I don't have anything against the SDK Launcher, Valve did a great job on it. Smile}}


When you load the SDK Launcher you have the option, in the bottom section of the SDK Launcher illustrated below, of setting the game parameter before launching Hammer.
When you load the SDK Launcher you have the option, in the bottom section of the SDK Launcher illustrated below, of setting the game parameter before launching Hammer.


This will make environmental settings for you and make sure that things like the map source folder, material folders, and prop folders are correct along with the compile line options you will need.


You can however create Desktop Shortcuts and Taskbar Quick Launch shortcuts.


This will make environmental settings for you and make sure that things like the map source folder, material folders and prop folders are correct along with the compile line options you will need.
Let's get started...
 
You can however create Desktop Shortcuts.
 
 
 
. . .and Taskbar Quick Launch shortcuts.
 
 
 
Let's get started. . .


==Creation==
Right-click on your Desktop and create a new Shortcut.
Right-click on your Desktop and create a new Shortcut.


Line 34: Line 30:
Click Next, Give your Shortcut a name and click Finish.
Click Next, Give your Shortcut a name and click Finish.


Now Right-click on the newly created Shortcut and then select Properties.
Now Right-click on the newly created Shortcut and then select '''Properties'''.


The Start In area should already have the correct path, i.e.
The Start In area should already have the correct path, i.e.
"C:\program files\steam\steamapps\AKG\sourcesdk\bin"
{{path|C:\program files\steam\steamapps\AKG\sourcesdk\bin}}


Note: In all of the paths I’ll display here AKG is where your Steam account name should be.
{{note|In all of the paths I’ll display here AKG is where your Steam account name should be.}}


The Target area will need to be changed.
The Target area will need to be changed.
First find the complete path to the Source game you want to create this Shortcut for.
First find the complete path to the Source game you want to create this Shortcut for.
I’ll use HL2 for this example, the others are done the same way.
I’ll use HL2 for this example, the others are done the same way.
On my system the full path to the HL2 folder we’ll need is:
On my system, the full path to the HL2 folder we’ll need is:
C:\Program Files\Steam\SteamApps\AKG\half-life 2\hl2
{{path|C:\Program Files\Steam\SteamApps\AKG\half-life 2\hl2}}


We’re going to alter the current information listed in the Target area like this:
We’re going to alter the current information listed in the Target area like this:
Line 58: Line 54:


Shown below are the paths for each of the Source mods.
Shown below are the paths for each of the Source mods.
By the way, this will also work for your custom mods.
Half-Life 2:
%sourcesdk%\bin\hammer.exe -game "c:\program files\steam\steamapps\AKG\half-life 2\hl2"
Counter-Strike: Source:
%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\counter-strike source\cstrike"
Day of Defeat Source:
%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\day of defeat source\dod"
Half-Life 2: Deathmatch:
%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\half-life 2 deathmatch\hl2mp"


Note: Steam will need to be running for these Shortcuts to work.
{{note|This will also work for a custom mod}}
These should also work in Steam off-line mode.
==={{hl2|4}}:===
'''%sourcesdk%\bin\hammer.exe -game "c:\program files\steam\steamapps\AKG\half-life 2\hl2"
'''
==={{css|4}}:===
'''%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\counter-strike source\cstrike"
'''
==={{dods|4}}:===
'''%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\day of defeat source\dod"
'''
==={{hl2dm|4}}:===
'''%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\half-life 2 deathmatch\hl2mp"
'''
{{note|Steam will need to be running for these Shortcuts to work, even if running in offline mode}}

Latest revision as of 09:03, 16 April 2024


Warning.pngWarning:This tutorial is old, and doesn't really apply anymore after a number of major changes to how Steam and the Source SDK operate. It is here solely for archival purposes.

This tutorial was originally created by wisemx. It was originally posted on SDKnuts.net.


Introduction

The purpose of this document is to save you some time by eliminating the need to run the SDK Launcher to load Hammer 4 with the proper game parameters.

Note.pngNote:I don't have anything against the SDK Launcher, Valve did a great job on it. Smile

When you load the SDK Launcher you have the option, in the bottom section of the SDK Launcher illustrated below, of setting the game parameter before launching Hammer.

This will make environmental settings for you and make sure that things like the map source folder, material folders, and prop folders are correct along with the compile line options you will need.

You can however create Desktop Shortcuts and Taskbar Quick Launch shortcuts.

Let's get started...

Creation

Right-click on your Desktop and create a new Shortcut.


Enter the following line in the Location input area: (Shown below) %sourcesdk%\bin\hammer.exe


Click Next, Give your Shortcut a name and click Finish.

Now Right-click on the newly created Shortcut and then select Properties.

The Start In area should already have the correct path, i.e. 🖿C:\program files\steam\steamapps\AKG\sourcesdk\bin

Note.pngNote:In all of the paths I’ll display here AKG is where your Steam account name should be.

The Target area will need to be changed. First find the complete path to the Source game you want to create this Shortcut for. I’ll use HL2 for this example, the others are done the same way. On my system, the full path to the HL2 folder we’ll need is: 🖿C:\Program Files\Steam\SteamApps\AKG\half-life 2\hl2

We’re going to alter the current information listed in the Target area like this: %sourcesdk%\bin\hammer.exe -game "c:\program files\steam\steamapps\AKG\half-life 2\hl2"

Once you’ve done this, with the quotation marks as illustrated, click OK.

Try your new Shortcut now. Test to see if the information you set is correct by using File Open once Hammer loads. You’re good to go if you see the map source files for the game parameter you set. If not close Hammer and re-check your path then edit the information in the Shortcut.

Shown below are the paths for each of the Source mods.

Note.pngNote:This will also work for a custom mod

Half-Life 2 Half-Life 2:

%sourcesdk%\bin\hammer.exe -game "c:\program files\steam\steamapps\AKG\half-life 2\hl2"

Counter-Strike: Source Counter-Strike: Source:

%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\counter-strike source\cstrike"

Day of Defeat: Source Day of Defeat: Source:

%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\day of defeat source\dod"

Half-Life 2: Deathmatch Half-Life 2: Deathmatch:

%sourcesdk%\bin\hammer.exe -game "C:\Program Files\Steam\SteamApps\AKG\half-life 2 deathmatch\hl2mp"

Note.pngNote:Steam will need to be running for these Shortcuts to work, even if running in offline mode