Teams in Custom CFT maps

Questions and answers about the how and why of making maps.
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Teams in Custom CFT maps

Post by Kasofa1 »

I want to make teams for my map, specifically, red and green. I have the bases, but when I try to change the maxplayer settings, I don't know which ones to change, I am using BZEdit, but I can find the maxplayer thing in a my file with a text editor.
Thanks!

-K

EDIT: oh yeah, and is there a way to test my maps without opening BZEdit?
I can get a positive score; I just choose not to.
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Re: Teams in Custom CFT maps

Post by dango »

-mp is the option you are looking for. It is used like this:

Code: Select all

-mp rogue,red,green,blue,purple,observers
For your server you could use:

Code: Select all

-mp 0,10,10,0,0,10
-mp can also be used to set a max # of players over all (you can use both types to limit the max players, but still have teams)

Code: Select all

-mp 0,10,10,0,0,10
-mp 15
For testing your maps, bzflag comes with the bzflag server- bzfs.
Blast wrote a neat little application that can help you with using that:
http://my.bzflag.org/bb/viewtopic.php?t=11785
OR, you can learn how to use it here:
http://my.bzflag.org/w/BZFS (all info should be in links off that page)
Image
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

The order is rogue, red, green, blue, purple, observer.
-mp 3,3,3,3,3,3
And use blast's handy dandy map tester
http://my.bzflag.org/bb/viewtopic.php?t=11785
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

Ok, so that was why I could play as rouge and red but not green. :P
Thanks for the help. :)
Sorry, forgot to say, it's not BZEdit, it's iBZEdit, so I can't use Blast's map testing application, unless I am mistaken. Also, my computer is a decent Macbook, but I get a lot of lag with everything turned on. Is there a way to host it on something else or through somebody? I don't want to put it up as a permanent server until I know that people actually play on it. I would also like a way to show people the map and let them comment on it. Any feedback about any of these would be appreciated!

-K
I can get a positive score; I just choose not to.
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Re: Teams in Custom CFT maps

Post by dango »

BZFS can be used as a local, temporary server for testing. Only you will be able to get on it. to run it, just simply enter this in the terminal:

/path/to/bzfs.app -world /path/to/your/map.bzw

Then join 127.0.0.1:5154 (localhost) in bzflag.
Image
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

Hmm, I can't find BZFS. is it possible that I didn't download it and I need to do that now?

-K
I can get a positive score; I just choose not to.
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

Do you run Windows? If so, look in your bzflag folder in your C:\Program Files\bzflag2.0.10. Should be there.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

No, I have a macbook. I have used the search function of finder to look for BZFS and I didn't come up with any results.

-K

EDIT: ok, I found it, the only problem is that it is in the application BZFlag's contents, does this make a difference?

EDIT2: I copied bzfs into my home folder with this code

Code: Select all

my-macbook:~ Me$ /Users/Me/bzfs -world /Users/Me/Desktop/TunnelBase.bzw
dyld: Library not loaded: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
  Referenced from: /Users/Me/bzfs
  Reason: image not found
Trace/BPT trap
tweety-boyds-macbook:~ Me$ 
(substituting my home folder and laptop's name for my privacy)

-K
Last edited by Kasofa1 on Thu Feb 26, 2009 3:04 am, edited 1 time in total.
I can get a positive score; I just choose not to.
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

It should not make a difference, it's suppose to be in the BZFlag file folder.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
blast
General
General
Posts: 4934
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Teams in Custom CFT maps

Post by blast »

Technically, you should be able to use my launcher, though I haven't tried on OSX since I don't have a Mac. You can run it with the Mono Project. I have tried it on Linux, but I did add a few tweaks to the code. Can't recall if they were critical or not.
"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
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

hmmm, looks complicated, :P (not really one for complicated things, but I will check this out)
also, if I wanted to add flags, I would need to do that with a text editor, correct? I want to add shield, Guided missiles, agile, and narrow. I have decided to put it up on the map releases board, but I need to get flags up and running.

-K
I can get a positive score; I just choose not to.
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

What looks complicated? the BZW test launcher? for the bzfs binary click browse and go to where you installed your bzflag folder and click on the bzfs application, do the same for the map and bzflag binary.
for adding flag you need the specify them in a options block in your map file using a text editor. Should look something like this:

Code: Select all

options
 +f SH{#}
 +f GM{#}
 +f A{#}
 +f N{#}
end
Where # is the number of that flag
you can also do
+f good{#} and that will give you all the good flags.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

what about something like this, would this work?

Code: Select all

zone 
name GM_Zone
   position 74.0 0.0 0.0
   size 8.0 20.0 11.0
   rotation 0.0
   zoneflag GM 5
end
I tried something like this, but it completely screwed up my .txt file
maybe I put them in the wrong place?
I just put this and several others in at the bottom of my page. Should I have put them somewhere else? I did it this way because I want them in specific places.

-K
I can get a positive score; I just choose not to.
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

It should. I doesn't matter where you put it in the map file and it looks fine to me. You must have it as a .bzw extension to run it, just do something like this: My_Kewl_map.bzw in the Save As: area.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

I don't really get what you mean by 'save as: area'.
Is there are folder where I should be saving them?
Do I need to be making a folder called area?

Thanks for putting up with me for so long :)

-K
I can get a positive score; I just choose not to.
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

Oh, what I meant was when you save a file it says "Save As:" then the name you want to save it as, It may be different for OS X I'm not sure.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

Oh, by area you meant 'Example_area.bzw" or whatever.
Ok, that makes more sense. Thanks for clearing that up!
When I try to play my map through the BZFlag application, It says 'error connecting to server, I have also tried starting a new server, but when I try that I don't get the option of changing the map choice. Is there anything I can do to change this?


-K
I can get a positive score; I just choose not to.
User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Re: Teams in Custom CFT maps

Post by Agent West »

Rest in peace, AliceD (AKA Happy Alice)! miss ya!
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

Are you using the BZW Test Launcher? or just trying to start a server?
Here's a few helpful links:
http://my.bzflag.org/w/Category:Server
http://my.bzflag.org/w/Sample_conf
And some on map making, it's all really useful.
http://my.bzflag.org/w/Category:Map_Making
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

Nice post AW, should have refreshed before I posted :? But he runs a mac so it may differ slightly.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

I tried adding flags using the way described above, using zones. When I do that, it turns my map.txt file into garbled gibberish. I just add that, Save it, and it all goes down the drain. I tried using what Agent West described, but, with me being on a mac, I can't use that method directly. When I enter everything in it says something along the lines of 'directory not found'

-K
I can get a positive score; I just choose not to.
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Teams in Custom CFT maps

Post by joevano »

Kasofa1, the garbled part would be the text editor you are using, it is not saving it back out in 'txt' format. I would suggest Smultron (http://tuppis.com/smultron/ , it is free).

Also to start bzfs you want it to look like this:

Code: Select all

/Applications/BZFlag/BZFlag-2.0.10.app/Contents/MacOS/bzfs -world ~/Desktop/TunnelBase.bzw
That of course assumes you are using 2.0.10, adjust the version number accordingly.
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
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

Ok, thanks Joevano, that should help a bunch. Does BZFlag need to be in the Apps folder, or could put it somewhere else?

-K

EDIT: assuming that I ever get this hosted, it will really only work for 3-8 people max on each team.
it is very very small.

EDIT2: Using smultron, I added flags via the zone tag.

Code: Select all

zone 
name GM_Spawn
   position 74.0 0.0 0.0
   size 8.0 20.0 11.0
   rotation 0.0
   zoneflag GM 5
end
when I open the file in iBZEdit, it gives me an error message. "Discarding incomplete object at line 999." Is there something I am doing wrong again?
I have not yet tried the Terminal code yet.
I can get a positive score; I just choose not to.
User avatar
Kasofa1
Private First Class
Private First Class
Posts: 101
Joined: Thu Feb 19, 2009 7:09 pm

Re: Teams in Custom CFT maps

Post by Kasofa1 »

The Terminal code worked, but I still don't know what to do about actually playing the level. I can't figure out how to get it to where I can test play the map. This is what it spit out at me

Code: Select all

Note: no acceleration limit has been set.  Players using "mouse
enhancements" may cause problems on this server due to very high
acceleration rates which are not handled well by dead reckoning
algorithms.  To eliminate this warning, set the -a switch in your
configuration.  '-a 50 38' is recommended for standard-speed servers.
Higher speed servers will need higher values for -a in order to not
affect gameplay.  '-a 0 0' may be used to shut this message up without
affecting any players, including those using "mouse enhancements".
Unable to position flags on this world.
Unable to position flags on this world.
Unable to position flags on this world.
Unable to position flags on this world.
Unable to position flags on this world.
-K
I can get a positive score; I just choose not to.
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Teams in Custom CFT maps

Post by Bambino »

Ok, the first little bit is normal

Code: Select all

no acceleration limit has been set.  Players using "mouse
enhancements" may cause problems on this server due to very high
acceleration rates which are not handled well by dead reckoning
algorithms.  To eliminate this warning, set the -a switch in your
configuration.  '-a 50 38' is recommended for standard-speed servers.
Higher speed servers will need higher values for -a in order to not
affect gameplay.  '-a 0 0' may be used to shut this message up without
affecting any players, including those using "mouse enhancements".
Then the

Code: Select all

Unable to position flags on this world.
Unable to position flags on this world.
Unable to position flags on this world.
Unable to position flags on this world.
Unable to position flags on this world.
Is not normal, there may be a problem with the zone codes of some sort.
To test the actual map you open the bzflag game and type 'localhost' into the server, and the port # is 5154
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
Post Reply