HOW To Make A Map: The FAQ.

Questions and answers about the how and why of making maps.
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

HOW To Make A Map: The FAQ.

Post by Spazzy McGee » Sat Mar 31, 2007 9:08 pm

This post is an aim at answering some frequently asked questions regarding map creation, and to help people new to mapping.

First off let's clear up some common terms and misconceptions:

• The word "map" is not synonymous to the word "server". They are different things. A map is run on a server.

• When we say 'server' we mean 'BZFS', the BZFlag server application that comes with every stable binary release of BZFlag. BZFS allows you to host a BZFlag game, with either a randomly generated map, or a custom map.

• The standard extension for a BZFlag map is ".bzw". There are a variety of ways for making maps, and this can be done on any platform BZFlag runs on.

• You will often hear the different types of map objects referred to by the first version of BZFS they appeared in. "1.x" objects are simple boxes, pyramids and teleporters. "2.0" or "2.x" objects are objects such as meshes, arcs, materials, etc. With skill, these can be textured to look like almost anything you want.

• Textures must be in the .png format.

• Team numbering occurs frequently in BZW. Each team is given a number, and these are as follows: 0 = rogue; 1 = red; 2 = green; 3 = blue; 4 = purple.

Think carefully about the layout of your map: Is is going to be fun to play? This is a factor that many people call 'playability'. This is probably the most important thing for a map that is intended to be played on. It may seem obvious, but you'd be surprised at the number of maps that are either too full of eye candy, or just badly thought out. You want to think about, among other things, distribution of obstacles, how balanced it is for CTF, concentration of ricochet bullets and sloped surfaces to rebound lasers.

Frequently Asked Questions

How do I make a map/world for BZFlag?
There are many ways to do this:
• You can use a dedicated map editor such as BZEdit, iBZEdit or BZFed. In general, dedicated editors will only support simple map objects such as a box, a pyramid or a teleporter. On the whole, this is the easiest way to create maps for most people. See the wiki. As part of the Google Summer of Code, Jude has been making a brand spanking new editor, BZWorkbench, which has full support for everything, and should be ready in the near future!

• You can use a 3D modeling application, such as Blender or Wings3D. There are plugins available for each. With a 3D modeler, you can create much more complex maps, but there is a much steeper learning curve.
The blender plugin, BZWTools, can be found here.
The wings plugin can be found here.

• Lastly, you can edit maps by hand in your favorite plain text editor. Most maps made by hand tend to be fairly simple, though experienced mappers have made some extraordinary maps in this way. It is a good idea to be familiar with the structure of BZW code, as often exported meshes from 3D modelers will require 'touching up' in a text editor. Even the most experienced 3D modeler user needs to know how to text edit.


How do I make a cylinder/cone/sphere etc.?
You can't do it in BZEdit. You will need to add them by hand in a text editor.

See the wiki for more in depth info.


I created a map in BZEdit, how do I add my own colors and textures?
BZEdit will not create colored, complex objects. If you want to texture a map made in bzedit, you will need to do so in a text editor such as NotePad. You must change the boxes you want texturing to meshboxes, and define your textures with the material object. for more information see the BZW wiki page.

Where can I host textures that I have made for my map?
BZFlag offers a free texture hosting service at http://images.bzflag.org. To qualify to be hosted, you need to own the rights to use those textures (i.e. you made it, or you have permission to use it from the creator).
You can submit images via the submissions page, and they will be moderated. Be patient - the moderation can take some time. Remember - this service is a privilege, not a right.


Can I make moving objects in BZFlag?
The short answer is no, and there probably never will be moving objects that tanks can interact with. You can, however make moving textures with the textureMatrix object.

The long answer is yes, simple moving objects have been made that move in a circle around the central Z axis using a method of mesh drawing called DrawInfo, however these objects are always shootthrough and drivethrough, and tanks cannot interact with them in any way - in other words decorative only. The DrawInfo code was never fully documented, and as such is very hard to generate. It's probably best to steer clear of it.


Can I get BZEdit for Mac OS X?
Yes, it's called iBZEdit.
Alternatively, you could use Wings 3D, or Blender if you're prepared for a steep learning curve - or you could go for plain text editing in the TextEdit application that came with your OS.


How can I get a flag to spawn in a specific place in my map?
Use the following simple code:

Code: Select all

zone 
   size 0.1 0.1 0.1  ## Size of the zone 
   pos 0 0 0  ## Position of the zone (i.e. the place it will spawn) 
   zoneflag GM 2  ## For example, this will create two GM flags. 
end
Note this does not require you to use the +f bzfs option. If you use zoneflag, the flag will be created automaticaly.[/i]

How can I get a tank to spawn in a specific place in my map?
Use the following simple code:

Code: Select all

zone 
   size 10 10 10  ## Size of the zone 
   pos 0 0 0  ## Position of the zone (i.e. the place it will spawn) 
   team 0 1 2 3 4  ## Every team will spawn here.. 
end
Next to 'team' you put the numbers of the teams you wish to spawn. See above for more details.[/i]

I want tanks to die when a tank touches this box... How?
You can create boxes that kill tanks when they are touched by using a physics driver. A physics driver can be applied to any 2.0 object. Specifically, we need the 'death' function.

Code: Select all

physics
   name myDeath  ## Name of physics driver.
   death You Died!  ## Message displayed on death.
end
Then you add the reference to the object or mesh face:

Code: Select all

phydrv myDeath
How do I add automatically-shooting weapons in my map?
This is covered extensively in the wiki. You can configure the weapon to fire on a flag capture, like on all your favorite CTF servers.


How do I start a server to host my map?
http://forums.bzflag.org/viewtopic.php?t=2915


Getting Your Map Out There
There is a forum dedicated entirely to this. It's the 'Map Releases' forum. Please bear the following in mind when you release your map.

Releasing you map does not necessarily mean you will get hosting for your map, so do not post "OMGZ this map is sooo good i spent like 2 hours making it and it's like amazing all my friends think it rawks!!!!!!11". It's not going appeal to many people. Instead give about a paragraph to describe your map, and any server settings you may recommend for playing. Be sure to use full sentences, and check your spelling!

• Extensions, extensions: you should always give your map the '.bzw' file extension, text edited or otherwise. It dosn't matter what you made it in - it's all the same format. It's just good practice.

Give your map an imaginative name - not just "xyz's CTF", and not something obvious like "Bridges" or "Castles", as there are probably about five other maps with this title. Instead think of something decriptive and short. Think as though you were titling a movie or a song, something that's going to be attractive to people browsing the forum or listserver.

• Take nice screenshots using the roaming feature in observer mode. Most people will use only the screenshots to get an idea of how well your map will actually play. Try to capture the essence of your map with as little screenshots as possible, no more than three or four, and (if you can) convert your images to JPEGs for faster downloading.

• Furthermore, releasing your map means that anyone can download your map. If they decide to host your map they don't have to make you an admin on their server. If you have any issues with the way they are using your map take it up with them personally. It's not up for public discussion. See this announcement for more information on releasing and licencing in this forum.

• Be open and ready for criticism - if you're new to mapping, the chances are that your map isn't going to be a smash hit, so don't be too offended if somebody doesn't like it. Instead take that criticism on board and use it to improve your map, or to make further maps better.

I also cannot over stress how useful it is to know how the BZW code works and is structured, it's a huge help and I guarantee will help you find and eliminate bugs in your map more quickly.

If you're looking for some further help with BZW, you can post a question in this forum, or you can always try the ##bzw IRC channel on irc.freenode.net.

Lastly, have fun making maps. Many players enjoy mapping even more than actually playing the game, and find it an ammusing and challenging passtime. Just remember to persevere, and with some work, you could be the next Dutchrai or Louman!

If you can think of further frequently asked questions, or spot any spelling/grammar mistakes, i'll be happy to add them.
Last edited by Spazzy McGee on Wed Nov 05, 2008 9:19 pm, edited 25 times in total.
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
khazhyk
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.
Contact:

Post by khazhyk » Sat Mar 31, 2007 9:23 pm

how do you make the server shoot?
A: by use of a world weapon. (weapon map object)

How do you make the server shoot with a trigger?
A: WWZones, or oncap function

the WWZone map thingy isn't working! wHy!
a: becausae you need to load that plugin for it to work.
Image

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Tue Apr 03, 2007 1:17 am

Added world weapons and "Getting your map out there".
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
khazhyk
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.
Contact:

Post by khazhyk » Tue Apr 03, 2007 9:20 pm

you spelled favorite wrong.

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Tue Apr 03, 2007 10:34 pm

Corrected spelling of several words, such as my inability to spell criticism....

Added info on playability and screenshots.

Fixed Italics problem mentioned in bentus' post below. Corrected some grammar, reworded some sentences.
Last edited by Spazzy McGee on Thu Apr 12, 2007 1:17 am, edited 2 times in total.
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
Bentusi Elite
Private First Class
Private First Class
Posts: 26
Joined: Sat May 06, 2006 9:09 pm

Post by Bentusi Elite » Wed Apr 04, 2007 1:13 am

The italics in "I want tanks to die when a tank touches this box... How?" are messed up.

Edited in response to the post above: You spelled sentences wrong. :wink:

User avatar
Hannibal
Private First Class
Private First Class
Posts: 1073
Joined: Mon May 02, 2005 10:27 pm
Contact:

Post by Hannibal » Mon Apr 09, 2007 5:29 am

I'd recommend a section on naming. Give the map a title- not just 'XXX's Map'
Games don't make people violent, lag does.
ImageImage

User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe » Tue Apr 10, 2007 3:50 pm

Indeed. Though that's not really something you can help people with... they just have to be inspirational when they create a map. I admit I've done a few "Four Team CTF" maps... which will make it hard for people to distinguish that from about seven other maps with the same name without screenshots.

Looking good so far, Spazzy. Thanks for posting this.

User avatar
that exploding tank
Private First Class
Private First Class
Posts: 149
Joined: Sun Jul 16, 2006 4:38 pm
Location: Georgia, U.S.

Post by that exploding tank » Tue Apr 10, 2007 4:01 pm

Has anyone thought about making this a sticky page?

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Thu Apr 12, 2007 1:20 am

Cheers for the stickyage.
  • • Added naming section.
    • Emboldened some important points.
    • Added link to Jeff's post on map licensing.
    • Added the 'have fun' paragraph.
"Life is what happens to you while you're busy making other plans." - John Lennon

Lt-Kirby2007
Private First Class
Private First Class
Posts: 76
Joined: Tue May 15, 2007 7:53 pm
Location: England, Uk

Post by Lt-Kirby2007 » Thu May 31, 2007 8:01 am

omg! you couldn't have made this thread at a better time even if you had tried! i am making a map atm, and was wondering about half of the stuff in that! THANKYOU SOOOO MUCH! :D

~Lt-Kirby2007~
:lol-old: chickens will soon rule the world :lol-old:
Image

Image
Image

BZTANK.NET ADMIN - THE PLACE TO BE!!!!

ignaeon
Private
Private
Posts: 1
Joined: Tue Jun 19, 2007 1:54 am

Post by ignaeon » Tue Jun 19, 2007 10:02 pm

how do you add that code i use bzedit and there is no code option

also, how do you scroll through the screen in bzedit, its hard to see things that are high or on the edge and i dont mean rotate or zoom the window i mean scroll across it

also sorry if i sounded rude but i need answers

ignaeon

flames of time[/img]

meeba
Master Sergeant
Master Sergeant
Posts: 507
Joined: Sun Mar 12, 2006 10:49 pm
Location: N. Sanity Beach
Contact:

Post by meeba » Tue Jun 19, 2007 10:17 pm

ignaeon wrote:how do you add that code i use bzedit and there is no code option

also, how do you scroll through the screen in bzedit, its hard to see things that are high or on the edge and i dont mean rotate or zoom the window i mean scroll across it

also sorry if i sounded rude but i need answers

ignaeon

flames of time[/img]
You can't add code in BZEdit.

User avatar
Grace F
Sergeant
Sergeant
Posts: 978
Joined: Sun Oct 01, 2006 12:29 pm
Location: Adelaide, AUSTRALIA

Post by Grace F » Wed Jun 20, 2007 8:19 am

ignaeon wrote:also, how do you scroll through the screen in bzedit, its hard to see things that are high or on the edge and i dont mean rotate or zoom the window i mean scroll across it
Hold Ctrl and Right/Left click (forgot which) :? That lets you scroll across the x-y.
Hold Shift and Right/Left click (forgot which) :? That lets you scroll across the z. (up and down)
Image
Image

User avatar
Hannibal
Private First Class
Private First Class
Posts: 1073
Joined: Mon May 02, 2005 10:27 pm
Contact:

Post by Hannibal » Wed Jun 20, 2007 4:49 pm

Grace F wrote:
ignaeon wrote:also, how do you scroll through the screen in bzedit, its hard to see things that are high or on the edge and i dont mean rotate or zoom the window i mean scroll across it
Hold Ctrl and Right/Left click (forgot which) :? That lets you scroll across the x-y.
Hold Shift and Right/Left click (forgot which) :? That lets you scroll across the z. (up and down)
That changes the target position of the camera. To change the location of the camera, use the scroll wheel on the mouse to zoom in/out and hold right click and drag to rotate around the target point. You can also select an object, then go to the "View" menu and choose "Move to selection", which puts the target position on that object.
Games don't make people violent, lag does.
ImageImage

User avatar
learner
General
General
Posts: 270
Joined: Sun May 11, 2003 2:06 am
Location: Maryland
Contact:

add it to the wiki

Post by learner » Thu Jun 21, 2007 4:44 am

Someone(tm) should add this information to the BZFlag Wiki... http://my.bzflag.org/w/

Cheers!
Sean

User avatar
Poptart 184
Private First Class
Private First Class
Posts: 9
Joined: Mon Jun 04, 2007 11:48 pm

???

Post by Poptart 184 » Thu Jun 21, 2007 9:03 pm

How do you change textures in BZEdit? How do you make flags? :| :?:

User avatar
CannonBallGuy
Private First Class
Private First Class
Posts: 2083
Joined: Wed Apr 12, 2006 1:31 am
Contact:

Re: ???

Post by CannonBallGuy » Thu Jun 21, 2007 9:08 pm

Poptart 184 wrote:How do you change textures in BZEdit?
Spazzy Mcgee wrote:I created a map in BZEdit, how do I add my own colors and textures?
BZEdit will not create colored, complex objects. If you want to texture a map made in bzedit, you will need to do so in a text editor such as NotePad. You must change the boxes you want texturing to meshboxes, and define your textures with the material object. for more information see the BZW wiki page.
Image

Merry Christmas!

"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."

"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007

dmonkey
Private First Class
Private First Class
Posts: 7
Joined: Thu Jun 21, 2007 3:40 am
Location: U.S.A.
Contact:

Post by dmonkey » Fri Jun 22, 2007 11:55 pm

when i try to add the flag it tells me "Discarding incomplete object at line 482" some help please

User avatar
Hannibal
Private First Class
Private First Class
Posts: 1073
Joined: Mon May 02, 2005 10:27 pm
Contact:

Post by Hannibal » Sat Jun 23, 2007 12:14 am

I think its best if we left individual questions to their own thread/not in here.
Games don't make people violent, lag does.
ImageImage

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Sat Jun 23, 2007 1:32 am

"Life is what happens to you while you're busy making other plans." - John Lennon

Lt-Kirby2007
Private First Class
Private First Class
Posts: 76
Joined: Tue May 15, 2007 7:53 pm
Location: England, Uk

Post by Lt-Kirby2007 » Wed Nov 05, 2008 4:02 pm

just a couple of questions

1) which is better out of Blender and Wings and why?
2) how do you upload textures?
Image

Image
Image

BZTANK.NET ADMIN - THE PLACE TO BE!!!!

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Post by joevano » Wed Nov 05, 2008 4:39 pm

1) It's a preference thing, one is not "better" than the other, they are just different. Many find wings easier to use, but as I said it is a preference thing for the most part.
2) look at the sticky post "How to get images into a map" http://my.bzflag.org/bb/viewtopic.php?t=13316
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
adameros
Private First Class
Private First Class
Posts: 55
Joined: Sat Dec 29, 2007 5:59 am
Location: Bothell, WA
Contact:

Re: HOW To Make A Map: The FAQ.

Post by adameros » Wed Aug 17, 2011 9:13 pm

Just curious, with the new 2.4 release, has the format, objects (or their options), or anything else changed in any significant fashion?

User avatar
SkillDude
Private First Class
Private First Class
Posts: 336
Joined: Sun Apr 01, 2007 4:50 pm
Location: United States

Re: HOW To Make A Map: The FAQ.

Post by SkillDude » Wed Aug 17, 2011 11:02 pm

The only new thing related to all objects is the ability to turn on ricochet per object / face of a mesh. By leaving +r out of your map options, you can include ricochet as an extra value (Like you would drivethrough or shootthrough) and bullets will ricochet off that object / mesh face.

That is all that has been changed in terms of map objects.

As for bzfs options, that has quite a few changes. See http://wiki.bzflag.org/BZFS_2.4_Upgrade for more information on that.

Post Reply