I'm stumped...

Questions and answers about the how and why of making maps.
Post Reply
User avatar
*Boinkage*!
Private First Class
Private First Class
Posts: 195
Joined: Wed May 02, 2007 1:49 am
Location: Behind you with a stealth flag.

I'm stumped...

Post by *Boinkage*! » Thu Sep 20, 2007 11:42 pm

After searching for a while, I am unable to find something on this problem. I created a physics driver named

physics
name 1
linear 0.0 0.0 0.0
angular 0.0 0.0 0.0
slide 0.0
death dont touch
end

and

meshbox
name deathbox
position 0 0 0
rotation 0
size 10 400 500
phydrv 1

When I run bzfs, it says

Couldn't find physics driver: 1 (or whatever I call it)
Any clue why?
The Pen is Mightier Than the Sword.

Okay, you get a Bic, the orc gets a long sword.

He cuts the Bic in half.

Then he cuts you in half.

Oops, I meant quarters.

User avatar
Tanner
Private First Class
Private First Class
Posts: 575
Joined: Sat Sep 17, 2005 3:46 am
Location: Atl, GA
Contact:

Post by Tanner » Thu Sep 20, 2007 11:44 pm

Hi,

Try renaming the physics driver to a non-numerical name (like "a"). That will work.

-Tanner
Tanner - Segway HT i180 Red Owner - Random Map Creator - BZStocks - TS Software

Image

User avatar
Macrosoft
Private First Class
Private First Class
Posts: 142
Joined: Fri May 04, 2007 2:21 am

Post by Macrosoft » Thu Sep 20, 2007 11:47 pm

EDIT: never mind, tanner beat me to it

try changing the name to a string without numbers:

Code: Select all

physics
 name cantTouchThis
 linear 0 0 0
 angular 0 0 0
 slide 0
 death dont touch
end

meshbox
 name deathbox
 position 0 0 0
 rotation 0
 size 10 400 500
 phydrv cantTouchThis
end
by the way, you can omit parameters like rotation, linear, angular and slide if you arent using them.
gazz: A bullet may have your name on it, but shrapnel is addressed "to whom it may concern".
http://bash.org/?785529

User avatar
Peter
Private First Class
Private First Class
Posts: 354
Joined: Tue Jan 23, 2007 5:44 pm
Location: 127.0.0.1
Contact:

Post by Peter » Thu Sep 20, 2007 11:54 pm

Also, you don't need all that other stuff, this works fine as a physics death..

Code: Select all

physics
name GOAT!
death CAMEL!
end
I found out that you couldn't name physics with numbers the hard way :|
I think the same goes for other stuff like textures.
“Roses are #FF0000, violets are #0000FF, all of my base are belong to you.” ~ Nerd on Colour

User avatar
*Boinkage*!
Private First Class
Private First Class
Posts: 195
Joined: Wed May 02, 2007 1:49 am
Location: Behind you with a stealth flag.

Post by *Boinkage*! » Fri Sep 21, 2007 12:11 am

I am using something different (just an example). I'll try the different stuff, then edit when I finish

My last attempt will probably to copy that code exactly and see if it works.

EDIT: A copy and paste worked, I'm trying to figure out why. Does it matter where I put the physics name? It WAS at the bottom, now it's above the deathwall.
The Pen is Mightier Than the Sword.

Okay, you get a Bic, the orc gets a long sword.

He cuts the Bic in half.

Then he cuts you in half.

Oops, I meant quarters.

User avatar
blast
General
General
Posts: 4756
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast » Fri Sep 21, 2007 1:09 am

Yeah, probably has to be defined before you use it.
"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
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 » Fri Sep 21, 2007 10:04 am

If you want to call phydrvs by number, they start at 0, not 1. And you don't need to define that as a name - it just goes in the order of phydrvs in the map file.

If you ask me, it's always way easier to name your phydrvs and textures something descriptive. For example i might use 'electricity-death' for a phydrv, or 'fence-barbs' for a texture.
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
XLR8
Private First Class
Private First Class
Posts: 18
Joined: Thu Sep 20, 2007 10:22 pm
Location: North Carolina, USA
Contact:

Post by XLR8 » Sat Sep 22, 2007 6:47 pm

Yes, I am positive that you have to define all the materials and physics and all that good stuff before you define the object that uses that material. I had that same problem you have until I moved all my physics and materials to the very top of the document, or at least before the object that uses the material/physics.
"When did I realize I was God? Well, I was praying and I suddenly realized I was talking to myself."
-- Peter O'Toole

"If you die in an elevator, be sure to push the Up button."
-- Sam Leventon

Post Reply