Punkbuster running on Linux server not using punkbuster.cfg


(Spookstah) #1

This morning a did some testing on our server(s) with PB protected cvars and protected/locked cvars to test our strict pb setup, but to my suprise i could change a lot of settings completly out of range of my punkbuster.cfg (did use a protected/locked cvar unlocker for some cvar`s).

So i thought lets reload/exec punkbuster.cfg from within game trough my console but i noticed it did start up a cfg but not mine (probly some internal standard config), because it did gave the standard pb server message (not the name i did put into the cfg) and it also did miss a lot of cvar`s that are in my cfg.

This what a had in our server.cfg/autoexec.cfg, it starts pb but not with your/our punkbuster.cfg.

// PUNKBUSTER

// sv_punkbuster is a readonly variable. Use +set sv_punkbuster on command line or use the command pb_sv_enable in the console
pb_sv_enable
exec punkbuster.cfg

So i did do some more checking/testing and did find out that you need to start PB from your campaign.cfg and not from server.cfg or it wont apply your pb settings.

Put those to lines in your campaign.cfg and it will load your punkbuster.cfg:

set sv_punkbuster “1”
exec punkbuster.cfg

I also have a question about some cvars i did add in our config, maybe someone can tell me why those cvars arent loaded (maybe non ET cvar`s?)

^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: s_show “0”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_drawworld “1”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_drawentities “1”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_drawfoliage “1”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_nocurves “0”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_znear “3”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_singleShader “0”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_showmodelbounds “0”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: r_ambientScale “0.5”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: cg_tracerlength “160”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: cg_tracerSpeed “4500”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: cg_tracerwidth “0.8”
^3PunkBuster Server: Unable to Add Cvar Check - Invalid Specification: cg_tracerchance “0.4”


(Lekdevil.NL) #2

Regarding the cvar checks: you probably forgot to add the “IN” keyword in the command, i.e.:

pb_sv_cvar s_show IN “0”

Also, there is no reason why punkbuster.cfg shouldn’t be executed from the server.cfg file. You might want to check your files again and check for errors. Also, sv_punkbuster is indeed a read-only cvar, only to be set from the command line. Use pb_sv_enable instead when running from the console or config script.

HTH.


(=TAC=Chron) #3

i load my punkbuster.cfg from the server.cfg and haven’t noticed any problems. i have also added the recommended cvar settings that are currently listed at evenbalance.com with no ill effects.

lekdevil is right, the pb cvar needs to be set at the command line, +set pb_sv_enable 1 . it works better that way.

could it be some of those cvars a part of the devmap mode? and not running in regular mode?


(Lekdevil.NL) #4

No, you got it backwards:

pb_sv_enable is a command, which can only be entered in the console or in a config file,

sv_punkbuster is a read-only cvar, which can only be set in the server startup command line (i.e. +set sv_punkbuster 1).


(Spookstah) #5

Ill test the command line option 2morrow (servers full) to see if that works, but somehow it looks like pb cant find the .cfg file, when i try to pb_sv_load punkbuster.cfg it gives an error (cant find blablabla) even with a full path it still fails.

About the cvars LekDevil is right im a fool i didnt add the IN :bash: About the evenbalance recommended cvars they are way to old, there are tools around which can enable locked cvars and pb wont kick you for using it or after several hours playing, thats the reason why i did add some locked cvars in the .cfg


(=TAC=Chron) #6

that’s what i meant Lek… :eek3:

also,

i just use in the server.cfg-

exec punkbuster.cfg

that may be your issue.


(Lekdevil.NL) #7

Well, that’s your problem. You should use:

exec punkbuster.cfg

and not the pb_sv_load command. It’s rather confusing, but the pb_sv_load command is only to be used with config files that were created with the pb_sv_writecfg command, which reside in the “pb” directory. These files can only contain commands that begin with “pb_sv_”. If you’ve got a config file in your etmain directory, use the “exec” command to run it. This allows you to use other commands (like “set”) as well.

HTH.


(DG) #8

BTW, for pb_sv_load the file should be kept in the PB folder, not etmain. If youre using fs_homepath, IIRC it should be kept in the PB folder within that homepath subdirectory.

Easy way to do it is to look for the sv_cheat and sv_viol files that pertain to the specific server, where they are is the folder the files should be in for pb_sv_load to work. errr I’m hoping those logs are made by default :eek:

Anyway like the man says, exec’ is often better anyway, unless you are using writecfg or loading a auto-saved banfile etc.