LAN Server
- Sniper752
- Private First Class
- Posts: 192
- Joined: Tue Dec 15, 2009 8:43 pm
- Location: TRAVL Headquarters, Orbiting Mars in the year 2236
LAN Server
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
Thanks!
Sniper752
[center]::|:|::|Sniper752|::|:|::
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
Re: LAN Server
The easiest way to do that is use the `-password` command-line option. E.g:
Then, when you open BZFlag and connect to the server, type `/password 123456` in the console to be able to use all slash commands.
Code: Select all
bzfs -passwd 123456
Re: LAN Server
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.alezakos wrote:The easiest way to do that is use the `-password` command-line option. E.g:
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..........
And random bans..........
Re: LAN Server
Local groups still work, but they still require global authentication to work.
- Sniper752
- 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
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]
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
Re: LAN Server
Do you run your bzflag server from within bzflag (start server option) or do you use the terminal?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?
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
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
- Sniper752
- 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
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
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]
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
Re: LAN Server
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
Re: LAN Server
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
- Sniper752
- 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
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]
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]
Re: LAN Server
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>"
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
"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
- Sniper752
- 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
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]
Map Maker
Avid Airsofter
Owner: Hosting.BZAddict.net ports 5242 and 5243
Admin: bzsupreme.webarts.bc.ca[/center]