Editing By Hand

Questions and answers about the how and why of making maps.
User avatar
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Editing By Hand

Post by Starski »

im on the wiki and all that jazz i have windows but i dont know weer to put the codes ?notepad or what and when im done what do i do?
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

What you do it once you're done making a map in bzedit or whatever you're using just find the map file and it should have a .bzw file extension. Click on it and if it's your 1st time opening a .bzw you click on Notepad or a different text editor. It should say a message, click yes or ok. Proceed to open the map in Notepad. Then you will see the code, there you can start to add some code from an object from the wiki. Make sure that when you save it that it saves as a .bzw and not a .txt you can just do this when you do 'save as'

Code: Select all

diz-mai-kewl-map.bzw
it needs the .bzw or else it'll be a .txt

Happy mapping!
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
gentle giant
Private First Class
Private First Class
Posts: 144
Joined: Fri Feb 20, 2009 9:49 pm
Location: USA

Re: Editing By Hand

Post by gentle giant »

yeah, basically what bambino said, but it sounded a little confusing. Heres a different way to put it. When your going to load a map go to open, then right click on the map and it shall have different options for u and there should be one or to to open with. Click on that then go to notepad. That sounds more clear to me, but whatever helps you works.
My motives from an awesome teacher:

"If life gives you lemons, make lemonade"

"If you fail to prepare, you prepare to fail"
User avatar
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

like this?:# World built with bzedit32 world class, available at
# http://www.sourceforge.net/projects/bzflag
world
size 400
end
options
+r
-j
-set _tankSpeed 25
-ms 5
-mp 0,2,0,2,0,2
end
box
name box1
position 0 0 0
size 10 10 10
rotation 0
end
box
name box1 # Optional, but good to include
position 0 0 0
size 10 10 10
rotation 0
end
cone
name cone1
position 0 0 0
size 10 10 20
divisions 128
end
material
name mat1
addtexture blue_bolt.png
end
meshbox
position 0 0 0
size 10 10 10
rotation 0
matref mat1
end
material
name mat1
diffuse .5 .25 .1 .6
addtexture mesh.png
end
physics
name phy1
linear 50 0 0
end physics
name phy2
linear 0 50 0
endphysics
name phy3
linear 0 0 50
end physics
name phy4
slide 5 0
endphysics
name phy5
death haha! you died
end physics
name phy1
death I like you better dead!
end
meshbox
position 0 0 0
size 10 10 10
rotation 0
phydrv phy1 # Or what ever you named the physics.
end meshbox
position 0 0 0
size 10 10 10
rotation 0
matref mat1
end
material
name mat1
addtexture blue_team.png
end
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

Yes, like that but I don't think you need the .png extension. Also, just use the code option for pasting in here, it saves space.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Editing By Hand

Post by allejo »

actually you must have the .png extension.
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Editing By Hand

Post by blast »

If you are referencing a local texture in the BZFlag data directory, you do not need to include the png extension. This is mentioned in the BZW man page.
"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
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

how do i know how the objects look like cause to me all im doing is typing stuff down..
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Editing By Hand

Post by allejo »

User avatar
big_daddy2
Private First Class
Private First Class
Posts: 131
Joined: Sat May 06, 2006 1:06 am
Location: the middle of nowhere, USA

Re: Editing By Hand

Post by big_daddy2 »

the thing is when ever you hand-code somthing into bzflag you do not know what it will look like unless it is a simple box or pyramid, the only way to see your results is try try again and if that doesnt work try again... :roll:
User avatar
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

i dont really understand blast test launcher
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

It's easy. Download it and when it says to find the binarys, just click browse and look for bzfs ands bzflag. They should be in C:\Program Files\bzflag2.0.10\bzfs.exe and bzflag2.0.10. Then find the location to the map file. Choose some settings and press start.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

aw ok i see but there are 3 lines which one do i put my file my for my map and i cant find it
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Editing By Hand

Post by blast »

Danji wrote:aw ok i see but there are 3 lines which one do i put my file my for my map and i cant find it
The one that says "BZW world file". You could also try the StartBZFS application that JeffM posted on the forum.
"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
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

ok i get it now but it keeps saying Error Connecting to server,when i try to connect with the server.
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

Okay, start the server with the map then BZFlag should automatically start if done correctly. If it keeps saying "Trying..." they close the client and press STOP and it will read out the errors, if any.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

yeah it had errors
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

What kind...post them...
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

=============================
Possible errors:
=============================
using group file "C:\Users\Danji.Samuel-PC.000\AppData\Local\Temp\bzwtl\groupdb"
ERROR: A world was not specified


=============================
Other Output:
=============================
set variable: _tankSpeed = 25
LIBCURL version: libcurl/7.16.3-CVS c-ares/1.3.3-CVS
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: warning: world file extension is not .bzw, trying to load anyway
warning: duplicate material name (mat1)
the first material will be used
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: warning (line 49): invalid object type "name" - skipping
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: warning (line 50): invalid object type "linear" - skipping
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: warning (line 51): invalid object type "endphysics" - skipping
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: warning (line 52): invalid object type "name" - skipping
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: warning (line 53): invalid object type "linear" - skipping
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: error (line 54): unexpected "end" token
C:\Users\Danji.Samuel-PC.000\Desktop\bzw.map: error: world file failed to load.
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

world file extension is not .bzw
Make it .bzw
and this ERROR: A world was not specified
and then fix the unknown name types, re-test.
"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: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Editing By Hand

Post by blast »

You're probably missing a line that starts an object. Look a little above line 49 in your map file.
"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
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

wat do u mean line 49?
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Editing By Hand

Post by Bambino »

He means line 49 in the map file.

Line 1
Line 2
Line 3
...
Line 49

You have objects called "name"
You cannot have an object called name.
"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: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Editing By Hand

Post by blast »

If your text editor doesn't have any way to show the line number, it's time to get a better editor. You need to look near line 49 if you want to solve this, as you deleted a line that contained the object type.
"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
Starski
Private First Class
Private First Class
Posts: 93
Joined: Sun Jan 06, 2008 6:01 pm
Location: Florida

Re: Editing By Hand

Post by Starski »

like do i count or what? hope i dont sound dumb..
"You cannot shake hands with a clenched fist"
-Gandhi

FKA Danji

Bad Company -> http://www.guleague.org/Teams/?profile=1001
Post Reply