Setting up an oc Server

Server Help/Discussion.
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Setting up an oc Server

Post 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).
Last edited by Shana on Sun Jun 06, 2010 7:46 pm, edited 2 times in total.
Sonic
Former Developer
Former Developer
Posts: 533
Joined: Mon May 29, 2006 6:45 pm
Location: Mobius
Contact:

Post 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
Image>>>>>Image<<<<<
Image
User avatar
SkyNinja
Polygon
Polygon
Posts: 38
Joined: Mon Mar 09, 2009 4:44 am
Location: Texas
Contact:

Post 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.
D.D.D. Destroyer
Vertex
Vertex
Posts: 18
Joined: Sat Apr 18, 2009 1:38 pm

Post 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.
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post 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"
D.D.D. Destroyer
Vertex
Vertex
Posts: 18
Joined: Sat Apr 18, 2009 1:38 pm

Post 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?
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

I think you have to launch a dedicated server via a command prompt and not Valve's gui function.
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
D.D.D. Destroyer
Vertex
Vertex
Posts: 18
Joined: Sat Apr 18, 2009 1:38 pm

Post by D.D.D. Destroyer »

And the prompt and the place to write it in is....
User avatar
Vasili
npc_helicopter
npc_helicopter
Posts: 901
Joined: Wed Aug 02, 2006 8:22 pm
Location: England

Post by Vasili »

D.D.D. Destroyer wrote:And the prompt and the place to write it in is....
Start/Run/Type CMD, ok
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post 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.
D.D.D. Destroyer
Vertex
Vertex
Posts: 18
Joined: Sat Apr 18, 2009 1:38 pm

Post 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
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post 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).
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Post 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.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post 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?
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
Spoon God
Donator
Donator
Posts: 25
Joined: Sun Dec 21, 2008 8:11 am
Location: United Kingdom
Contact:

Post 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.
Image
Post Reply