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.
organizing servers.
-
- Private First Class
- Posts: 34
- Joined: Tue Sep 28, 2004 9:22 pm
- Location: Toronto, Ontario, Canada
- Contact:
bzflag.norang.ca server setup
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:
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:
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
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>"
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
HTH,
Thumper
-
- Private First Class
- Posts: 34
- Joined: Tue Sep 28, 2004 9:22 pm
- Location: Toronto, Ontario, Canada
- Contact:
Changing the map
Just copy a new map file to bzfs.bzw - no need to touch the config file.