Page 1 of 1

Easyer server hosting on mac... (ALL MAC USERS READ!!!)

Posted: Wed May 04, 2005 8:14 pm
by BinarySpike
Ok, I'm new with BZFlag so this might be a start to logging and map rotation.


Anyway, I hated having to copy and paste the code that I wanted executed so I simply made a script that did this for me.
(test to get libcurl installed)
(please note this is ALL in terminal... in a tcsh shell)

I made a .command file that you just double click and voila! your server starts!

Here's what to do (full version):
1. Open a Teminal window.
2. Drag bzfs into the window.
3. Type (or copy this) " -conf " (with spaces) into the window.
4. Make, or find, a .conf file you want to use.
5. Drag the .conf file you made into the window.
6. copy all this.
6.5 this is what it should basicly look like:
/path/to/bzfs -conf /path/to/the.conf

7. Now, create a normal text file (NOT .rtf!!! YOU MUST USE .txt)
7.25 to do this open TextEdit.
7.5 Now in the menu select Format->Make Plain Text.
7.75 Or instead of step 7.5 just hit Shift-Command-T.
8. Now paste the bzfs command into the text file
9. Save it as a file anywhere on your hardrive.
10. Open Terminal again. (get a new terminal window)
11. Type "cd " into the new terminal window.(with space)
12. Drag the Text file you created into terminal window.
13. delete the Text file name, like so:
/path/to/text/file.txt (delete the file.txt part but not the '/' before it)
/path/to/text/ (that's what it should look like)
14. hit enter/return
15. rename your text file's extenstion to .command, like so:
"File.txt" to "File.command"
16. type "chmod a+x File.command" into terminal window
17. hit enter
:D :D :D :D :D :D

Now, double click on your File.command to launch terminal and execute the script.



Here's the short version:
Here's what to do (short version):
1. Make a plain text file and put whatever commands you run in terminal in it.
1.5 Open terminal.
2. cd yourself into the file in which it is.
3. Re-name your plain text file to whatevername.command
4. type "chmod a+x whatevername.command" into terminal window
4.5 hit enter.
5 double click on file to run it.
:twisted: :twisted: :twisted: :twisted: :twisted:

note: the short version needs somebody that knows what there doing!!



Please post questions you might have!!!
(this might even be sticky worthy :))

LibCurl -ing

Posted: Tue May 17, 2005 10:44 pm
by optic delusion
What is (test to get libcurl installed) ?

It's the only part of the post I didn't understand.


Edited here--
Oh, forget it! took me all of thirty seconds to figure it out. Sherlock is good for some things.
http://curl.haxx.se/mail/archive-2004-01/0050.html[url]

NOTE : libcurl is only needed if you're using CVS builds. Not needed at all to run a server

Hey

Posted: Tue Nov 22, 2005 5:30 am
by Arno
I dont understand step 6 and step 6.5
and step 8 to what to copy( i mean what command)

Posted: Tue Nov 22, 2005 5:35 pm
by Spazzy McGee
i used to do this, but i found an even easyer way. i have made an applescript to do it insted.

It lists a folder of conf files, and you select the one you want - so if you use more than one you can switch easily.

i will post it if anyone is interested.

Posted: Wed Jun 21, 2006 1:22 am
by Legolas_
Spazzy please post it. I am also trying to make an applescript but i dont know how to tell application terminal to run BZFS.command
If you know how, just tell me that instead of posting the hole thing.

Thanks

-Lego

Posted: Wed Jun 21, 2006 6:19 pm
by Xalendare
This rocks! Thanks much BinarySpike (although I will take a look at that applescript if you post it, Spazzy.)

Xalendare

Posted: Wed Jun 21, 2006 8:25 pm
by Legolas_
Xalendare
I have made an application called bzlauncher. Please check it out at www.bzlauncher.bzfusion.net

Posted: Wed Jun 21, 2006 9:51 pm
by Spazzy McGee
i lost the script, but it wasn't too complex. anybody with a basic knowledge of applescript could make it. just do a 'list folder' to get the folder of conf files and then a 'do shell script' to start bzfs.

Posted: Wed Jul 05, 2006 2:23 am
by Xalendare
Yeah, I mananged (with some difficulty, admittedly) to get a quick AppleScript together:

Code: Select all

tell application "Finder"
	set Config to choose file with prompt "Configuration File?" of type ".conf" invisibles 0 default location file "Path:to:directory:with:configuration:files"
end tell

tell application "Terminal"
	do script "~/Path/to/bzfs/ -conf " & POSIX path of Config
end tell
A couple notes:
The first path is the OS X filesystem, so it uses colons instead of slashes.
The space between -conf and the closing quotation mark IS NECESSARY! Leave it in.

Re: Easyer server hosting on mac... (ALL MAC USERS READ!!!)

Posted: Wed Jul 05, 2006 8:31 am
by hookah
BinarySpike wrote:Ok, I'm new with BZFlag so this might be a start to logging and map rotation.


Anyway, I hated having to copy and paste the code that I wanted executed so I simply made a script that did this for me.
(test to get libcurl installed)
(please note this is ALL in terminal... in a tcsh shell)

I made a .command file that you just double click and voila! your server starts!

Here's what to do (full version):
1. Open a Teminal window.
2. Drag bzfs into the window.
3. Type (or copy this) " -conf " (with spaces) into the window.
4. Make, or find, a .conf file you want to use.
5. Drag the .conf file you made into the window.
6. copy all this.
6.5 this is what it should basicly look like:
/path/to/bzfs -conf /path/to/the.conf

7. Now, create a normal text file (NOT .rtf!!! YOU MUST USE .txt)
7.25 to do this open TextEdit.
7.5 Now in the menu select Format->Make Plain Text.
7.75 Or instead of step 7.5 just hit Shift-Command-T.
8. Now paste the bzfs command into the text file
9. Save it as a file anywhere on your hardrive.
10. Open Terminal again. (get a new terminal window)
11. Type "cd " into the new terminal window.(with space)
12. Drag the Text file you created into terminal window.
13. delete the Text file name, like so:
/path/to/text/file.txt (delete the file.txt part but not the '/' before it)
/path/to/text/ (that's what it should look like)
14. hit enter/return
15. rename your text file's extenstion to .command, like so:
"File.txt" to "File.command"
16. type "chmod a+x File.command" into terminal window
17. hit enter
:D :D :D :D :D :D

Now, double click on your File.command to launch terminal and execute the script.



Here's the short version:
Here's what to do (short version):
1. Make a plain text file and put whatever commands you run in terminal in it.
1.5 Open terminal.
2. cd yourself into the file in which it is.
3. Re-name your plain text file to whatevername.command
4. type "chmod a+x whatevername.command" into terminal window
4.5 hit enter.
5 double click on file to run it.
:twisted: :twisted: :twisted: :twisted: :twisted:

note: the short version needs somebody that knows what there doing!!



Please post questions you might have!!!
(this might even be sticky worthy :))

Binary for some people it is just hard. You only need to do that

How to RUN SERVER.

1. Open Terminal.
2. Put BZFS into it.
3. Then hit "space" and type -conf
4. Then hit again "space" and put myconf.conf
5. Server is running now.

How to create .conf

1. Open TEXTEDIT
2. Then press how BINARY said "shift command T"
3. Then try this my config file.
4. And save it there where you want.

I show my config for ducati.

CONF
############## Ducati config

#Initial port clients connect on
-p 5154

#Public description for the server
-public "Yours message"

#Public network address for the server
-publicaddr "yours MODEM name:5154 or IP-ADDRESS:5154"

#Write score to stdout whenever it changes
-printscore

#Limit Acceleration
-a 38 50
################################################################################
#Server Message displayed when player joins
-srvmsg "Yours message"
-srvmsg "yours message"
################################################################################
#Message that is broadcast every 15 minutes
-admsg "yours message"
-admsg "yours message"
+r
-ms 2
-mp 0,5,5,0,0,10.
-c
-lagwarn 700
-lagdrop 4
-reportfile
-q
-set _disableBots 2

-tk
-tkkr [1-3]

-autoTeam

-timemanual
-time 1800

-spamtime 2
-spamwarn 2

-filterChat
-badwords "yours swearlist"

-filterCallsigns
-badwords "yours swearlist"

-filterSimple
-badwords "yours swearlist"

-timemanual
-time "countdown time limit in seconds. 1800 sec = 30 min"

-loadplugin "Put yours plugins for server"
##############################################

#World file to load
-world "put world"

#Administrator's password
-password "yours password"

#File that stores user passwords
-passdb "your password DB"

#File that stores group privileges
-groupdb "your group DB"

#File that stores user privileges
-userdb "your user DB"

#Help Messages file specification
-helpmsg "Put yours help messages"

If you wanna map then it is here.
DUCATI MAP.

# BZFlag client: saved world on Tue Jun 13 18:32:11 2006

options
-c
-mp 0,5,5,0,0,10.
+r
-ms 2
-set _rejoinTime 0
-set _shotSpeed 100
end

dynamicColor
name LinkMaterial
red limits 0 0.25
red sinusoid 2 0 1
green limits 0 0.25
green sinusoid 2 0.666667 1
blue limits 0 0.25
blue sinusoid 2 1.33333 1
alpha limits 0.75 0.75
end

textureMatrix
name LinkMaterial
shift 0 -0.05
end

material
name LinkMaterial
dyncol LinkMaterial
diffuse 0 0 0 0.5
nolighting
addtexture telelink
texmat LinkMaterial
end

box
position 289.325 318.056 0
size 30 30 20.5584
rotation 154.858
end
box
position -289.325 -318.056 0
size 30 30 20.5584
rotation 154.858
end
box
position -250.33 284.707 0
size 30 30 18.4607
rotation 43.1801
end
box
position 250.33 -284.707 0
size 30 30 18.4607
rotation 43.1801
end
box
position -261.098 -137.117 0
size 30 30 13.9451
rotation 9.10481
end
box
position 261.098 137.117 0
size 30 30 13.9451
rotation 9.10481
end
box
position -151.6 -221.76 0
size 30 30 12.5523
rotation 139.703
end
box
position 151.6 221.76 0
size 30 30 12.5523
rotation 139.703
end
box
position -236.769 -395.272 0
size 30 30 11.2967
rotation 172.258
end
box
position 236.769 395.272 0
size 30 30 11.2967
rotation 172.258
end
pyramid
position -159.281 -40.7025 0
size 8.2 8.2 23.5276
rotation 28.6837
end
pyramid
position 159.281 40.7025 0
size 8.2 8.2 23.5276
rotation 28.6837
end
pyramid
position -78.5904 -100.188 0
size 8.2 8.2 22.971
rotation 36.4857
end
pyramid
position 78.5904 100.188 0
size 8.2 8.2 22.971
rotation 36.4857
end
pyramid
position -364.371 259.883 0
size 8.2 8.2 22.524
rotation 57.3237
end
pyramid
position 364.371 -259.883 0
size 8.2 8.2 22.524
rotation 57.3237
end
pyramid
position 152.843 264.974 0
size 8.2 8.2 17.1395
rotation 278.339
end
pyramid
position -152.843 -264.974 0
size 8.2 8.2 17.1395
rotation 278.339
end
pyramid
position 360.93 91.4989 0
size 8.2 8.2 16.3372
rotation 147.094
end
pyramid
position -360.93 -91.4989 0
size 8.2 8.2 16.3372
rotation 147.094
end
pyramid
position 389.48 -163.27 0
size 8.2 8.2 11.6018
rotation 76.9058
end
pyramid
position -389.48 163.27 0
size 8.2 8.2 11.6018
rotation 76.9058
end
pyramid
position 196.027 -165.357 0
size 8.2 8.2 11.0238
rotation 56.9821
end
pyramid
position -196.027 165.357 0
size 8.2 8.2 11.0238
rotation 56.9821
end
pyramid
position -229.666 7.07402 0
size 8.2 8.2 10.6054
rotation 169.695
end
pyramid
position 229.666 -7.07402 0
size 8.2 8.2 10.6054
rotation 169.695
end
pyramid
position -348.2 38.2 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position -331.8 -21.8 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position -331.8 21.8 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position 331.8 -21.8 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position 348.2 -38.2 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position -348.2 -38.2 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position 331.8 21.8 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position 348.2 38.2 0
size 8.2 8.2 10.25
rotation 0
end
pyramid
position 389.869 369.247 0
size 8.2 8.2 9.61096
rotation 141.284
end
pyramid
position -389.869 -369.247 0
size 8.2 8.2 9.61096
rotation 141.284
end
base
position -370 0 0
size 30 30 0
rotation 0
color 1
end
base
position 370 0 0
size 30 30 0
rotation 0
color 2
end
zone
position -335.9 -34.1 0
size 0 0 0
rotation 0
safety 1 2 3 4
end

zone
position -335.9 34.1 0
size 0 0 0
rotation 0
safety 1 1 2 2 3 3 4 4
end

zone
position 335.9 -34.1 0
size 0 0 0
rotation 0
safety 1 2 3 4
end

zone
position 335.9 34.1 0
size 0 0 0
rotation 0
safety 1 1 2 2 3 3 4 4
end


Sorry admins if i breaked rules.

Posted: Wed Jul 05, 2006 6:10 pm
by Xalendare
Janis: BinarySpike was detailing how to use a small applet to automatically start a server, not the overall instructions. What you posted was the entire config and map files, which can be found elsewhere.

Edit: A better guide to starting a Mac server is located here. This thread will get you started; if you need additional help, PM BinarySpike or myself.