Page 1 of 1

multple maps in 1 conf file

Posted: Mon Mar 12, 2007 2:09 pm
by Macint
So this is how i start all of the maps now

so i start lots of shell prompts (terminal windows)

and i put in the code for each map in a seaparet window.

and it works
now after i while you get a lot of windows filing up the screen

so what i tried to do is have al that code in 1 conf file

this is how it looks

Code: Select all


-helpmsg /var/www/bzflag/help/rules.txt rules
-helpmsg /var/www/bzflag/help/hosting.txt hosting
-helpmsg /var/www/bzflag/help/maps.txt maps
-helpmsg /var/www/bzflag/help/chat.txt chat
-helpmsg /var/www/bzflag/help/admin.txt admins


# Maps


-world /var/www/bzflag/maps/boggie.bzw -p 5552 -publicaddr mlinuxserver.no-ip.org:5552 -public "Boggie By: Rietzen" 


 -p 5555 -publicaddr mlinuxserver.no-ip.org:5555 -public "Cubic made by: Max Wells" -world /var/www/bzflag/maps/Cubic.bzw -fb -autoTeam -loadplugin /var/www/bzflag/plugins/fair/fairCTF.so,0.25:2:3

-p 5154 -publicaddr mlinuxserver.no-ip.org:5154 -public "J-P Made By: Jack BZ" -world /var/www/bzflag/maps/ny_jp.bzw -srvmsg "##### Welcome #####" -fb -autoTeam -mts 10


so and when i start it it only show 1 server.


???????

dont undersatnd


thx for all help

Macint.

Posted: Mon Mar 12, 2007 2:32 pm
by Legolas_
If its all in the same conf you can not ( i think..) run 2 servers. You would need to have 2 different configs. and shell prompts in your terminal.

Besides, if you are on Mac with terminal, cant you minimize the screens??

Posted: Mon Mar 12, 2007 3:12 pm
by Macint
well the server is on ubuntu



but how does louman.norang they got like hundred servs...


ahh wel thx anyway!

Posted: Mon Mar 12, 2007 4:51 pm
by JeffM
each copy of bzfs runs one map, on one port.

you have to run an instance of bzfs for each one.

if you want to share configs between them, then you have to take the port and map info out of the config, and specify it from the command line.

you can not have more then one port, or more then one map in a single config file, because a single server can not run more then one map or more then one port.

The OS of the server does not mater.

Many of the hosts that run a number of servers use a config and a shell script to setup servers.

Posted: Mon Mar 12, 2007 7:06 pm
by Tanner
You can use the screen command to set up different terminal screens which you can detach from and they will still run (plus you can come back to them later). Or I guess you could run it in the background.

-Tanner

Posted: Mon Mar 12, 2007 8:48 pm
by Macint
k thx (psst i alredy do that screen thing)

well would it be possible to do a Cron job of this? like a demon.

Posted: Mon Mar 12, 2007 8:55 pm
by joevano
Macint wrote:but how does louman.norang they got like hundred servs...
Technically, it's only 55 on 3 different boxes ;)

Posted: Mon Mar 12, 2007 10:35 pm
by CannonBallGuy
Macint
I would assume they use create a new screen for each bzfs instance.

Code: Select all

man screen

Posted: Mon Mar 12, 2007 10:47 pm
by macsforme
Yes, you can specify it like:

Code: Select all

./bzfs -p 5154 -publicaddr your.server.com:5154 -conf main.conf
./bzfs -p 5155 -publicaddr your.server.com:5155 -conf main.conf
although I doubt that you want completely identical servers on multiple ports, so you'd probably want more options. Alternatively, you can utilize -conf multiple times:

Code: Select all

./bzfs -conf main.conf -conf server1.conf
./bzfs -conf main.conf -conf server2.conf
I actually used -conf three times for a server I ran once.