organizing servers.

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
cong066
Private First Class
Private First Class
Posts: 27
Joined: Sat Sep 24, 2005 7:34 am
Contact:

organizing servers.

Post by cong066 »

I have a few different batch files which open up different maps for my server.
What i want to do is make a general config file that the bzfs can access to make a general rule for flags, players...etc.

when i run the cmd.exe program it opens up bzfs with a config file that opens the map. both the map and the config file have specifications.

is there a way to make a separate config file that the bzfs can load?
if this is confusing, i can try to clear it up.
Thumper
Private First Class
Private First Class
Posts: 34
Joined: Tue Sep 28, 2004 9:22 pm
Location: Toronto, Ontario, Canada
Contact:

bzflag.norang.ca server setup

Post by Thumper »

Hi,

My bzfs config file is very general - all it specifies is the non-changing parts for the game like server port, server password etc.

Here are the options from my test server config file:

Code: Select all

-groupdb "db/groups"
-banfile "db/ban"
-recbuf 16
-recdir "db/recordings"
-d
-passwd <big long secret password goes here>
-p 5199
-publicaddr "<Computer IP or domain and port number go here>" ie. "bzflag.norang.ca:5199"
-disableBots
#-maxidle 3600
-helpmsg "help/rules" rules
#-tkkr 20
-public "<Server name goes here>" ie. "Test Server - Test map"
-world "bzfs.bzw"
-srvmsg "<Multiline server message>"
-srvmsg "<goes here>"
-admsg "<Ad message goes here>"
Then the world that is loaded (in bzfs.bzw) specifies everything about the game. The world file includes an option setting section with things like flags to include, max player settings, game style, server variable settings, etc.

The top of each map file has something like this:

Code: Select all

options
        #-autoTeam
        -j
        +r
        # Good Flags
        +f A{2}
        +f CL{3}
        . . . (more flags)
        # Bad Flags
        +f B{1}
        +f CB{1}
        . . . (more flags)

        -ms 4
        -mp 4,4,4,4,4,10
        -fb
        -sa
        -st 5
        -sw 1
end
This makes world files totally self-contained and replacing one world file with another is all that is needed to change the game on the server. The only thing that can't be in the world file is the name of the map (included in the config file with the -public option)

HTH,
Thumper
User avatar
cong066
Private First Class
Private First Class
Posts: 27
Joined: Sat Sep 24, 2005 7:34 am
Contact:

Post by cong066 »

the problem with that version is that you have to edit the config file to change the map that the server will load.
I think i figured something that will work, but what i'd like to know is if there is anyway to edit the maximum players in the config file.
Thumper
Private First Class
Private First Class
Posts: 34
Joined: Tue Sep 28, 2004 9:22 pm
Location: Toronto, Ontario, Canada
Contact:

Changing the map

Post by Thumper »

Just copy a new map file to bzfs.bzw - no need to touch the config file.
Post Reply