Page 1 of 5

Setting up an oc Server

Posted: Mon Apr 06, 2009 6:48 pm
by Shana
This is heavly outdated, see http://wiki.obsidianconflict.net/?title ... rver_Setup

Dedicated Server---

----DEDICATED SERVER INSTALL-----

Install:
http://www.steampowered.com/download/hldsupdatetool.exe

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.

You should now have an orangebox folder.
Before you enter this folder right click on the "hl2" and "cstrike" folder which was downloaded by the hldsupdatetool when you downloaded CS:S
and press copy.

Enter the orangebox folder and paste the hl2 folder you copied previously. You will need this for models and such.


Inside the orangebox folder, create two new folders, "ep2" and "episodic"

----OTHER GCF CONTENT-----

Now we will start extracting content from your steam steamapps GCF files.

BASE HALF-LIFE 2:

-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.

BASE EPISODE 1:

-episode 1 shared.gcf-

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

BASE EPISODE 2:

-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.


BASE HALF-LIFE 1:

-half-life source.gcf-

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

----=====OBSIDIAN CONTENT=====----
Copy a fresh install of the "obsidian" folder to your dedicated servers orangebox folder.
For mounting content, add blank files to the "obsidian\mounts" folder. These files should have no extension.

Names:
css
dod
ep2
episodic
hls
lostcoast


Now you can start your server, to do so, create a .bat file and throw this inside and run the bat:

Code: Select all

***srcds path***\orangebox\srcds.exe -console -game obsidian -port 27015 +map oc_lobby +maxplayers 8
Replace ***srcds path*** with your srcds path (e.g. C:/hlserver).

Posted: Sat Apr 11, 2009 7:48 am
by Sonic
To extract the content from the GCF files you will require GCFScape

Below is a link to download the GCFScape Tool:
http://www.moddb.com/engines/source/dow ... fscape-171

In addition, here is an overview of the tool from the Valve Developer Community, that will inform you on how to use GCFScape:
http://developer.valvesoftware.com/wiki/GCFScape

Posted: Mon Apr 13, 2009 3:57 am
by SkyNinja
If you use GFCScape's shell integration (drag and drop), the program may seem to crash. It's actually just extracting the files and preparing them.

Posted: Sat Apr 18, 2009 6:21 pm
by D.D.D. Destroyer
That doesnt' work for me. The updater says: "Warning: unrecognized parameter 2\SteamApps\{{{ACC NAME}}}\source
Warning: unrecognized parameter: dedicated
Warning: unrecognized parameter: server


The correct directory is D:\halflife 2\steamapps\{{{ACC NAME}}}\source dedicated server


I think i have messed something up, but according to your tutorial everything is OK, I think.

Posted: Sat Apr 18, 2009 7:50 pm
by Shana
D.D.D. Destroyer wrote:That doesnt' work for me. The updater says: "Warning: unrecognized parameter 2\SteamApps\{{{ACC NAME}}}\source
Warning: unrecognized parameter: dedicated
Warning: unrecognized parameter: server


The correct directory is D:\halflife 2\steamapps\{{{ACC NAME}}}\source dedicated server


I think i have messed something up, but according to your tutorial everything is OK, I think.
The freespace in "halflife 2" and "source dedicated server" is messing it up i think, its probably what you set after -dir in the update command line, right? try using quotation marks for the path, like
-dir "D:\halflife 2\steamapps\{{{ACC NAME}}}\source dedicated server"

Posted: Sun Apr 19, 2009 10:34 am
by D.D.D. Destroyer
And now it works, thanks for help. Although, as my friend said, it would be better if there was a single installer to make it work ^^


EDIT:
After extracting and downloading the source dedicated server thingy doesn't even launch. What the hell?

Posted: Mon Apr 20, 2009 2:56 am
by fug4life
I think you have to launch a dedicated server via a command prompt and not Valve's gui function.

Posted: Mon Apr 20, 2009 3:38 pm
by D.D.D. Destroyer
And the prompt and the place to write it in is....

Posted: Mon Apr 20, 2009 5:49 pm
by Vasili
D.D.D. Destroyer wrote:And the prompt and the place to write it in is....
Start/Run/Type CMD, ok

Posted: Tue Apr 21, 2009 6:51 am
by Shana
D.D.D. Destroyer wrote:And the prompt and the place to write it in is....
Guide updated, although thats basic srcds knowledge.

Posted: Fri Apr 24, 2009 10:25 am
by D.D.D. Destroyer
Where to put it? From what i understand, it should be in srcds (which stands as source dedicated server, right?) but it just doesn't work. And sorry, I know I'm a complete newbie :P

Posted: Fri Apr 24, 2009 10:46 am
by fug4life
In windows, click 'Start' and then select 'Run' from the bottom of the menu. And add this as W0rf0x said:

Code: Select all

***srcds path***\orangebox\srcds.exe -console -game obsidian -port 27015 +map oc_lobby +maxplayers 8
Replace ***hlserver path*** with your srcds path (e.g. C:/hlserver).

Posted: Fri Apr 24, 2009 11:27 am
by Shana
W0rf0x wrote:Now you can start your server, to do so, create a .bat file and throw this inside and run the bat:
Sigh.

Posted: Sat Apr 25, 2009 4:33 pm
by fug4life
W0rf0x wrote:
W0rf0x wrote:Now you can start your server, to do so, create a .bat file and throw this inside and run the bat:
Sigh.
Doh didn't read that, but its the same right?

Posted: Mon May 11, 2009 1:16 am
by Spoon God
I know this is an old thread, but this might be simpler for some people.
I find it much easier to use the syn dedicated serv tool from the tools tab in steam. It hosts for OC (change to it in the drop-down menu) and it works perfectly - i didn't even have to set anything up.