Help with local server

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
Acehart
Private
Private
Posts: 2
Joined: Fri Jun 11, 2010 7:33 am

Help with local server

Post by Acehart » Sat Jul 09, 2011 9:15 pm

I run local servers alot to help me practice and get better at this game, so I would like to know a few things: 1) how to make better, more effective bots that actually jump and collect flags rather than the regular bots in -solo, 2) how to host local servers on custom maps, because I save the world from the public server and then try to put the bots on there for practice, but they never show up and then the server forces a disconnect, so I don't know what I am missing here, and 3) how to disable/enable teams so that I can have red v. blue, red v. green, etc. matches, as well as how to add rogues to my custom server. I use the local server to try to get better (and have something to play when it's too laggy on my end to join public matches) and I just want to know how to have the best experience possible.

User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 765
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Help with local server

Post by allejo » Sun Jul 10, 2011 6:22 am

1) You really can't... Unless you have a lot of clients on autopilot, which isn't ideal. Autopilot bots are a bit better than bots because they do jump and are a bit smarter.

2) When you run bzfs, load your own world with the -world command. Should look like:

Code: Select all

bzfs -world /path/to/YourSavedWorld.bzw
3) In the saved map file, open it and look for the "Options" block and add:

Code: Select all

-mp 3,3,3,3,3,10
What does -mp and those numbers mean?

-mp = max players
-mp <rogue players limit>,<red players limit>,<green players limit>,<blue players limit>,<purple players limit>,<observer players limit>
Here's my personal website and my open source projects are available on GitHub; I work on a lot of cool things.

Image

User avatar
Pimpinella
Private First Class
Private First Class
Posts: 96
Joined: Wed Nov 19, 2003 4:50 pm
Location: Jever, NDS, Germany

Re: Help with local server

Post by Pimpinella » Sun Jul 10, 2011 11:18 am

Did you start your server from the client menu so far? If so, learn how to start it from the command line. A starting point for that would be here:
http://my.bzflag.org/w/Creating_a_server and here:
http://my.bzflag.org/w/Sample_conf

If you still don't get your local server working you at least should get an error message on your commandline that will help you to figure whats wrong.

Supplementary to what allejo wrote:

3) There's not always an -mp statement in the saved world file. If there's none, you either can add it there OR you can have it in your server config file. To avoid unexpected results consider having only one location for this, so either server configuration or world file.
Then note, that you in CTF worlds you need to have a base for each team you want to allow. If you have a red and a green base in your map you cannot allow blue tanks. Rogues would be allowed. If you still want different colors you need to open your world file, find where the bases are defined and change the color to what you like them to.

Pimpi

User avatar
fox in the fog
Private First Class
Private First Class
Posts: 231
Joined: Fri Aug 06, 2010 7:21 am
Location: Italy, Planet Earth

Re: Help with local server

Post by fox in the fog » Wed Aug 17, 2011 1:42 pm

Well, i tried to start a server with the command line (I do it all the time for test my maps) doing this:
bzfs -world hix.bzw -a 0 0 and that worked fine... I start bzflag and begin play "with myself" to discover errors on maps. The problems is when i start the game doing: bzflag -solo 3 on the command line...
when i connect to localhost 5154 the server "unexpectedly disconnect" (see attachment) What can I do?
Fox
Attachments
bzfi0092.png
(529.99 KiB) Not downloaded yet
no, there's nothing here. nope.

User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 765
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Help with local server

Post by allejo » Thu Aug 18, 2011 12:26 am

Fox in the Fog, run bzfs with -dd and post any errors that appear when you join with your bots. You can't really get much information from "Server has unexpectedly disconnected"
Here's my personal website and my open source projects are available on GitHub; I work on a lot of cool things.

Image

User avatar
fox in the fog
Private First Class
Private First Class
Posts: 231
Joined: Fri Aug 06, 2010 7:21 am
Location: Italy, Planet Earth

Re: Help with local server

Post by fox in the fog » Thu Aug 18, 2011 10:38 am

Sorry... now it works. I don't know why; however there aren't any errors running bzfs with -dd :)
Thank you so much
no, there's nothing here. nope.

Post Reply