Page 1 of 1

water, shapes, and phisics drivers

Posted: Tue Feb 21, 2006 11:41 pm
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

Posted: Wed Feb 22, 2006 12:12 am
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

Posted: Wed Feb 22, 2006 12:28 am
by khazhyk
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 

Posted: Wed Feb 22, 2006 12:35 am
by A Meteorite
BZEdit won't do any 2.0 objects such as spheres, textures, and other mesh stuff.

Posted: Wed Feb 22, 2006 1:48 am
by Winny
no, duh, sorry I was half asleep when I did that.

Posted: Wed Feb 22, 2006 4:46 am
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?

Posted: Wed Feb 22, 2006 1:49 pm
by khazhyk
... 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...

Posted: Wed Feb 22, 2006 8:32 pm
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.

Posted: Sat Feb 25, 2006 10:36 pm
by OO7
hehe u said man pages, not main pages. didnt know there were man pages

Posted: Sat Feb 25, 2006 11:04 pm
by khazhyk
man pages, for manual pages...