View Full Version : PunkBuster not launching
stinkybobo
01-25-2005, 05:55 PM
Hi guys.
Quick question.
I'm running a CODUO server and sometimes punkbuster does not start with the server.
This is a Linux server by the way.
If I change into the cod home directory and do
./coduo_Inxded +set dedicated 1 +exec config.cfg +map_rotate &
Punkbuster launches fine.
However, I have a cron job that checks to see if the server is running every few minutes and if it's not, it launches a script to launch the server. Here's the script:
#!/bin/bash
#
gamedir=/home/stinkybobo/callofduty
cd $gamedir
./coduo_lnxded +set dedicated 1 +set fs_homepath $gamedir +set fs_basepath $gamedir +exec config.cfg +map_rotate &
When the cron job launches the script, punkbuster does not start.
Any ideas?
nader
01-25-2005, 09:06 PM
do you have the cvar in you main server.cfg to enable PB ?
if not add this to your server cfg
// Punkbuster
set sv_punkbuster "1"
pb_sv_enable
wait
stinkybobo
01-26-2005, 12:05 AM
I've got the last two lines...but not this one:
set sv_punkbuster "1"
I also read somewhere...can't find it again though, that if i put this:
+set sv_punkbuster 1
in my launch script it might help.
Any thoughts?
Glanzer
01-27-2005, 05:31 PM
Try moving the map_rotate directive out of your startup line and put it at the end of your config.cfg file. That will allow the pb server to get started before the CoD server starts. If the CoD server starts too soon, it prevents the pb server from coming up. Also, put a single "wait" directive before the map_rotate line.
See below for more info:
http://www.codadmin.com/nuke/modules.php?name=Forums&file=viewtopic&t=3418&high light=maprotate
*EDIT* Oh, one more thing. You are running a "dedicated 1" server, that is a LAN server not Internet server ("dedicated 2")? I've never tried to use punkbuster with anything but a "dedicated 2" server. I have no idea if that has any bearing on your problem though.
MajorWoody
01-28-2005, 03:17 PM
If you don't set +set fs_homepath and +set_fs basepath PB will have trouble.
Set these in your startup script, they should both point to the location of the CoD binaries.
stinkybobo
01-28-2005, 05:19 PM
Well, I tried taking map_rotate out of the startup script and put at the end of the cfg file. PB still doesn't launch when launched by the cron job. Only launches when I launch the server manually.
Oh, and I have to set it to Dedicated 1 because where the server is, I'm behind a proxy that doesn't allow internet access and it freaks out if I set it to 2. lol.
stinkybobo
01-28-2005, 05:21 PM
startup script now looks like this.
#!/bin/bash
#
gamedir=/home/stinkybobo/callofduty
cd $gamedir
./coduo_lnxded +set dedicated 1 +set fs_homepath $gamedir +set fs_basepath $gamedir +exec config.cfg
still no go.
But still works fine if I just change into the directory and type:
./coduo_lnxded +set dedicated 1 +set fs_homepath $gamedir +set fs_basepath $gamedir +exec config.cfg
Glanzer
01-28-2005, 07:00 PM
Try putting a single "wait" instruction just before the map_rotate directive. Maybe that will give the pb server more time to come up.
What messages in your console tell you it's not starting? Can you post the last 20 lines or so of your config file and the contents of your console after it starts for us to look at?
stinkybobo
02-02-2005, 03:31 PM
Here's the last few lines of my config file
//set scr_bel_scorelimit "75"
//set scr_bel_timelimit "20"
//Deathmatch Default Description
//set scr_dm_scorelimit "50"
//set scr_dm_timelimit "30"
//Retrieval Default Description
//set scr_re_graceperiod "15"
//set scr_re_roundlength "5"
//set scr_re_roundlimit ""
//set scr_re_scorelimit ""
//set scr_re_showcarrier "0"
//set scr_re_timelimit "20"
//Search and Destroy Default Description
//set scr_sd_graceperiod "15"
//set scr_sd_roundlength "5"
//set scr_sd_roundlimit ""
//set scr_sd_scorelimit ""
//set scr_sd_timelimit "20"
//Team Deathmatch Default Description
set scr_tdm_scorelimit "100"
set scr_tdm_timelimit "15"
set scr_teamkill_penalty "1" //Penalizes team for TK's
//HeadQuarters Default Description
//set scr_hq_timelimit "20"
//set scr_hq_scorelimit "450"
//PUNKBUSTER
set sv_punkbuster 1
PB_SV_ENABLE
WAIT
// Set starting game type
set g_gametype "tdm" //gametype: bel, dm, re, sd, tdm, hq, dom, bas, ctf
// Map rotation.
//set sv_mapRotation "gametype tdm map fivepoints map Gorges_du_wet map mp_sicily map paintball map mp_brecourt map mp_streetwar map mp_harbor map mp_chateau map mp_powcamp"
set sv_mapRotation "gametype tdm map mp_Arkov map Mogadishu map mp_arnhem map mp_canal map mp_kharkov map gradlinsta map mp_streetwar map Nuenen map mp_grane map mp_brecourt"
wait
MAP_ROTATE
stinkybobo
02-02-2005, 03:56 PM
Oh, and the messages from the console...If I start it from the console it works fine. PB only doesn't start correctly if the CRON job runs the script to start the server. It does that in the background so I can't see what's not starting or why. The script that starts the server is posted above
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.