Server Config + Website Monitor (updated for 1.2 patch)

Wolfman TWP
Posts: 4
Joined: Sat Oct 29, 2005 5:38 am

Post by Wolfman TWP »

slackX wrote:Great cfg/template thx :)

Here is a .pl script I've rewritten which will monitor quake 4 servers using qstat on your web server. I threw it together rather quickly today for someone who was needing it, so please consider it a work in progress. This script was derived from the late q3mon/qsmon.

Example 1
Example 2

You can download this latest version here [v0.2]:
http://files.dev1ance.net/quake4/q4mon/q4mon-0.2.tar.gz

I've also finally managed to compile qstat 2.10 for you windows users. I have not tested it with this script however, but it should work:
http://files.dev1ance.net/quake4/q4mon/ ... -win32.zip

Version 0.2 (Oct 28, 2005)
- Added private slots to be displayed based on si_numPlayers - si_maxPlayers
- Added GET requests for customized server listings
- Fixed ^c[RGB] -> Hex color conversions.
- Added additional server info. .Administrator .Location .URL

Hi,

I thought that I'd give this utility a try. I have a webserver setup on both my LAN gaming servers. But I have a problem that when I run the http:/myserver/q4mon.pl script, that it says it says :-

"Forbidden

You don't have permission to access /q4mon.pl on this server."

I've made sure all the permissions are correct. Any ideas on how I can get this to run??

Cheers,
Wolf
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post by slackX »

Did you chmod 755 q4mon.pl?

If you have a cgi-bin directory I'd try running it in there first. Your webserver config may not be properly setup to run cgi/pl scripts outside of it. Check your error logs as well, they usualy give more detailed info.
Wolfman TWP
Posts: 4
Joined: Sat Oct 29, 2005 5:38 am

Post by Wolfman TWP »

slackX wrote:Did you chmod 755 q4mon.pl?

If you have a cgi-bin directory I'd try running it in there first. Your webserver config may not be properly setup to run cgi/pl scripts outside of it. Check your error logs as well, they usualy give more detailed info.
Thanks for the reply..

Yup did the chmod 755 stuff.. I'll checkout the cgi stuff and see what happens..

Is there a way to be able to get to execute from the webserver base directory?? As I wasn't able to find anything in the httpd.conf file regarding that..

Wolf
Wolfman TWP
Posts: 4
Joined: Sat Oct 29, 2005 5:38 am

Post by Wolfman TWP »

Wolfman TWP wrote:
slackX wrote:Did you chmod 755 q4mon.pl?

If you have a cgi-bin directory I'd try running it in there first. Your webserver config may not be properly setup to run cgi/pl scripts outside of it. Check your error logs as well, they usualy give more detailed info.
Thanks for the reply..

Yup did the chmod 755 stuff.. I'll checkout the cgi stuff and see what happens..

Is there a way to be able to get to execute from the webserver base directory?? As I wasn't able to find anything in the httpd.conf file regarding that..

Wolf

Got it working... Thanks. Needed to change the cgi directory to get it to work, and it's all working great now..

Thanks

PS: Now to do the same thing for D3, UT2K4 etc..
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post by slackX »

np. Glad it worked for you.
Wolfman TWP wrote:Is there a way to be able to get to execute from the webserver base directory?? As I wasn't able to find anything in the httpd.conf file regarding that..
Check your webserver documentation for either script aliasing (AddHandler) or ExecCGI control access. It's not difficult implement, should only require you to edit a line or 2.
Wolfman TWP
Posts: 4
Joined: Sat Oct 29, 2005 5:38 am

Post by Wolfman TWP »

slackX wrote:np. Glad it worked for you.

Check your webserver documentation for either script aliasing (AddHandler) or ExecCGI control access. It's not difficult implement, should only require you to edit a line or 2.
Thanks, it's all working fine now.. I just needed to modify the cgi directory, so I pointed it to the servers base directory and it works..

All I need now are some players and I can see it all working with people on the server..

Thanks,
Wolf
heavyy
Posts: 8
Joined: Mon Oct 24, 2005 1:59 am

Post by heavyy »

dedicated1v1tourneyserver.cfg questions,pls help.
How is play warmup, 1v1tourney mode.?
i use seta si_warmup "1" but i spectator or waiting room.
nasrott
Posts: 2
Joined: Tue Nov 01, 2005 11:35 pm

Post by nasrott »

am a noob to adminning a Q4 server have used your server.cfg from page 1 and now get an "no map running" message when I try to join the server, any ideas?

Thx, Nasrott-TAO-
heavyy
Posts: 8
Joined: Mon Oct 24, 2005 1:59 am

Post by heavyy »

nasrott wrote:am a noob to adminning a Q4 server have used your server.cfg from page 1 and now get an "no map running" message when I try to join the server, any ideas?

Thx, Nasrott-TAO-
what?
nasrott
Posts: 2
Joined: Tue Nov 01, 2005 11:35 pm

Post by nasrott »

Have never set up a Quake server before only UT99, 2K3, 2K4.

So tried the .cfg on page 1 of this thread from Riddla and replaced my default one in the game, modded it with my clans info. Afterwards I get a "cant find maps/+.maps" error in console and when I try to join the server get a map not running error...

Was wondering what I was doing wrong..

Basically I need a step by step detail of what to do with the files from his template. We have a decent box in NY and am trying to get a nice pinging server up for the public and our clan...

Would imagine all this is due to no experience on my part with adminning a Quake server.

Do have a server running now but am using a cfg configured from my home game, wanted the extra lines that he has in his config..

My servers IP: 69.9.176.162

Would also love to know how to set this server up in game panel as a service in W2K3 server and assign an ip, game type basically.ect, the aurgment needed to start this server on it own. Have it running on my desktop now at present kind of a pain...


Thx, Nasrott
Hex
Posts: 190
Joined: Fri Oct 18, 2002 7:00 am

Post by Hex »

nasrott wrote:replaced my default one in the game, modded it with my clans info. Afterwards I get a "cant find maps/+.maps" error in console and when I try to join the server get a map not running error...

Was wondering what I was doing wrong..

Do have a server running now but am using a cfg configured from my home game, wanted the extra lines that he has in his config..

Would also love to know how to set this server up in game panel as a service in W2K3 server and assign an ip, game type basically.ect, the aurgment needed to start this server on it own. Have it running on my desktop now at present kind of a pain...
Thx, Nasrott
I'll bet you have a typo in your config. You're trying to tackle too much at once. copy/paste this rather plain config as your config and see if you can get it running. Then add the lines you want one or a couple at a time while you're testing them.

Start it with quake4ded.exe +exec server.cfg


//basic Q4 server cfg save as server.cfg
si_name "MyServerName"
// si_gametype can be "DM", "Team DM", "Tourney", "CTF", "Arena CTF"
si_gameType "DM"
net_serverDedicated 1
si_maxPlayers 10
// si_minPlayers, game will stay in warmup until at least this many
// players connect. Only valid if si_warmup 1
si_minPlayers 1
// si_warmup perform a match warmup
si_warmup 1
// how many seconds the warmup->game countdown lasts
si_countdown 10
net_serverMaxClientRate 16000
si_mapCycle "mp/q4dm1;mp/q4dm2;mp/q4dm3;mp/q4dm4;mp/q4dm5;mp/q4dm6;mp/q4dm7;mp/q4dm8;"
si_fragLimit 30
si_timeLimit 15
// si_map, the map to start on
si_map mp/q4dm1
set logfile "0"
set net_serverRemoteConsolePassword "rconpass"
set net_serverAllowServerMod "0"
spawnServer
//end basic Q4 server cfg


For running as a service, google for windows start as service. Hope that helps.
-]Rx[-Harley
Posts: 16
Joined: Tue Sep 02, 2003 7:00 am

Post by -]Rx[-Harley »

My question is kind of related to rcon, but more specifically the pb admin commands. I have my rconpassword in my config so I connect as admin. Anyways, if I type in a pb command like pb_sv_plist, nothing shows. I've tried the pb_sv_plist with and without rcon in front. I will see in the console something about successful command, but don't see anything.

I do think that the pb commands do work but for some reason, the commands are not echo'ed back. For example, if I initiate pb_sv_badname 20 whatever, a player is definitely kicked after 20 seconds, but if I do a pb_sv_badnamelist, I am not given a list of the names on that list. Anyone have any clues? Am I missing something in my server config? Thanks.
-]Rx[-Harley
Posts: 16
Joined: Tue Sep 02, 2003 7:00 am

Post by -]Rx[-Harley »

Ok, I really should do more extensive looking before I post a question because I keep finding the answers myself... anywhoo, I found this on the punkbusted forums posted by an admin:

"turns out it's a pb bug. For some reason it's only pb commands that don't echo back. game cvars, server settings etc are fine."

from:
http://www.punksbusted.com/forums/index ... opic=15588
Xenolith
Posts: 2
Joined: Mon Oct 24, 2005 7:27 am

Post by Xenolith »

My server is behind a router. What ports need to be forwarded/open for a server to work. I forwarded port 28004 and I can join it just fine. But the server isn't showing up in the game browser. Only 993 servers showed up in my game browser, so no 1000 limit in effect here. {Edit... fixed... port 27650 wasn't being forwarded}

The other thing I want to ask about are the cvars gui_configServerRate and net_serverMaxClientRate. How do these relate? From another site, there is this info about gui_configServerRate.
--------------------------------------
seta gui_configServerRate "0"
* 0 - 128 kbits
* 1 - 256 kbits
* 2 - 384 kbits
* 3 - 512 kbits
* 4 - 768 kbits
* 5 - LAN speeds
128Kbps : 4 players
256Kbps : 6 players
384Kbps : 10 players
512Kbps : 10 players
768Kbps : 12 players
LAN : 16 players
---------------------------------------
No real help on net_serverMaxClientRate, so far.

Thanks
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

Great config.

Quick question before I try it out because so many things appear to be broken currently:

Anyone having troubles adding custom maps into the server map rotations? (Other than the inability for the client to download the maps)
All Out War! 8 player DM Server
1.2 patch + Q4Max + Custom maps + FAST Auto-Download!
Go to [url]http://www.uzaclan.net[/url] for more details or just connect to: 67.19.62.215:28004
[b][color=red]Stats are kept on uZaClan.net[/color][/b]
Hex
Posts: 190
Joined: Fri Oct 18, 2002 7:00 am

Post by Hex »

Custom maps work fine.
kaffeedoktor
Posts: 13
Joined: Mon Feb 09, 2004 8:00 am

Post by kaffeedoktor »

Is g_log working at your server? I tried setting it in serveral ways, but I won't get is activated. Typing "g_log 1" on server console just sais it's deactivated in multiplayer mode.

Right now I've just those very very tiny stats in file "StatisticsLog.txt" which isn't really usable ...

So is there a way to activate logging or has this to be implemented in a mod using sdk?
Hex
Posts: 190
Joined: Fri Oct 18, 2002 7:00 am

Post by Hex »

use in your config:
set logfile "1"
set logFileName "filename.log"

if enable g_log, it creates what looks like a log of a bunch of diagnostic numbers in a map-specific folder.
(snippet of seperate log created when g_log 1)

:400576 25036 0 "60"
:400592 25037 0 "50"
:416224 26014 0 "60"
:416240 26015 0 "50"
#1 player0_damage_taken
#2 player0_damage_damage_grenadeSplash
:419200 26200 2 "50" 1 "50"


So you don't need g_log to get the standard logfile running.
kaffeedoktor
Posts: 13
Joined: Mon Feb 09, 2004 8:00 am

Post by kaffeedoktor »

I know - perhaps my post wasn't clear:

Using default log output (logfile=1) just writes any server console output to specified logfile. But I wanted to have log output like it was with q3 dedicated server, which means detailed informations about item/weapon pickups, kills, etc. that can be parsed with a statistics tool. That doesn't seem to be enabled in quake 4 by default and can't be enabled, because it's not allowed in multiplayer mode.

The statistics quake 4 provides with com_logMPstats=1 aren't enough for my needs.

I'm currently playing around with sdk - I've created a thread for that here in this forum.

kaffeedoktor.
Hex
Posts: 190
Joined: Fri Oct 18, 2002 7:00 am

Post by Hex »

Oh, right. I'd like to see more detailed stats too...

(watching the other thread)
Fjoggen
Posts: 23
Joined: Sat Aug 30, 2003 7:00 am

Post by Fjoggen »

Nice config, but I also find this var useful for my server:

Code: Select all

//==================
// Consolle settings
//==================
seta com_timestampPrints "2" // print time with each console print, 1 = msec, 2 = sec
seta com_uniqueWarnings "1" //activate to allow individual warnings to print only once per level load.
seta net_serverDedicated "1" //1 = text console dedicated server, 2 = graphical dedicated server
seta win_allowMultipleInstances "1" //allow multiple instances running concurrently
seta win_timerUpdate "0" // allows the game to be updated while dragging the window
niko
Posts: 45
Joined: Sat Nov 19, 2005 7:28 pm

Post by niko »

HELP! :)

anybody having a problem with bobs reseting to some strange values on server after map voting?!

i have the server cfg from this topic and i have tried it in vanilla, x-battle and q4max mods,. and i keep geting walkbob, runbob and crouchbob reset to 0.2, 0.3 and 0.4??

anyone have a clue what might be the problem?

i tried erasing quake4config.cfg, or making it read only and addig pm_runbob "0.0" and so on..
niko
Posts: 45
Joined: Sat Nov 19, 2005 7:28 pm

Post by niko »

./quake4-dedicated +set fs_game q4max +set net_ip 82.117.194.235 +set net_port 28005 +exec server.cfg +set logfile 0 + set fs_basepath /usr/local/games/quake4ctf +set fs_savepath /home/quake/.quake4ctf

am.. tnx, but pls read what i've written :)
i just tried making the quake4config.cfg read only 'couse i have this problem and i saw that q4 writes the complete server.cfg in quake4config.cfg in path /home/quake/.quake4ctf BUT without pm_bob, pm_run commands (q4 ignores it)...
so i tried adding pm_bob to cfg and making it readonly thinking that q4 will read from /home/quake/.quake4ctf/quake4config.cfg on map restart since it's not reading the server.cfg file (or maybe just ignoring bob commands on restart)..

i've also tried running the server without +exec server.cfg and manualy added all the commands, spawned the serv. and so on..

now,.. the quake4config is erased, all server.cfgs are erased, i've loaded a default q4 install + q4max mod.. if anyone has any ideas?

has anyone else had the same problem?
did anyone pay attention at all on pm_walkbob, pm_runbob and pm_crouchbob settings after map voting?

tnx in advance! :P
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

Could someone tell me what this means in the dedicated server config listed at the begining of this thread?

"//pk4 files without an addon.conf in their root will not work"

What exactly does that mean?
All Out War! 8 player DM Server
1.2 patch + Q4Max + Custom maps + FAST Auto-Download!
Go to [url]http://www.uzaclan.net[/url] for more details or just connect to: 67.19.62.215:28004
[b][color=red]Stats are kept on uZaClan.net[/color][/b]
{uZa}FreakOfNature
Posts: 151
Joined: Thu Oct 20, 2005 2:18 am

Post by {uZa}FreakOfNature »

Wow. If that's the case, NONE of the custom maps I've downloaded so far have that file in the pk4. Very odd.
All Out War! 8 player DM Server
1.2 patch + Q4Max + Custom maps + FAST Auto-Download!
Go to [url]http://www.uzaclan.net[/url] for more details or just connect to: 67.19.62.215:28004
[b][color=red]Stats are kept on uZaClan.net[/color][/b]
Locked