Server in XP.

Place for people to discuss public servers, and also for admins to lay out the details of their servers
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Server in XP.

Post by Sir Lance-A-Lot »

Hello.
I am trying to make a server in Windows XP but it doesnt work.
I have a .conf file, and a batch file to run it. When i run the batch file, it opens a command prompt window that says "Starting BZFlag Server" , but then an error window pops up (see attachment for picture) saying "Windows cannot find
'-admsg'. Make sure you have typed the name correctly, and then try again." (-admsg is replaced with something new when I disable that option in the .conf file) Is there something I am doing wrong? Or should I open the server a different way?
All help appreciated.
Thanks. :wink:
Attachments
error 1.JPG
Error Window
(14.5 KiB) Downloaded 15 times
User avatar
bamf.
Private First Class
Private First Class
Posts: 190
Joined: Mon Dec 09, 2002 2:31 pm
Location: New York
Contact:

Post by bamf. »

Looks like you have a switch set up wrong, post the details of your bzfs script.
It's a good idea to always carry two sacks of something when you walk around. That way, if anybody says: Hey, can you give me a hand? You can say: Sorry, got these sacks.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

and how are you starting bzfs, what command line are you running? or are you using a shortcut. It looks like your using a shortcut and put some commands inside the quotes.

to start with a config file via normal command line it's bzfs -config YOURFILE.CFG
ImageJeffM
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

GUI

Post by Sir Lance-A-Lot »

Well actualy im using the BZFlag Server GUI since im kinda new to the whole thing. I used it to generate a batch file which i saved to the desktop. I also generated a .conf file from it and saved it to the desktop. How do I start from a command line exactly? (should I use "run" or the "command prompt") And what exactly should I type in? [like:] \path\to\bzfs\ -config MYFILE.CFG?
post the details of your bzfs script.
what :?:
My conf. file?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

you would CD to your bz dir
then do bzfs -conf MYFILE.CFG
ImageJeffM
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

K

Post by Sir Lance-A-Lot »

I typed in the run window:
"C:\Program Files\BZFlag1.10.6\bzfs.exe" -conf SERVER.CFG
And it opened this window with no information.
Attachments
bzfs1.JPG
(15.41 KiB) Downloaded 12 times
User avatar
Viper
Private First Class
Private First Class
Posts: 72
Joined: Thu May 06, 2004 2:14 am
Location: Titusville, Florida
Contact:

okok

Post by Viper »

GO TO:

RUN > type in cmd

CD program files/bzflag1.10.* press enter

bzfs -conf yourconf.conf


REPLACE * with you bz version or you bzflag folder (if you made it something else).
- viper.pimpi.org
- 5159
- email: drugskill@gmail.com
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

Ok
Now i got sumwhere but a new problem has arisen.
Attachments
bzfs2.JPG
(33.92 KiB) Downloaded 14 times
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

Hey
Got it hooked up a little now.
Take a look at the attachment.
I think something is wrong in my .conf file.
Should I post it?
Attachments
bzfs first half.JPG
(48.53 KiB) Downloaded 11 times
bzfs second half.JPG
(38.97 KiB) Downloaded 10 times
User avatar
Viper
Private First Class
Private First Class
Posts: 72
Joined: Thu May 06, 2004 2:14 am
Location: Titusville, Florida
Contact:

Hmm...

Post by Viper »

I may be wrong but i think you need to put ur ip instead of 0.0.0.0:5154
- viper.pimpi.org
- 5159
- email: drugskill@gmail.com
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

k

Post by Sir Lance-A-Lot »

I have it running now but only localy.
In the .conf file, I have -publicaddr set to simplywoodinc.com:5154.
This is not listed in the server list.
But, when i type in localhost, port 5154, it connects to my server with all my settings. When I type in simplywoodinc.com, port 5154, it says "Error Connecting To Server". The screenshot is of the cmd window running the server as simplywoodinc.com.
Here is my .conf file:

Code: Select all

# 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 "This Server is under heavy construction."

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

-c

# Automatically assigns players to teams when they join so that teams are 
# evenly matched in number of players.  Players are placed on teams with 
# lowest number of players first, then those with the lowest scores or 
# kill ratios.

#-autoteam

#-b

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

#-ban "192.168.1.5,10.10.2.*,10.2.*.*"

# This option tells the server where to store the banlist. The banlist will
# be loaded from this file when the server starts (if the file exists) and
# written back to the file when someone gets banned or unbanned. If this
# option isn't used the banlist will not be saved.

-banfile mybanfile

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

#-badwords /conf/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

# By default, all filtering is aggressive, matching much more than what
# is strictly listed in a -badwords file for convenience. Providing this
# option will make the -filterCallsigns and -filterChat comparisons
# exact match only.

#-filterSimple

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

#-c

# Enables capture-the-flag style game with a balanced 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.
-d
-d
-d

# This option controls the building density on random worlds(1-10) default is 5 

-density 5

# There are two sets of flags. Flags that must be in the world at all times
# and flags that may get generated randomly in addition. +f specifies flags that
# must be there and -f specifies flags the should not be randomly generated.

# 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 OO
#+f OO
#+f OO
#+f OO
#+f GM{10} 

# 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, LT - Left Turn Only,
# RT - 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 bad
#-f JP
#-f R

# This option allows for flags on box buildings.

-fb

# This option allows tanks to spawn on buildings. This is especially useful
# as tank spawn locations are now are calculated on the server without the
# advantage of knowing where shots are.

#-sb

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

# server-specific variables can be modified in-game using /set varname value

-vars vars.txt

# 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 used 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.

# This option specifies a help file that will be displayed when the player 
# types /help name.  Files can be a max of 10 lines long each.

#-helpfile jump.txt jump
#-helpfile shockwave.txt shockwave

#-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 350

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

-maxidle 60

# 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 10

# This allows for max player by team.
# The order is rogue, red, green, blue, purple,observer

#-mp 4,4,4,4,4,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 10

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

#-mts 250

# Set to not use a UDP connection for players. You typically do NOT want to
# do this (UDP is good!)

#-noudp

# The server will listen on this port.

-p 5154

# Sets the admin password for the server. CHANGE THIS!

-password *edited out*

# 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 "Test Server by Sir Lance-A-Lot. Work in progress."

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

-publicaddr simplywoodinc.com:5154

# 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.
#

#-publiclist <list-server-url>

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

#-q

# This makes most shots ricochet.

+r

# Hunt the rabbit game is activated with this option.  Use only one of these
# options.

# Choose rabbit based on score.
#-rabbit score

# Rabbit is chosen by whoever kills the rabbit.
#-rabbit killer

# Or you can choose the rabbit randomly.
#-rabbit random

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

# You can specify a file so that people can type /report to report problems
# on the server.  The reports are logged in this file.

-reportfile report.txt

# You can also use this option to cause the /report to trigger a command 
# as well as, or instead of logging to a file.

#-reportpipe command

-requireudp

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

#+s 20

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

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

-sa

# This allows you to limit the number of shots from a particular flag.

#-sl GM 20
#-sl L 20

# This is the server welcome message.  Please change it.  You can use \n
# to designate new lines.

-srvmsg "Welcome to Sir Lance-A-Lot's server! \n Please play fair, no cheating and no swearing"

# 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.

-t

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

# This option allows you to tell the server how long a team flag remains 
# before it is reset after the last player on a team leaves.  The default
# is 30 seconds.

-tftimeout 30

#-time 3600

# This option requires a timed game to be started using the /countdown 
# command to start a timed game.  Default is when first player joins.

-timemanual

# By default if a player kills a teammate, he dies too, this option turns this 
# off.  Used mostly for capture the flag style games.

#-tk

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

#-tkkr 30

# This specifies the number of seconds in which a poll can be vetoed.

#-vetoTime 15

# This specifies the percentage of people required for a successful vote.

#-votePercentage 51

# This is the number of voters required to hold a poll.

-votesRequired 4

# This is the length of time that players have to vote.

-voteTime 60

# This option changes the size of random maps.

#-worldsize 800

# This specifies the world filename.

# Use this format for *nix and Mac
#-world "/usr/games/bzflag/megadome.bzw"

#Use this format for Windows
#-world "c:\mymaps\megadome.bzw"

Is there something I should change?
Attachments
bzfs4.JPG
(59.4 KiB) Downloaded 9 times
User avatar
Viper
Private First Class
Private First Class
Posts: 72
Joined: Thu May 06, 2004 2:14 am
Location: Titusville, Florida
Contact:

Yes...

Post by Viper »

Yes.... thats because you set it up as a local host. If your running off comp is simplywoodinc.com running off your comp too? change simplywoodinc.com to your ip and it should work...
- viper.pimpi.org
- 5159
- email: drugskill@gmail.com
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

Also, make sure you have the port open.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

You know of any free port scanners?
I used to have one but lost it. :cry:
User avatar
|tim|
Private First Class
Private First Class
Posts: 71
Joined: Sun Sep 28, 2003 4:45 am
Location: Bakersfield, California
Contact:

Post by |tim| »

I use Nmap for a port scanner, I really like it and it runs for Linux, Windows, and a lot more other OS's. It's also free too :D

http://www.insecure.org/nmap/
Image

~Bring the Pain!~
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

K i ran a scan and found that ports 5150-5160 are all closed. Is there any way I can open one of them?
Image
User avatar
|tim|
Private First Class
Private First Class
Posts: 71
Joined: Sun Sep 28, 2003 4:45 am
Location: Bakersfield, California
Contact:

Post by |tim| »

I use a router so it usually blocks most of my ports unless I manually open them.

Or if you have a firewall running it usually blocks the ports, you can tell it to not block them. My dad runs ZoneAlarm and it asks you when you're about to use that certain port if you would like to let traffic through or not.

NOTE: I don't really have a bunch of knowledge on this topic though.
Last edited by |tim| on Wed Jun 30, 2004 11:50 pm, edited 1 time in total.
Image

~Bring the Pain!~
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

it depends on what you use to close them.

do you have a router, or some sort of firewall?
ImageJeffM
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

I have a Microsoft router that shares the Verizon DSL (WAN)

It does not have many configuration options for the firewall - the only thing I can do is turn the firewall on or off. Another problem I might have, is Verizon might block the ports I need to use. Anybody else running a server w/ Verizon DSL ??

I know Verizon blocks TCP/IP port 80 which is the HTTP Protocol but I think BZFlag uses UDP instead of TCP/IP.

Any other suggestions?

Thanks,
Sir Lance-A-Lot
User avatar
Viper
Private First Class
Private First Class
Posts: 72
Joined: Thu May 06, 2004 2:14 am
Location: Titusville, Florida
Contact:

hehe

Post by Viper »

i got one up off my comp just now :) i can send you a bat and make you a conf just tell me what you need. i say eather firewall or conf prob.
- viper.pimpi.org
- 5159
- email: drugskill@gmail.com
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

you will need to set up a static route for the port you wish, if it dosn't have that level of controll then it may not work for a game server.
ImageJeffM
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

OK - when you say "static route" do you mean setting up "port forwarding" in the router? Is it possible to have a game server with Verizon DSL (which is Dynamic IP) ? To "Viper" - if you can send me the conf file, and bat - that'd be great. I'll post my specs. Thanks, Sir Lance-A-Lot
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

Post by Sir Lance-A-Lot »

ok Viper.
public address: 151.201.0.38:5154 ~unsure how to open this~
public description: Test Server by Sir Lance-A-Lot
free-style mode
10 shots
random map for now
10 peeps
no limit on observers
rougues are allowed
teamkilling kills the killer and the victim
password *(mypass)*
16 superflags
30 regular flags?
add messege: This Server is under heavy construction.
flags on buildings
jumping
richocet
lagdrop: 3
lagwarn: 300
idle: 300
allow antidote flags
opening messege: "Welcome to Sir Lance-A-Lot's server!
\nPlease play fair, no cheating and no swearing"


anything else?
User avatar
Sir Lance-A-Lot
Private First Class
Private First Class
Posts: 503
Joined: Tue Jun 29, 2004 12:49 am
Location: Amongst my Computers
Contact:

firewall

Post by Sir Lance-A-Lot »

The firewall is disabled.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

yeah it can be called port forwarding. YOu need to tell it to send packets from the outside to a specific internal computer.
ImageJeffM
Post Reply