PDA

View Full Version : Newbie and CFG files


Gilvagor
12-01-2002, 02:48 PM
I'm new to this whole Dedicated Server thing. I am however very excited that I managed to get a Dedicated Server working on my first attempt and it can be seen on GameSpy or by browsing Internet Games from within Mohaa. However after reading and reading on this and other sites :rolleyes: I would like to run try to run a server.cfg to limit what can and cannot be done on the server (like disabeling Votes). However I'm not entirely sure how to setup the server.cfg file.

What I have so far is:

// Generic MoHAA Server Config File
// This block of settings controls the info players will see about your server in game
// browsers, like GameSpy. If you don’t want your server to appear in GameSpy’s server
// list, change the 1 to a 0 in sv_gamespy.
seta sv_hostname "=gKg=No Shotguns or Rockets"

sets Admin "ToBeNamed"

sets URL "www.gatekeepersguild.com/mohaa";;

sets Connection "T1"

seta sv_gamespy "1"

//This block of text controls the network settings for your server. Unless you have a
// specific reason for changing them, you should leave these as they are.

net_noipx 1 // disables the IPX protocol

net_port 12203 // specifies port 12203 for client connections

// This block of text controls your server’s security. If you don’t want to enable rcon
// commands, comment out the rconpassword line.

//set rconpassword "xxxx"

seta sv_floodProtect "1" // won’t allow players to flood server

seta flood_waitdelay "10"

seta flood_persecond "4"

seta flood_msgs "4"

set sv_pure "0" // requires players to have pure game files

// This block of text controls your server’s performance variables.

seta sv_allowDownload "0" // if players don’t have maps, don’t send them

seta sv_maxRate "9000" // allow players to pull up to 9,000 bps

seta sv_fps "20" // process 20 frames per second

seta sv_maxping "200" // players must ping below 200 to connect

// This block of text controls the number of players on the server

set sv_maxclients "16" // Maximum of 16 players on server

set sv_privateClients "5" // 3 of 16 slots require a password

set sv_privatepassword "xxxxxxx"

// the password for the private slots

// This block of text controls the game play variables on the server.

seta timelimit "15" // maps will run for 15 minutes

seta fraglimit "0" // maps will not end based on frags

set g_gametype 1 // map will be objective (2 = TDM)

set g_teamdamage "0" // friendly fire is off (1 = on)

set g_inactiveSpectate "60" // players go to spectate after 30s of inactivity

set g_inactiveKick "340" // players kicked after 120s of inactivity

// the next line is the list of maps the server will run, in order
// if you change to tdm maps, don't forget to change the gametype

seta sv_maplist "obj/obj_team1 obj/obj_team2 obj/obj_team4"

map obj/obj_team1 // the first map to run


Is there anything that I'm missing?. I realized I'll have to fix the map list as it is set to objective instead of Free For All.

Another question I have is...Is there a way to remove Shotguns and Rocketlaunchers?. if so is it a command in the CFG file or a mod?. And if it's a mod where can I find such a thing.

Just for computer information:
Windows XP
Mohaa + Spearhead
P3 800
512MB Ram
40GB HD
Nvidia Gforce 4 64MB DDR
Running behind a Firewall which all ports relateing to Mohaa have been opened.

Thanks,

Gilvagor

SNYPE
12-02-2002, 02:49 PM
Ok your cfg looks pretty good. Make sure to uncomment (remove the //) the rconpassword so that it gets set by the cfg. Make a shortcut to the Mohaa_server.exe, rt click on the shortcut, click properties and in the textbox "Target" add the following after the exe: +set dedicated 1 +set ui_console 1 +exec server.cfg
To remove the rockets etc, you either will need to modify the pk3 or use a mod. There is one here: http://www.alliedassault.com/pafiledb/pafiledb.php?action=file&id=1150

Gilvagor
12-03-2002, 09:53 AM
Thanks for the info. Now one more question. If I have reserved spots how to people access that. I noiced that If I had 5 Reserved spots the server only showed that 11 people could play but the people that I wanted to get in all the time could not. I gave them the password but it never prompted them for it. Are we mssing something?.

Thanks again,

Gilvagor
=gKg=

SNYPE
12-03-2002, 10:05 AM
It wont prompt you, what you will get is a message that Server is Full, then bring up the console and type: password xxxxxx, then type: reconnect and press enter. There is a way to enter the password in ASE and I think GSpy too, just never did it that way, this way works just fine.