Setting up a BZflag server in Linux

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Setting up a BZflag server in Linux

Post by derfaust »

ok....this is bugging me i have been messing around with this for hours....

how do i start the dang BZflag server....i know the basic command is bzfs....but it doesnt work...bzfs seems to start, but no dice.....

is their some sort of switch i am supposed to use?...i tried many with no luck....

thanks for your time....and if it is some kind of switch, could you post it so i could try it....
I ENJOY THE TORTURE
___________________
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

what do you expect to happen?

can you connect to your ip from a local client?

you need some comand line options if you want the server to show up in the public list server
ImageJeffM
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

really all i want is a private LAN server for the moment.... but the public server would be sweet...
i cant connect to any server i try and start...only when i start the server via the gui on my main computer and then join via other machines internally it works...but that is all....but if i try and make a server the same way on another machine it wont work....odd...

thanks for your reply....and i look forward to a solution....
I ENJOY THE TORTURE
___________________
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

Patlabor221 wrote:what do you expect to happen?

can you connect to your ip from a local client?

you need some comand line options if you want the server to show up in the public list server
i expected it to work...at least be joinable...or something...not dead...

man i still cant start a server for bzflag...i have tried configs...and other exceptional....

ok...how about somebody just tell me?...i have looked for quite a bit now....no success....man pages...web pages...nothing....notta...zipp

so someone wanna be useful?
I ENJOY THE TORTURE
___________________
Grumbler
Dev Monkey
Dev Monkey
Posts: 453
Joined: Wed Jul 09, 2003 3:06 pm
Location: Space

Post by Grumbler »

The following is a copy of my conf file. you can pick and choose options from there.


# This is a BZFlag Server (bzfs) configuration file. To make the server
# use this file, use the command "bzfs -conf /path/to/this/file.conf".
# Please read through it carefully. Lines starting with a # are comments.
# to enable an option, remove the # at the beginning of a line. To
# disable that option, put the # back. There are some examples in this
# file. Make sure you change the examples if you uncomment the line. If
# you don't know what something does, you are probably okay to just leave
# it commented out. Failure to read through this file (looking for
# already uncommented lines) might be a little embarrassing. Have fun.


# Enables inertia and sets the maximum linear and angular accelerations.
# The units are somewhat arbitrary so you'll have to experiment to find
# suitable values. The values must be non-negative and higher values
# yield greater inertia.

#-a <vel> <rot>

# Define a message which will be broadcast to all players every 15
# minutes.

-admsg "MiniMap by Purple Panzer : Swearing and cheaters banned. "

# When -c is supplied, this option randomly rotates the buildings.

#-b

# This option sets up your ban list. This is ip masks separated by
# commas.

# Specifies the name of a file where bzfs will store the banlist.
# It will load the banlist from this file when it starts (if the file
# exists), and write the banlist back to the file when someone gets
# banned or unbanned.

-banfile support_files/banfile

# Specify a file that contains bad words that will be used when either
# -filterCallsigns or -filterChat is enabled.

-badwords support_files/multilingualSwearList.txt

# Turn on the filtering of chat messages. Messages have words provided
# via a -badwords file are replaced with !@#$%^&* characters.

-filterChat

# Turn on the filtering of callsigns. Callsigns are compared against
# bad words provided via -badwords.

-filterCallsigns

# enables capture-the-flag style game. Default is free-for-all style game.

#-c

# enables capture-the-flag style game with a random map. Default is
# free-for-all style game.

#-cr

# This option is for debug. You can have as many as 4 of them.
# simple debug
-d

# and more complex debugging.
#-dd
#-ddd
#-dddd

# The server will randomly generate flags from the following list. If you
# want to be sure there is at least a certain amount of a flag on the map
# at any given time, you can use the +f option to guarantee a certain
# number of a flag by repeating the option that many times. So to insure
# there are at least 4 Oscillation Overthrusters you would do the
# following, minus the # signs. Using "+f good" is the equivalent of
# doing +f for each of the good flags.

+f CL
+f CL
+f CL
+f ST{3}
# +f GM{2}
-f R
-f JP
-f CB
-f MG
-f US

# velocity & thief flag fix
-speedtol 1.68

# Flag IDs. A - Quick Turn, OO - Oscillation Overthruster, F - Rapid Fire,
# MG - Machine Gun, GM - Guided Missile, L - Laser, R - Ricochet,
# SB - Super Bullet, ST - Stealth, CL - Cloaking, IB - Invisible Bullet,
# T - Tiny, N - Narrow, SH - Shield, SR - Steamroller, SW - Shock Wave,
# PZ - Phantom Zone, G - Genocide, JP - Jumping, ID - Identify,
# MQ - Masquerade, BU - Burrow, SE - Seer, TH - Thief, US - Useless.
# Bad Flags - CB - Colorblindness, O - Obesity, <- - Left Turn Only,
# -> - Right Turn Only, M - Momentum, B - Blindness, JM - Jamming,
# WA - Wide angle.

# If you want to restrict a certain flag, you can use the -f option.
# just like with the +f option. "-f bad" is the same as doing -f for
# all of the bad flags. You might want to turn off jump and ricochet
# flags if the server already has jump and ricochet turned on.

-f SW
-f GM
-f JP
-f R

# This option allows for flags on box buildings.
-fb

# This option allows for tanks to spawn on box buildings.
-sb

# Registered player files which will be loaded on startup.
-passdb support_files/galkire.pass
-userdb support_files/galkire.users
-groupdb support_files/galkire.groups

# This option causes the server to quit after serving one game. This is
# handy if you want to do a timed game, or script a rotating server.

#-g

# This option gives buildings random heights. This is only useful when
# you are using random maps.

#-h

# Server will listen for and respond to "pings" (sent via multicast) on
# the given interface. The server uses the first multicast enabled
# interface by default. Clients use this to find active servers on the
# network. This is also the TCP/UDP/IP address the server will listen on.
# You probably don't need to use this unless you don't show up on the
# server lists.

#-i interface

# This option allows jumping.

-j

# This option kicks players after they have been warned about high lag for
# a certain number of times.

-lagdrop 3

# This option warns the user their lag is too high when it crosses the
# number of milliseconds set.

-lagwarn 400

# This option kicks the user off after they have been idle for the
# specified number of seconds.

-maxidle 300

# This sets the max number of players. It can be done in 2 ways. A flat
# count of players, or by number of players on a given team.

# This allows up to 50 players, no team limits.

#-mp 50

# This allows for max player by team.
# The order is rogue, red, green, blue, purple
-rabbit killer
-mp 12,0,0,0,0,3

# This option sets the max score for players. The game ends when a person
# reaches this score and is declared the winner.

#-mps 100

# This sets the maximum number of shots before a reload. The default
# is 1.

-ms 5

# This sets the max team score. The first team to reach this score is
# declared the winner and the game is ended.
# declared the winner and the game is ended.

#-mts 250

# Set to not use a UDP connection for players. (UDP is good!)

#-noudp

# The server will listen on this port.

-p 5555

# Sets the admin password for the server.

-password FoolsRushInWhereWiseMenCamp

# This dumps the score to console when it changes.

#-printscore

# This is the public message that the server advertises on the public
# server list. This is required if you want to be shown on the list.
# It often advertises the map you are using. Keep it short.

# -public "bzflag.secretplace.us: Now playing Spirals 3.0 by BZDoug."
-public "Mini by Purple Panzer: Rabbit Hunt : Public Map Design Server: See Grumbler"

# This is also needed to be listed on the public server list. The
# address needs to be valid in DNS.


-publicaddr bzflag.galkire.net:5555

# You probably don't need to use this, but it is there if you do. This
# specifies where the server advertises itself. The built-in default
# should work just fine. You need to hunt down the proper address if
# doesn't work.

# Tells server not to respond to "pings". This makes the server private.

#-q

# This makes most shots ricochet.

#+r

# This requires clients to use UDP (a good thing). This will generally
# make the server behave better, and make play more smoothly.

-requireudp

# Use +s to have the server generate a certain number of extra super flags
# and have them available at all times.

+s 50

# The server will have up to this many super flags at any time.

-s 50

# This option allows for antidote flags to be available for players who
# get bad flags.

-sa
-requireudp

# Use +s to have the server generate a certain number of extra super flags
# and have them available at all times.

+s 50

# The server will have up to this many super flags at any time.

-s 50

# This option allows for antidote flags to be available for players who
# get bad flags.

-sa

# This is the server welcome message. Please change it.

-srvmsg "Welcome to the Map Test Bed. All maps available via bzbb.bzflag.org.\n\nNo cheating or swearing.\nALL activity monitored.\nALL REGISTERED USERS MUST /identify BEFORE SPAWNING OR YOU
WILL BE KICKED.\nAdmins will be marked with (R) in /lagstats to prevent people from impersonating an admin."

# Bad flags are automatically dropped after this many seconds.

-st 3

# Bad flags are automatically dropped after this many wins.

-sw 1

# This forces all clients to use the same time of day. The time is
# determined by the server's clock. This disables the + and - keys
# on the clients.

#-synctime

# Adds teleporters to the game. Not usable with custom worlds.

# -t

# This sets time limit (in seconds) for the game. Time starts when first
# client connects.

#-time 3600

# If a player kills a teammate, he gets -1 on his score with this option.
# If this option is not set, players die when killing a teammate.

#-tk

# Kick a player if his ratio of teammate to non-teammate kills is this
# percentage or greater.

-tkkr 60

# Sets max number of hops a ping reply will take before giving up.
# Clients more than this number of hops away will not be notified of the
# server's existence.

#-ttl 32

# This specifies the world filename.

-world "maps/MiniMap.map"
.........you kids, get out of my tank...........
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

grumbler...thanks a million... i'll mess with that config.... i tried getting one to work right....using the below site ....but no dice....

http://cvs.sourceforge.net/viewcvs.py/b ... l?rev=1.27

thanks .....
I ENJOY THE TORTURE
___________________
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

thank you admins.....you rule!!!
I ENJOY THE TORTURE
___________________
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

I think that is one of the definitions of admin :)
ImageJeffM
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

well here is my bzfs.conf.... it works locally....

now...i tried to get it to where i could hit it via the internet...it wouldnt work....

thanks for all the help...and grumbler...thank you very much for posting that config seeing the layout helped quite a bit....ROCK!!!

here's my bzfs.conf...it still needs a little cleanup....lol....it does work though...lol..

how do i get it connect via the internet?


# set angular velocity
#-a

# advertisment
-admsg "www.derfaust.com"

# randomly rotates buildings
-b

# ban ips
#-ban ""

# point to a location for a file of restricted words
#-badwords

# enable catpure the flag game style
#-c

# enable catpure the flag game style with random maps
#-cr

# -increase debugging level, the more -d that are used, the more debugging info
#-d
#-dd
#-ddd
#-dddd
#-ddddd

#-turns on the filtered chat...uses badwords file and replaces bad words with $^%&#
#-filterChat


# same as above bad applies to email addresses and callsigns
#-filterCallsigns

# more aggressive filter
#-filterSimple

# Allow flags on box buildings
-fb

# quit after one game
#-g

# buildings are given random heights
-h

# goto another console and type "mna bzfs"
#-helpmsg "server"

# server listening port
#-i

# allows jumping
-j

#kicks players after "warn-count" lag warnings
#-lagdrop

# sends warnings to players that lag more than "time"
#-lagwarn

# kicks idle players after x seconds - maxidle time/s
#-maxidle


#-mo

# sets team limits
#-mp

# sets max store for players
#-mps

# sets max score for teams
#-mts

# sets max shots - default is 1
-ms 10

# dont use udp
-requireudp

# port
-p 5155

# sets password
#-passwd

# write score to stout when ever it changes
-printscore

# advertise name
-public "CLAN(XL) BZFlag server....ROCK AND ROLL!!!!.....BIOOTCH!!!!"

# advertise this server with the given address and port
-publicaddr derfaust.myftp.org:555

# advertise this server on the bzfls
#-publiclist

# make the server private
#-q

#ricochet
+r

# rabbit game style
#-rabbit

# provide antidote flags
#-sa

#
#-speedtol 50

# welcome message
-srvmsg "CLAN(XL)...BIOOTCH!!...!ROCK AND ROLL!!."

# drop bad flags after time seconds
-st 5

#
#-sw 1

# forces all clients to use the same time
#-synctime

# teleporters
-t

# time limit
#-time 1200

# enables one to start the clock
#-timemanual

# instead of dying in a team kill one just gets -1 and doesnt die
#-tk

# kick teamkiller ratio
#-tkkr 50

#
#-ttl 8

# world file
#-world

# world size
#-worldsize 400

#Mandatory flags
#+f good{2} +f V{5} +f L{5} +f N{5} +f JP{5} +f TH{5} +f CB{5} +f WA{5}



# The server will randomly generate flags from the following list. If you
# want to be sure there is at least a certain amount of a flag on the map
# at any given time, you can use the +f option to guarantee a certain
# number of a flag by repeating the option that many times. So to insure
# there are at least 4 Oscillation Overthrusters you would do the
# following, minus the # signs. Using "+f good" is the equivalent of
# doing +f for each of the good flags.

# cloaking
#+f CL
#+f CL

# stealth
#+f ST

# rapid fire
#+f F
#+f F

# laser
#+f L
#+f L

# guided missile
# +f GM
# +f GM
# +f GM

# shield
#+f SH
#+f SH
#+f SH

# Ricocet
#-f R

# Jumping
#-f JP

# colorblindness
#-f CB

# machine gun
#+f MG
#+f MG
#+f MG

# useless
#-f US

# shockwave
#+f SW
#+f SW

# quickturn
#+f A
#+f A
#+f A

# superbullet
#+f SB
#+f SB

# burrow
#+f BU

# velocity & thief flag fix
-speedtol 1.68

# Flag IDs. A - Quick Turn, OO - Oscillation Overthruster, F - Rapid Fire,
# MG - Machine Gun, GM - Guided Missile, L - Laser, R - Ricochet,
# SB - Super Bullet, ST - Stealth, CL - Cloaking, IB - Invisible Bullet,
# T - Tiny, N - Narrow, SH - Shield, SR - Steamroller, SW - Shock Wave,
# PZ - Phantom Zone, G - Genocide, JP - Jumping, ID - Identify,
# MQ - Masquerade, BU - Burrow, SE - Seer, TH - Thief, US - Useless.
# Bad Flags - CB - Colorblindness, O - Obesity, <- - Left Turn Only,
# -> - Right Turn Only, M - Momentum, B - Blindness, JM - Jamming,
# WA - Wide angle.


# Use +s to have the server generate a certain number of extra super flags
# and have them available at all times.

+s 16

# The server will have up to this many super flags at any time.

-s 4
I ENJOY THE TORTURE
___________________
orchid
Dev Godess
Dev Godess
Posts: 76
Joined: Sat Dec 07, 2002 6:07 pm

Post by orchid »

# advertise this server with the given address and port
-publicaddr derfaust.myftp.org:555
# port
-p 5155
looks like you forgot a 1?
elmer fudd
Private First Class
Private First Class
Posts: 109
Joined: Fri May 07, 2004 11:17 pm
Contact:

Post by elmer fudd »

dont forget to enabble -publiclist
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

you don't need -publiclist, the server knows where the list server is.

you only need -public and posibly -publicaddr
ImageJeffM
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

lol....for the love of all that is holy.....

that was the deal....my port assignment was wrong...(isnt it always the little things?)
Last edited by derfaust on Fri Jun 18, 2004 6:10 am, edited 1 time in total.
I ENJOY THE TORTURE
___________________
piglet
Private
Private
Posts: 1
Joined: Mon Jun 14, 2004 12:50 pm

I also need help in setting server on Linux

Post by piglet »

I tried to use what was wiritten here, but it didn't work for me. :-(
I try to set server on Debian. I installed bzflag-server from testing disribution.
I tried to use conf files,listed here, and create new one with www page as well.
starting bzfs -conf /... I recieve for example:

require UDP clients!
using speed autokick tolerance of "1.68"
and nothing more - my console is frozen

when I set -q option I get:

List server send failed: Connection timed out

I have no idea what to do...
Can you help?

piglet
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

dont forget to make sure your port assignments are right.....that includes when you are joining the game....
......now if could just figure out how rotate maps....lol...

can any of you admins give a hand witht that one??


thanks
I ENJOY THE TORTURE
___________________
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

how do i set up teams??.....i know there are several refrences in the .conf, but i can not get the right combo...

thanks....
I ENJOY THE TORTURE
___________________
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

how do i set up the config for teams?.....i wnat to have teammates....lol....co-op is fun!!

also...how do i set it to where a player could get dropped if they lag too much? how do i set up the warnings and all????


can any of you admins give a hand with that one??


thanks
I ENJOY THE TORTURE
___________________
Grumbler
Dev Monkey
Dev Monkey
Posts: 453
Joined: Wed Jul 09, 2003 3:06 pm
Location: Space

Post by Grumbler »

derfaust wrote:how do i set up the config for teams?.....i wnat to have teammates....lol....co-op is fun!!

also...how do i set it to where a player could get dropped if they lag too much? how do i set up the warnings and all????


can any of you admins give a hand with that one??


thanks
http://bzbb.bzflag.org/viewtopic.php?t= ... sc&start=0


look here.
.........you kids, get out of my tank...........
Death Barrel
Private First Class
Private First Class
Posts: 641
Joined: Fri Jan 03, 2003 3:26 am

Post by Death Barrel »

man bzfs
derfaust
Private First Class
Private First Class
Posts: 13
Joined: Wed Jun 09, 2004 8:44 pm
Contact:

Post by derfaust »

i did.....but most of it reads like japanease stereo instructions.....lol....i speak english so this would make reading japanease stereo instructions hard....lol.....i had already done a 'man bzfs' and i was able to learn a few more options through it....but not everything i wanted.... this is why i came to the forum...


sometimes you want simple exlanations for things....sometimes they work best....

dig......and thanks for all of the help gettin this sucker to work...this community ROCKS!!!...

and ....gotta love BZedit.... ill be putting up some nice maps soon.... rock!

now how does one auto-rotate maps in a BZflag server....?????


thanks again......
I ENJOY THE TORTURE
___________________
User avatar
learner
General
General
Posts: 270
Joined: Sun May 11, 2003 2:06 am
Location: Maryland
Contact:

suggestions?

Post by learner »

derfaust wrote:i did.but most of it reads like japanease stereo instructions.lol....i speak english so this would make reading japanease stereo instructions hard....lol.i had already done a 'man bzfs' and i was able to learn a few more options through it....but not everything i wanted.... this is why i came to the forum...

[snip snip]
If you have any suggestions on how to make the manual pages any more clear, feel free to make edits and submit them for inclusion. There are manual pages for all of the bzflag binaries available on-line at http://bzflag.bz/man/.

Don't need to be a progammer.. help with documentation is always welcome. Submit any changes -- large or small -- to any of the developers or to the http://sf.net/projects/bzflag/ Patches section.

Cheers!
Post Reply