LAN Server

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
User avatar
Sniper752
Private First Class
Private First Class
Posts: 192
Joined: Tue Dec 15, 2009 8:43 pm
Location: TRAVL Headquarters, Orbiting Mars in the year 2236

LAN Server

Post by Sniper752 »

So lately, I've been playing a lot of BZF with some friends on my LAN. Problem is, I'd like to be able to use regular server commands to change bullet speed and other variables. Anyone know how I might go about doing that?
Thanks!
Sniper752
[center]::|:|::|Sniper752|::|:|::
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
alezakos
Private First Class
Private First Class
Posts: 82
Joined: Thu Sep 16, 2010 1:24 pm

Re: LAN Server

Post by alezakos »

The easiest way to do that is use the `-password` command-line option. E.g:

Code: Select all

bzfs -passwd 123456
Then, when you open BZFlag and connect to the server, type `/password 123456` in the console to be able to use all slash commands.
User avatar
mahem1
Private First Class
Private First Class
Posts: 91
Joined: Thu Jan 14, 2010 2:18 am
Location: Antarctica

Re: LAN Server

Post by mahem1 »

alezakos wrote:The easiest way to do that is use the `-password` command-line option. E.g:
The problem is that anyone who can read logs or guess your password now has admin access. Which isn't to bad if this just a local server.
What would be idle would be to use a local group, but I believe that those are obsolete.
The best way is to set up a global group and then just include the permissions file when starting your server .http://wiki.bzflag.org/Setting_up_a_group_file
Lag makes me miss all of the good stuff.
And random bans..........
Image
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: LAN Server

Post by blast »

Local groups still work, but they still require global authentication to work.
"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
Sniper752
Private First Class
Private First Class
Posts: 192
Joined: Tue Dec 15, 2009 8:43 pm
Location: TRAVL Headquarters, Orbiting Mars in the year 2236

Re: LAN Server

Post by Sniper752 »

Well, alezakos' idea seems like the easiet, but I'm not figuring it out. Do I type that in the map file? or like in a terminal window? (btw i'm on MacOS) If its the map file, where in the file? if its in the terminal, what directory do I need to be in? and what command?
[center]::|:|::|Sniper752|::|:|::
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: LAN Server

Post by JeffM »

-password is a command line option, you enter it when you start bzfs
ImageJeffM
alezakos
Private First Class
Private First Class
Posts: 82
Joined: Thu Sep 16, 2010 1:24 pm

Re: LAN Server

Post by alezakos »

Sniper752 wrote:Well, alezakos' idea seems like the easiet, but I'm not figuring it out. Do I type that in the map file? or like in a terminal window? (btw i'm on MacOS) If its the map file, where in the file? if its in the terminal, what directory do I need to be in? and what command?
Do you run your bzflag server from within bzflag (start server option) or do you use the terminal?

Here is what you can do: Open a terminal, then type `cd /directory/of/your/map/file/here` (change to the directory of your map file) and press enter. After that, type bzfs -world file_name.bzw (change to the name of your map). Then add any of the options found at http://wiki.bzflag.org/BZFS_Command_Line_Options you want. (The ones you're going to use are probably going to use are -c +f good -fb -ms 5 +s 20). Then add -password YOUR_PASSWORD. So, you should have:

Code: Select all

bzfs -world filename.bzw -c +f good -fb -ms 5 +s 20 -passwd YOUR_PASSWORD
Press Enter and connect to your new server.

And if you want to permanently change variables, change your map file by adding the following to it:

Code: Select all

options
    -set _tankSpeed 36
    -set _shotSpeed 120
end
Change whatever is after -set to the name and the value of the variables you want to change.
User avatar
Sniper752
Private First Class
Private First Class
Posts: 192
Joined: Tue Dec 15, 2009 8:43 pm
Location: TRAVL Headquarters, Orbiting Mars in the year 2236

Re: LAN Server

Post by Sniper752 »

normally I start my server through the client GUI, though I have started it through terminal before a long time ago (and I remember it took me a day or to to figure it out)
So my map is in user/bzworlds/quickshot.bzw
in terminal I typed:

cd bzworlds

then

bzfs -quickshot.bzw -passwd 123

It keeps saying that "bzfs" is an unknown command
[center]::|:|::|Sniper752|::|:|::
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
alezakos
Private First Class
Private First Class
Posts: 82
Joined: Thu Sep 16, 2010 1:24 pm

Re: LAN Server

Post by alezakos »

First of all, you should -world quickshot.bzw, not -quickshot.bzw. As for the unknown command, I can't help you since you're on a Mac. Try /path/to/bzfs -quickshot.bzw -passwd 123, changing /path/to/bzfs with the path to the bzfs application
User avatar
macsforme
General
General
Posts: 2069
Joined: Wed Mar 01, 2006 5:43 am

Re: LAN Server

Post by macsforme »

You will want to specify the full path to bzfs and the full path to your world file. Something like:

Code: Select all

/Applications/BZFlag-2.4.2.app/Contents/MacOSX/bzfs -world ~/user/bzworlds/quickshot.bzw -password 123456
User avatar
Sniper752
Private First Class
Private First Class
Posts: 192
Joined: Tue Dec 15, 2009 8:43 pm
Location: TRAVL Headquarters, Orbiting Mars in the year 2236

Re: LAN Server

Post by Sniper752 »

ok, but I need a command to type in before that so it knows what to do with the paths and variables i typed in. And what directory do i need to be in when i type this in?
[center]::|:|::|Sniper752|::|:|::
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: LAN Server

Post by joevano »

Not sure what you mean by your reference to a command before this to type in. You can type that command in directly "as is" in any directory and it will start your bzflag server as long as your bzflag version is 2.4.2 and it is in you applications folder AND your map file is in your home directory in usr/worlds. If that is not the case adjust the "/Applications/BZFlag-2.4.2.app/Contents/MacOSX/bzfs" and "~/user/bzworlds/quickshot.bzw" accordingly.

PS. the "~" is a shortcut that means "the currently logged in users home (personal) directory, usually something like /home/<username>"
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
User avatar
Sniper752
Private First Class
Private First Class
Posts: 192
Joined: Tue Dec 15, 2009 8:43 pm
Location: TRAVL Headquarters, Orbiting Mars in the year 2236

Re: LAN Server

Post by Sniper752 »

Ok, I think I was typing the paths wrong earlier... Got it now. Thanks!
[center]::|:|::|Sniper752|::|:|::
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
Post Reply