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

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

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

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

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

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 » Wed Feb 22, 2006 1:48 am

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

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?

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 » Wed Feb 22, 2006 1:49 pm

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

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 » Sat Feb 25, 2006 10:36 pm

hehe u said man pages, not main pages. didnt know there were man pages

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 Feb 25, 2006 11:04 pm

man pages, for manual pages...
Image

Post Reply