water, shapes, and phisics drivers

Questions and answers about the how and why of making maps.
Post Reply
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

water, shapes, and phisics drivers

Post by OO7 »

first off, i have windows, and i use bzedit.
whenever i put water into a map, it always kills. how do i make it so it doent kill? and i cant use the water texture on normal bricks for some reason

also, whenever i try to put in a sphere or other abnormal shape, the server wont run.

last, i want to be able to use a physics driver. i copied and pasted the example off the page http://www.bzflag.org/wiki/MapMaking and put it in but it didnt work.
for example, i tried to put a sphere 200 feet up in the middle of the map with a physics driver. the server had all kinds of problems until i took both out
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

waay ot here, this should be in map help thingy.


you have 2 change the type of box to meshbox, from box. ( to add a texture)

Code: Select all

box
name Box
	position -200 0 0
	rotation 0
	size 180 2 33
end
to this

Code: Select all

meshbox
name Box
	position -200 0 0
	rotation 0
	size 180 2 33
[b]matref you matref here[/b]
end



this is to make water, with a custom texture

Code: Select all

physics
name death
death you died boom!           # this makes the death when a tank touches
end

material
name water_text
texture water.png                # that adds the texture and make it move
shift 1 10
end

meshbox
name box
 size 1 10 10
 rotation 0                            # that is the actual box that makes you die 
 position 0 0 0                       # and has shifty textures.
 phydrv death
 texmat water_text
end


If you want to make the water move, but not deadly, do this:

Code: Select all

material
name water_text
texture water.png                
shift 1 10
end

meshbox
name box
 size 1 10 10
 rotation 0                             
 position 0 0 0                       
 texmat water_text
end
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Post by dango »

Win Xp
the 'shift' option only works for texture matrix the way your used it win. the corrected water codes are:

Code: Select all

physics
name death
death you died boom!           # this makes the death when a tank touches
end

textureMatrix
name move
shift 10 2                             #this moves the water
end

material
name water_text
texture water.png                # that adds the texture
texmat move
end

meshbox
name box
 size 1 10 10
 rotation 0                            # that is the actual box that makes you die
 position 0 0 0                       # and has shifty textures.
 phydrv death
 texmat water_text
end 
Note: the physics, TexMat, and Material MUST be in that order or it won't work.

Code: Select all

textureMatrix
name move
shift 10 2                             #this moves the water
end

material
name water_text
texture water.png                # that adds the texture           
texmat move
end

meshbox
name box
 size 1 10 10
 rotation 0                            # that is the actual box
 position 0 0 0                       # it has shifty textures.                  
 texmat water_text
end 
Image
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

BZEdit won't do any 2.0 objects such as spheres, textures, and other mesh stuff.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

no, duh, sorry I was half asleep when I did that.
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

Post by OO7 »

ok, i know bzedit wont actively do that...i change file to .txt from .bzw bak and forth and type it in there.
and could u guys be more specific which topic ur anserwing?
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Post by dango »

... we already told you what code does what... and what makes it do that... specific enough? (i just corrected the codes, if you accually read every post i wouldn't have to tell what code does what...)

and the topic we're answering in obvious, this one...
Image
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

check out the man pages or go here:

http://www.rangfar.com/hosted/bzflagwor ... um.php?f=8


all sorts of help on mapping stuff.
User avatar
OO7
Private First Class
Private First Class
Posts: 113
Joined: Fri Aug 26, 2005 6:45 pm
Location: <classified>
Contact:

Post by OO7 »

hehe u said man pages, not main pages. didnt know there were man pages
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Post by dango »

man pages, for manual pages...
Image
Post Reply