Difference between revisions of "Dedicated Server Setup"

From Obsidian Conflict Wiki
Jump to: navigation, search
m (moved Setting up an Orangebox Server ( Windows ) to Dedicated Server Setup: who needs this ( Windows ) part there...)
(Rewrote almost everything in this article, but there are still many parts outdated...)
Line 1: Line 1:
 
__TOC__
 
__TOC__
This is an article on installing the Source dedicated server and extracting the required content to run Obsidian. By following this tutorial, you will be able to run a dedicated server and play Half-Life 2, Episode 1 and Episode 2 single player maps. If you don't wish to run a server with Episode 1 and 2 content, disregard the content mounting for that.
+
{{wip}}
 +
==Server Base==
 +
===Download HLDS Update Tool===
 +
{{Windows
 +
|'''http://www.steampowered.com/download/hldsupdatetool.exe'''
 +
}}
  
==Installing the Dedicated Server==
 
  
Install:
+
{{Linux
http://www.steampowered.com/download/hldsupdatetool.exe
+
|'''wget http://www.steampowered.com/download/hldsupdatetool.bin'''
 +
}}
  
Create a bat file and throw this inside:
 
hldsupdatetool -command update -game "orangebox" -dir C:\***srcds folder***
 
And run the bat, with the ***srcds folder*** changed to your srcds directory.
 
This will download Orangebox content so it sets up your directories.
 
  
While your at it, download "Counter-Strike Source" content as well. Just replace the "orangebox" with "Counter-Strike Source" and run the bat again.
+
{{Mac
 +
|''Not available yet''
 +
}}
  
You should now have an orangebox folder.
+
===Install HLDS Update Tool===
Before you enter this folder right click on the "hl2" and "cstrike" folder which was downloaded by the hldsupdatetool when you downloaded CS:S
+
{{Windows
and press copy.
+
|'''hldsupdatetool.exe''' (Don't run it in the destination folder)
 +
}}
  
Enter the orangebox folder and paste the hl2 folder you copied previously. You will need this for models and such.
+
{{Linux
 +
|'''chmod +x hldsupdatetool.bin'''
 +
|'''./hldsupdatetool.bin'''
 +
}}
  
 +
{{Mac
 +
|''Not available yet''
 +
}}
  
Inside the orangebox folder, create two new folders, "ep2" and "episodic"
+
===Download OB Mod Base===
 +
-dir . refers to the destination folder which it normally is installed into (meaning that if you run those commands outside of the destination folder then you need to specifiy it via -dir):
  
==Extracting Source Game Content==
+
{{Windows
 +
|C:\HLServer
 +
}}
  
Now we will start extracting content from your steam steamapps GCF files.
+
{{Linux
 +
|/home/steam
 +
}}
  
'''BASE HALF-LIFE 2:'''
+
{{Mac
 +
|''Not available yet''
 +
}}
  
-half-life 2 content.gcf-
 
  
Extract the "maps" folder from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder.
+
----
 +
 
 +
 
 +
{{Windows
 +
|'''hldsupdatetool.exe -command update -game "orangebox" -dir .'''
 +
}}
 +
 
 +
{{Linux
 +
|'''./steam -command update -game "orangebox" -dir .'''
 +
}}
 +
 
 +
{{Mac
 +
|''Not available yet''
 +
}}
 +
 
 +
===Setting up the folder structure===
 +
You should now have a folder structure that looks pretty much like this:
 +
 
 +
{{Windows
 +
|hl2\
 +
|orangebox\
 +
|orangebox\bin\
 +
|orangebox\hl2\
 +
|orangebox\platform\
 +
|orangebox\reslists\
 +
|orangebox\hlds_steamgames.vdf
 +
|orangebox\srcds.exe
 +
|orangebox\steam_appid.txt
 +
|clientregistry.blob
 +
|hldsupdatetool.exe
 +
|hldsupdatetool_<tool version>.mst
 +
|installrecord.blob
 +
}}
  
-source 2007 binaries.gcf-
+
{{Linux
 +
|.steam\
 +
|.steam\clientregistry.blob
 +
|hl2\
 +
|orangebox\
 +
|orangebox\bin\
 +
|orangebox\hl2\
 +
|orangebox\platform\
 +
|orangebox\reslists\
 +
|orangebox\hlds_steamgames.vdf
 +
|orangebox\srcds_<arch depending>
 +
|orangebox\srcds_run
 +
|orangebox\steam_appid.txt
 +
|hldsupdatetool.bin
 +
|installrecord.blob
 +
|steam
 +
|test1.so
 +
|test2.so
 +
|test3.so
 +
}}
  
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
 
  
-source 2007 shared materials.gcf-
+
{{Mac
 +
|''Not available yet''
 +
}}
  
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
 
  
-source 2007 shared models.gcf-
+
----
  
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
 
  
-source 2007 shared sounds.gcf-
+
Now you need to do the follwing step ( valve didn't make the orangebox\hl2 folder right ):
  
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
+
{{Windows
 +
|'''rmdir /s orangebox\hl2''' ( or just delete the hl2 folder in orangebox )
 +
|'''xcopy /s /e hl2 orangebox''' ( or just copy the hl2 folder to orangebox )
 +
}}
  
'''BASE EPISODE 1:'''
+
{{Linux
 +
|'''rm -R orangebox/hl2'''
 +
|'''cp -R hl2 orangebox'''
 +
}}
  
-episode 1 shared.gcf-
+
{{Mac
 +
|''Not available yet''
 +
}}
  
Extract everything from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder.
+
==Campaign Content==
 +
Campaign content is stored only in GCF's on the steam client, so prepare to upload the extracted files to your server ( Windows Server user have it a bit easier here as they can install steam and do it directly on the server ), in order to do that get this application: http://nemesis.thewavelength.net/index.php?p=25 {{Help}}
  
-half-life 2 episode one.gcf-
+
'''Note:''' The Obsidian Team might offer to copy the extracted gcf content onto servers via their Windows Server to save upload time in the future, in which case you can safly ignore this section
  
Extract the "maps" folder from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder.
+
===Half-Life: Source===
 +
====half-life source.gcf====
 +
Extract everything from the "hl1" folder to the hl1 folder in your dedicated servers orangebox folder.
  
'''BASE EPISODE 2:'''
+
===Half Life Deathmatch: Source===
 +
'''''Not useable yet'''''
  
-episodic 2007 shared.gcf-
+
=== Half-Life 2 ===
 +
====half-life 2 content.gcf====
 +
Extract the "maps" folder from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder.
  
Extract everything from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder. Overwriting.
+
====source 2007 binaries.gcf====
 +
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
  
-episode two content.gcf-
+
====source 2007 shared materials.gcf====
 +
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
  
Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.
+
====source 2007 shared models.gcf====
 +
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
  
-episode two maps.gcf-
+
====source 2007 shared sounds.gcf====
 +
Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.
  
Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.
+
===Half Life 2: LostCoast===
 +
{{ToDo}}
  
-episode two materials.gcf-
+
===Half-Life 2: Episode One===
 +
====episode 1 shared.gcf====
 +
Extract everything from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder.
  
Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.
+
====half-life 2 episode one.gcf====
 +
Extract the "maps" folder from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder.
  
 +
===Half-Life 2: Episode Two===
 +
====episodic 2007 shared.gcf====
 +
Extract everything from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder. Overwriting.
  
==Installing Obsidian Mod Content==
+
====episode two content.gcf====
Copy a fresh install of the "Obsidian" folder to your dedicated servers orangebox folder.
+
Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.
For mounting content, add blank files to the "Obsidian\mounts" folder. These files should have no extension.
 
  
Names:
+
====episode two maps.gcf====
css
+
Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.
dod
 
ep2
 
episodic
 
hls
 
lostcoast
 
  
 +
====episode two materials.gcf====
 +
Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.
  
Now you can start the srcds.exe and load the mod.
+
===Half Life 2: Episode Three===
 +
'''''Not useable yet''''' ( and in fact not released yet )
  
==Half-Life Source==
+
===Portal===
 +
'''''Not useable yet'''''
  
Create a hl1 folder in your dedicated servers orangebox folder.
+
==Additional Game Content==
 +
===Counter-Strike: Source===
 +
{{ToDo}}
  
-half-life source.gcf-
+
===Day of Defeat: Source===
 +
{{ToDo}}
  
Extract everything from the "hl1" folder to the hl1 folder in your dedicated servers orangebox folder.
+
===Team Fortress 2===
 +
'''''Not useable yet'''''
  
 +
==Download & Install Obsidian==
 +
{{ToDo}}
  
 +
{{stub}}
 +
If someone has a good idea on how the extraction progress on those sections can be visually displayed so that it's easy to understand, let me know --[[User:Neico|Neico]] 17:00, 3 October 2010 (UTC)
 
[[Category:ServerOP]]
 
[[Category:ServerOP]]

Revision as of 18:00, 3 October 2010

WIP.png This page is still a Work In Progress

Server Base

Download HLDS Update Tool

WindowsWindows


LinuxLinux


MacMac

Not available yet

Install HLDS Update Tool

WindowsWindows

hldsupdatetool.exe (Don't run it in the destination folder)

LinuxLinux

chmod +x hldsupdatetool.bin
./hldsupdatetool.bin

MacMac

Not available yet

Download OB Mod Base

-dir . refers to the destination folder which it normally is installed into (meaning that if you run those commands outside of the destination folder then you need to specifiy it via -dir):

WindowsWindows

C:\HLServer

LinuxLinux

/home/steam

MacMac

Not available yet




WindowsWindows

hldsupdatetool.exe -command update -game "orangebox" -dir .

LinuxLinux

./steam -command update -game "orangebox" -dir .

MacMac

Not available yet

Setting up the folder structure

You should now have a folder structure that looks pretty much like this:

WindowsWindows

hl2\
orangebox\
orangebox\bin\
orangebox\hl2\
orangebox\platform\
orangebox\reslists\
orangebox\hlds_steamgames.vdf
orangebox\srcds.exe
orangebox\steam_appid.txt
clientregistry.blob
hldsupdatetool.exe
hldsupdatetool_<tool version>.mst
installrecord.blob

LinuxLinux

.steam\
.steam\clientregistry.blob
hl2\
orangebox\
orangebox\bin\
orangebox\hl2\
orangebox\platform\
orangebox\reslists\
orangebox\hlds_steamgames.vdf
orangebox\srcds_<arch depending>
orangebox\srcds_run
orangebox\steam_appid.txt
hldsupdatetool.bin
installrecord.blob
steam
test1.so
test2.so
test3.so


MacMac

Not available yet




Now you need to do the follwing step ( valve didn't make the orangebox\hl2 folder right ):

WindowsWindows

rmdir /s orangebox\hl2 ( or just delete the hl2 folder in orangebox )
xcopy /s /e hl2 orangebox ( or just copy the hl2 folder to orangebox )

LinuxLinux

rm -R orangebox/hl2
cp -R hl2 orangebox

MacMac

Not available yet

Campaign Content

Campaign content is stored only in GCF's on the steam client, so prepare to upload the extracted files to your server ( Windows Server user have it a bit easier here as they can install steam and do it directly on the server ), in order to do that get this application: http://nemesis.thewavelength.net/index.php?p=25 Template:Help

Note: The Obsidian Team might offer to copy the extracted gcf content onto servers via their Windows Server to save upload time in the future, in which case you can safly ignore this section

Half-Life: Source

half-life source.gcf

Extract everything from the "hl1" folder to the hl1 folder in your dedicated servers orangebox folder.

Half Life Deathmatch: Source

Not useable yet

Half-Life 2

half-life 2 content.gcf

Extract the "maps" folder from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder.

source 2007 binaries.gcf

Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.

source 2007 shared materials.gcf

Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.

source 2007 shared models.gcf

Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.

source 2007 shared sounds.gcf

Extract everything from the "hl2" folder to the hl2 folder in your dedicated servers orangebox folder. Overwriting.

Half Life 2: LostCoast

Template:ToDo

Half-Life 2: Episode One

episode 1 shared.gcf

Extract everything from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder.

half-life 2 episode one.gcf

Extract the "maps" folder from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder.

Half-Life 2: Episode Two

episodic 2007 shared.gcf

Extract everything from the "episodic" folder to the episodic folder in your dedicated servers orangebox folder. Overwriting.

episode two content.gcf

Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.

episode two maps.gcf

Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.

episode two materials.gcf

Extract everything from the "ep2" folder to the ep2 folder in your dedicated servers orangebox folder.

Half Life 2: Episode Three

Not useable yet ( and in fact not released yet )

Portal

Not useable yet

Additional Game Content

Counter-Strike: Source

Template:ToDo

Day of Defeat: Source

Template:ToDo

Team Fortress 2

Not useable yet

Download & Install Obsidian

Template:ToDo

Stub.png This page is a stub. Please help us by expanding it.
Thank you!

If someone has a good idea on how the extraction progress on those sections can be visually displayed so that it's easy to understand, let me know --Neico 17:00, 3 October 2010 (UTC)