Server Variables

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
User avatar
webstrand
Private First Class
Private First Class
Posts: 9
Joined: Tue Jun 07, 2005 2:40 am

Server Variables

Post by webstrand »

My problem is that when I type /set _wingsJumpCount 10 it doesn't save the variablet to the file i specifies by -vars vars.txt can anyone help me out here?
Last edited by webstrand on Thu Jun 09, 2005 6:59 pm, edited 1 time in total.
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

It's not supposed to save the change you made to the file. The purpose of having a vars.txt file is that on startup, the server will load any variables set by the vars.txt file into the server. I.E. if you typed -set _wingsJumpCount 10 into your vars.txt file, the next time you start up your server _wingsJumpCount would be set to 10. The syntax of a vars.txt file goes like this:

Code: Select all

-set _variableName value
User avatar
Teppic
Private First Class
Private First Class
Posts: 576
Joined: Mon Mar 07, 2005 10:00 pm
Location: The North Block

Post by Teppic »

Nice idea for remembering server settings though, new command '/saveset mysettings.txt'.
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

BZDB settings will be saved in the options
block if the map is saved from a client. vars.txt
is the old way to do it, and doesn't keep the map
and its settings together in one file.
User avatar
Teppic
Private First Class
Private First Class
Posts: 576
Joined: Mon Mar 07, 2005 10:00 pm
Location: The North Block

Post by Teppic »

So, to confirm, if I set the server up the way I like, then save it over the top of the existing map, the /set options will be written for me?
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

Teppic wrote:So, to confirm, if I set the server up the way I like, then save it over the top of the existing map, the /set options will be written for me?
Indeed.
User avatar
webstrand
Private First Class
Private First Class
Posts: 9
Joined: Tue Jun 07, 2005 2:40 am

Post by webstrand »

Ok, Thanks. But is there a way i can have my server save these variables to a separate file (i'm doing a lot of debugging right now)? :|
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Great Idea

Post by optic delusion »

This is excellent. I was just about to ask the same question.

You save save the map with a different name, instead of overwriting the old one. Then read the options block.
I tried it and it works.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
rkrumwiede
Private First Class
Private First Class
Posts: 5
Joined: Mon Jun 27, 2005 6:17 am

Variable

Post by rkrumwiede »

I continue to try to set variables and they do not function are some maps / worlds set to only work a certain way? I have looked thorugh most and cant determine what the difference is between .map and .bzw, I want to turn on rain and wings jumping to 5 and everything I try doesnt work. I can get in as admin and do a n then /set _raintype to snow but I dont get snow. I have a var.txt file in my conf file and car.txt has these variable in it for rain etc and none activate on bzfs startup. Thanks for any help you can provide
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Newb

Post by optic delusion »

That's a very strange post as a newb's first post. It's kinda hard to understand. you might want to add some additional info as to exactly where you are.
You are the one running the server right? Or you're an admin at another server? Which server? Are you sure you're an admin, or just a cop?

Syntax must be perfect. Your not putting the capital letters correctly. It should be /set _rainType snow
Notice the capital T
If your this new to setvars, I'd only do it when nobody was on the server, or you will make some people mad. Sounds like your gonna make your server owner mad, regardless.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
rkrumwiede
Private First Class
Private First Class
Posts: 5
Joined: Mon Jun 27, 2005 6:17 am

NewB Variables

Post by rkrumwiede »

Hi, thanks for the prompt reply. I own the server and host it on my own circuit. I am the admin and it says I am the admin and not cop when I log in through the game console or from bzadmin.exe. My vars.txt is listed here and appears to have the right Upper Lower combo.

-set _mirror white
-set _useLineRain 1
-set _skyColor gray
-set _rainPuddleColor white
-set _rainBaseColor white
-set _rainRoofs 1000
-set _rainType snow
-set _WingsJumpCount 10
-set _friction 7
end

my bzfs1.conf is included, thanks for your support and wisdom on this topic.

# 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 "It's not how good you are, it's how hard you try!"

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

# 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

# This option allows world objects to be randomly rotated. Only applies
# if a randomly generated world is used.

#-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.
#-dd
#-ddd
#-dddd

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

#-density 5

# It is possible to restrict bots and autopilot from being used on the server.
# This is accomplished with the following.

#-disableBots

# 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. You are allowed to specify more than
# one team flag in CTF games.

+f good
+f wg{10}
#+f OO
#+f OO
#+f OO
#+f GM{10}

# Flag IDs: Good: A - Agility, B* - Blue Team, BU - Burrow, CL - Cloaking,
# G - Genocide, G* - Green Team, GM - Guided Missile, ID - Identify,
# IB - Invisible Bullet, JP - Jumping, L - Laser, MG - Machine Gun,
# MQ - Masquerade, N - Narrow, OO - Oscillation Overthruster, PZ - Phantom
# Zone, P* - Purple Team, QT - Quick Turn, F - Rapid Fire, R* - Red Team,
# R - Ricochet, SE - Seer, SH - Shield, SW - Shockwave, ST - Stealth,
# SR - Steamroller, SB - Super Bullet, T- Tiny, TH - Thief, U - Useless,
# V - Velocity, WG - Wings
# Bad: BL - Blindness, BY - Bouncy, CB - Color Blindess, FO - Forward Only,
# JM - Jamming, LG - Lag, LT - Left Turn Only, M - Momentum, NJ - No Jumping,
# O - Obesity, RC - Reverse Controls, RO - Reverse Only, RT - Right Turn
# Only, TR - Trigger Happy, 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

# 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

# Server will listen for and respond to "pings" (sent via broadcast) on
# the given interface. The server uses the first interface by default.
# This is the TCP/UDP/IP address the server will listen on.
# You probably don't need to use this unless your server has multiple
# interfaces and doesn'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 600

# 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,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 5

# 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. Default port is 5154.

#-p 5154

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

-password AuniQueOn3

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

#-poll vetoTime=60

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

#-poll votePercentage=51

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

#-poll votesRequired=6

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

#-poll voteTime=60

# 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 "Some wizbang BZFlag server - I need to read instructions"

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

# -publicaddr bzflag.rklabs.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

# You can set up a server for replay mode by entering this option

#-replay

# This option sets the recording buffer to the specified amount of megabytes.

#-recbuf 2

# This option sets the directory to look for and save recordings.

#-recdir "C:\"

# 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

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

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

# 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 5
-sl L 5

# This sets the amount of time in seconds that is required to pass between
# two identical messages sent.

# -spamtime 10

# This sets the amount of times to warn spammers (see -spamtime) before they
# are kicked.

# -spamwarn 3

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

-srvmsg "Welcome to RKLABS BZ Flag Server..You may have a few allies!"

# Bad flags are automatically dropped after this many seconds.

-st 10

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

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

#-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 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/ionian.bzw"

# Use this format for Windows
-world "C:\Program Files\BZFlag2.0.2\worlds\ionian.bzw"



Thanks again
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

should start a new thread

Post by optic delusion »

I'm running that same map right now.
Dont have time to go over it all right now.
but i see at the very end your using two different worlds. Are you mac or windows?
#comment out one of them.
You might consider a simpler map as your starter map.

Can't believe you got this far without making a single post!
Make your next post in a brand new topic.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
rkrumwiede
Private First Class
Private First Class
Posts: 5
Joined: Mon Jun 27, 2005 6:17 am

Variable

Post by rkrumwiede »

I am an IT director by trade and love computers and systems. I am pety sharp on this sort of thing but some of the things I have read indicate my settings hsould work but they dont, I interpreted the mac section was needed fro the mac client, I suppose this is for a BZ server hosted on a mac, I have a mac mini I may use for this as well, I am thinking I will run multiple systems so I don't need to change my conf files and maps. I can just join another one of my systems. I look forward to chatting with you later and helping others.

Love you hobbies as well, take care.
Guest

Post by Guest »

Just take out the last two lines of the conf:
# Use this format for Windows
-world "C:\Program Files\BZFlag2.0.2\worlds\ionian.bzw"
Also find the part where it says:
# simple debug
#-d
# and more complex debugging.
#-dd
#-ddd
#-dddd
Delete all that and just put:
-dddd
.

Hope that helped :)
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

debug

Post by optic delusion »

Yeah, you had no debugging at all. You must use one of the four debug levels. Otherwise it seems OK.
As an alternative to using a setvars file, you can comment that line out, and put your vars at the very end of your conf.

Here's a head start on some other vars for that map.

-set _noClimb 0 - this makes it so you don't get stuck on hills.

-set _gravity -10.0 Gravity must ALWAYS repeat ALWAYS be a negative number. the gravity on this map should be set so a jump from the one pathway, lands you on top of the parthenon. this gravity also works with the bounce-pad
-set _jumpVelocity 25-gravity and jumpVelocity work together.

-set _muzzleHeight 1.6 --default muzzleHeight is 1.57 I found with default, it's nearly impossible to get inside the parthenon. a tiny raise here made it real easy to get inside. It also allows shots to go over the castle ramparts.

-set _shotsKeepVerticalVelocity 1 set one for on, zero for off
this isn't necesary. but has proven very popular.


You can comment out the password line too, it's not really needed, but if you do use it you may have to enter it like this during play for FULL admin access. It's only needed if you want to give it to others, so they can play admin.
/password AuniQueOn3 -enter from your client.
and next time you post your conf, be sure to delete the password.



One other thing, it would be very polite to tell The Purple Panzer that you are using his map. I'm assuming you got it from his website. He'd love to hear from you.
If you go public with your server, It's almost a requirement to let the mapmaker know your using it.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
rkrumwiede
Private First Class
Private First Class
Posts: 5
Joined: Mon Jun 27, 2005 6:17 am

Debug follow up

Post by rkrumwiede »

Thanks fot the tips! I especially like the vars at the end of the conf, that is definitely the way I will go. I will let him know I am using it once I get all the good stuff ironed out, I probably wont go public until I learn more about all the system. I was using the gravity to help slide the tanks around the corners making a icey type game with snow on and a white floor, this is only once in a while so I will creat a conf with those options in it for later use and save it as a seperate cmd file and conf combo. Thanks again for all you help.

PS. That PW was a replacement for the original that I actually sue, but thanks for the warning
rkrumwiede
Private First Class
Private First Class
Posts: 5
Joined: Mon Jun 27, 2005 6:17 am

Variable not taking from client of conf file

Post by rkrumwiede »

Hey everyone, I habve taken the advice from this thread and implemented all of the needed changes and to much success. The latest chalenge and the core reason for opening this thread was to -set _rainType Frog, I have had requests for this and was trying to get it working. Thanks to many of you, ican now get rain to actually work but I cannot change the type, here is the config section

# -set _mirror white
-set _useLineRain 4
-set _skyColor black
-set _rainPuddleColor white
-set _rainBaseColor white
-set _rainRoofs 1000
-set _rainType frog
# -set _WingsJumpCount 1
# -set _friction 7
-set _tankSpeed 35
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

passed over

Post by optic delusion »

It's so basic that we sometimes pass right by it.

the second paragraph in the conf

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

set it like this
-a 50 50

This won't make the frogs work though,
You gotta be doing this for kids.

There's something like sixteen seperate vars for rain, try using frogs first thing after you start the server, with no other rain vars set.
If that doesnt work, I'm stumped. I never reallly played with rain vars.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Post Reply