Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Other Apogee/3D Realms Games > Prey
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 07-20-2006, 11:31 PM   #1
addict
Post Setting up a Windows Server
So you want to set up a dedicated Windows server. I hope this little tutorial will help
_________

First off, you are going to need to upload/transfer your entire Prey directory to your server (I just transferred them to my "C:\" directory so that leaves me with "C:\Prey" but you can put it wherever you want). This may take quite a while, you're best bet would be to use an FTP client like Filezilla to upload them to your server overnight.
_________

Ok now that you have all of the required files on your server what you'll want to do is download/upload the Windows Binaries to your server. You can find them here with an included Readme.txt file on how to get your server running. This is a compressed file you'll just need to extract it into your Prey directory.

Now open your "\Prey\Base" folder and find "preykey". Right click, then Properties, and check the box to make it a "Read Only" file. Sometimes the server likes to alter that file and you won't be able to reboot your server unless you replace it with your original.
______

(Firedaemon users skip this step, just browse for the .exe and add command parameters)
Now there should be a file called "Preyded.exe" in your default Prey folder. Find that file, right click on it, send to, desktop(create shortcut). After you do that you will then go to your desktop and right click the shortcut you just created and click "Properties". When you do this you should see the Target line looking something like "C:\Prey\Preyded.exe". This is where you add your command line parameters. You'll want to insert a space after Preyded.exe and enter the following:

+set net_serverDedicated 1 +net_serverAllowServerMod 1 +set si_map game/dmescher +spawnServer

Should look like this:


If you have multiple IP addresses and want to bind a specific address use:
+set net_ip xxx.xxx.xxx.xxx

If you have a specific config to run use:
+exec yourconfig.cfg

Just remember to keep +spawnServer at the end.
_________

Before you attempt to start the server create a new .txt document in your \prey\base folder and rename it "autoexec.cfg"
now open the .cfg file with notepad and add the following on seperate lines.

r_ignoreGLErrors 1
seta net_master0 preymaster.humanhead.com:27655

now save and close autoexec.cfg
_________

Finally, open preyconfig.cfg and scroll all the way to the bottom of the document. You will see a few "seta si_" commands.



Change these accordingly to suit whatever kind of server or servername you want. You can also create additional .cfg files and place an "+exec yourconfig.cfg" in the command line to process that config file instead. But by default it will just load the preyconfig.cfg file.
_________

Now you should be all set to fire up the server. Double click the shortcut icon on your desktop to launch the server. A little blue window of goodness shall open up and fill your life with happiness.

If the server doesn't work...well just try your best to troubleshoot the error by checking your spelling and such. I can't be too much help to you unless I have remote access to your machine.

Any questions or concerns please feel free to drop me a line:
[email protected]
xfire: zomgpie
addict is offline  
Old 07-21-2006, 10:28 AM   #2
Robertje
Re: Setting up a Windows Server
Good post. Maybe it's a good idea to make it a sticky?
__________________
[SIZE="1"]
Dedicated server config generator for Prey
Robertje is offline  
Old 07-22-2006, 09:56 PM   #3
gamerguys
Re: Setting up a Windows Server
Anyone have a mapcycle cfg?

-Gamerguys
gamerguys is offline  
Old 07-23-2006, 05:23 AM   #4
DI-MeisterM

DI-MeisterM's Avatar
Re: Setting up a Windows Server
Quote:
Originally Posted by gamerguys
Anyone have a mapcycle cfg?

-Gamerguys
Not needed, just use this one and modify/edit it:
Code:
si_mapCycle "game/dmescher;game/dmescher2;game/dmroadhouse"
All Prey Retail maps:
game/dmescher
game/dmescher2
game/dmroadhouse
game/dmsalvagewalk
game/dmshuttle1
game/dmshuttle2
game/dmsphere
game/dmwallwalk2
DI-MeisterM is offline  
Old 07-23-2006, 01:24 PM   #5
bummerman

bummerman's Avatar
Re: Setting up a Windows Server
mapcycle scriptcfg here cycles all maps but the shuttle maps which can be voted in if ppl want

/*
"map cycling script sample - select with g_mapCycle

the script is purged and reloaded at each map restart
which happens on map change, but also when hitting GAMEON
for persistance, you need to use the {get,set}Persistant functions

files with .scriptcfg extension can be loaded outside of pure paks
*/

namespace mapcycle {

void cycle() {
// config
float cycle_maps = 1;
float cycle_gametypes = 0;
// cycle maps and game types
float replay_count = sys.getPersistantFloat( "replay_count" );
string si_gameType = sys.getcvar( "si_gameType" );
string si_map = sys.getcvar( "si_map" );
if ( replay_count <= 0 ) {
// restart n times before next map
replay_count = 1;
}
replay_count--;
sys.setPersistantArg( "replay_count", replay_count );
if ( replay_count <= 0 ) {
// restart n times before next map
sys.setPersistantArg( "replay_count", 1 );

if ( cycle_maps > 0 ) {
if ( si_map == "game/dmroadhouse" ) {
sys.setcvar( "si_map", "game/dmescher" );
} else if ( si_map == "game/dmescher" ) {
sys.setcvar( "si_map", "game/dmescher2" );
} else if ( si_map == "game/dmescher2" ) {
sys.setcvar( "si_map", "game/dmsalvagewalk" );
} else if ( si_map == "game/dmsalvagewalk" ) {


sys.setcvar( "si_map", "game/dmsphere" );
} else if ( si_map == "game/dmsphere" ) {
sys.setcvar( "si_map", "game/dmwallwalk2" );
} else {
sys.setcvar( "si_map", "game/dmroadhouse" );
}
}
if ( cycle_gametypes > 0 ) {
if ( si_gameType == "deathmatch" ) {
sys.setcvar( "si_gameType", "Team DM" );
} else {
sys.setcvar( "si_gameType", "deathmatch" );
}
}
} else {
sys.say( "map cycle: restarting current map " + replay_count + " more time(s)" );
}
}
}
paste into notepad and save to the prey base folder as "6map.scriptcfg", then edit out the default mapcycle scriptcfg thatis in your Prey cfg with this name in its place
__________________
I'mTheMotorcycleBoy FromHell
bummerman is offline  
Old 07-23-2006, 09:02 PM   #6
IceColdDuke
Re: Setting up a Windows Server
Also if you do run a dedicated server on Windows make sure its the server version of the OS, the client version only supports 10 concurrent connections(I'm pretty sure thats for all connections despite what they are and not just the XP IIS plugin).
IceColdDuke is offline  
Old 07-23-2006, 09:47 PM   #7
CorteztheKiller
Re: Setting up a Windows Server
Isn't the master server on 27650, not 27655?
CorteztheKiller is offline  
Old 07-23-2006, 10:10 PM   #8
addict
Re: Setting up a Windows Server
port 27650 wouldnt work for me, when I set it to 27655 the server showed up just fine.

Who knows
addict is offline  
Old 07-24-2006, 08:07 AM   #9
CorteztheKiller
Re: Setting up a Windows Server
Quote:
Originally Posted by addict
port 27650 wouldnt work for me, when I set it to 27655 the server showed up just fine.

Who knows
I was the reverse of that. not showing with 27655 and is now on the list with 27650. I also recall seeing a post by one of the HH guys saying the master ran on 27650... *shrugs
CorteztheKiller is offline  
Old 07-24-2006, 06:46 PM   #10
Rizno
Re: Setting up a Windows Server
First post and its a question Im having trouble getting my server to show on the master list but I can connect by IP.. ive tried using no config, my own config, also ive autoexecd both master ip's listed here niether made a difference.. anyone have any ideas?
Rizno is offline  
Old 07-25-2006, 04:11 AM   #11
Bobby Shaftoe

Bobby Shaftoe's Avatar
Re: Setting up a Windows Server
Code:
si_mapCycle
Unknown command 'si_mapCycle'
si_mapCycle may work in D3 and Q4, but it seems that this isn't recognized in Prey. Isn't there any other solution besides using the much more complex mapcycle scriptcfg?
Bobby Shaftoe is offline  
Old 07-25-2006, 05:02 AM   #12
DI-MeisterM

DI-MeisterM's Avatar
Re: Setting up a Windows Server
Quote:
Originally Posted by Bobby Shaftoe
Code:
si_mapCycle
Unknown command 'si_mapCycle'
si_mapCycle may work in D3 and Q4, but it seems that this isn't recognized in Prey. Isn't there any other solution besides using the much more complex mapcycle scriptcfg?
Omg you're right!
Why did HH remove this CVAR? Can't believe it
DI-MeisterM is offline  
Old 07-25-2006, 07:17 AM   #13
CorteztheKiller
Re: Setting up a Windows Server
If your server isn't showing up, check your master server port. It should be 27650. Also make sure the heartbeats are being sent.
CorteztheKiller is offline  
Old 07-25-2006, 03:13 PM   #14
Rizno
Re: Setting up a Windows Server
its working now ...? dont know how but it is lol
Rizno is offline  
Old 07-26-2006, 11:42 AM   #15
bummerman

bummerman's Avatar
Re: Setting up a Windows Server
Quote:
Originally Posted by DI-MeisterM
Omg you're right!
Why did HH remove this CVAR? Can't believe it
it doesn't work in Doom 3 either and and Prey resembles Doom 3 more than Q4...just open the 000.pk4 file with Rar and open the mapcycle scriptcfg...copy and paste to notepad because you can't change the one in the pk4 file...edit out or in the maps you want or don't want...name it "jellin.scriptcfg"
..save to base folder in Prey and then change this: "seta g_mapCycle "mapcycle"" to this, "seta g_mapCycle "jellin"" located either in your server cfg or the prey cfg file
__________________
I'mTheMotorcycleBoy FromHell
bummerman is offline  
Old 07-26-2006, 03:07 PM   #16
Robertje
Re: Setting up a Windows Server
Quote:
Originally Posted by Rizno
its working now ...? dont know how but it is lol
It always takes a while for servers to show up in the masterlist, if you can connect to your server by IP you should just have some patience.

Btw: there's no need to open any port on your server for the master server EXCEPT if you are also blocking outbound connections.
__________________
[SIZE="1"]
Dedicated server config generator for Prey
Robertje is offline  
Old 07-26-2006, 06:38 PM   #17
bummerman

bummerman's Avatar
Re: Setting up a Windows Server
my server shows in about 30 sec
__________________
I'mTheMotorcycleBoy FromHell
bummerman is offline  
Old 07-27-2006, 02:47 AM   #18
Rizno
Re: Setting up a Windows Server
yeah ive run lots of servers over the last year and they always show up instantly, normally.
Rizno is offline  
Old 07-27-2006, 03:10 AM   #19
timkill
Re: Setting up a Windows Server
mine shows right away usually.
timkill is offline  
Old 07-27-2006, 11:00 AM   #20
Robertje
Re: Setting up a Windows Server
Then you're either lucky, or the master server has your IP cached.

All I wanted to say is that it can take some time for it to show up, and if you've opened your game port on your firewall/router and you can connect by direct IP, you should just wait.
__________________
[SIZE="1"]
Dedicated server config generator for Prey
Robertje is offline  
Old 07-27-2006, 05:00 PM   #21
Rizno
Re: Setting up a Windows Server
just commenting, didnt mean to sound arrogant if we did...
Rizno is offline  
Old 01-16-2007, 06:36 AM   #22
Arkon

Arkon's Avatar
Re: Setting up a Windows Server
I have a question with coping files from the prey folder if it is a paid server will I need a copy of prey for that as well as my own copy to play the game.
Also do you have to have the preykey file copied to server
Will I be able to connect to server if I'm running same copy of game ?

Sorry if this sounds like a silly question

Cheers Arkon
Arkon is offline  
Old 01-23-2007, 03:52 PM   #23
bummerman

bummerman's Avatar
Re: Setting up a Windows Server
yes you can...run Prey thru Steam to bypass the need for a cd...not sure about the key file...would imagine so...anybody playing these days?
__________________
I'mTheMotorcycleBoy FromHell
bummerman is offline  
Old 01-29-2007, 12:46 AM   #24
Maniac536
Guest
Re: Setting up a Windows Server
You can run a dedicated server without the need of a key. You just have to use the dedicated server application. I'm pretty sure that 1.2 retail and steam are compatable.

-Maniac
 
Old 02-10-2007, 10:27 PM   #25
Arkon

Arkon's Avatar
Re: Setting up a Windows Server
I have problem when I start server I get

wrong game DLL API version

what does this relate too ?

Cheers Arkon

EDIT: I have this sorted now

I have server up and running And you guys have released a new patch 1.3 so I will have to update server

[[Nacho's Note: Use the edit button]]
Last edited by Nacho; 03-12-2007 at 12:13 PM. Reason: triple post
Arkon is offline  
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:07 PM.

Page generated in 0.19343495 seconds (100.00% PHP - 0% MySQL) with 16 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.