world weapon troubles

Questions and answers about the how and why of making maps.
Post Reply
User avatar
gentle giant
Private First Class
Private First Class
Posts: 144
Joined: Fri Feb 20, 2009 9:49 pm
Location: USA

world weapon troubles

Post by gentle giant »

First i went to the wiki, then to my map making friends, and then back to the wiki. Big help, but still doestn work :( . I dont know what im doing wrong but here is my code:

Code: Select all

Weapon
world weapon
position 0 0 15
color 3
initdelay 1
delay 10
type SW
end
(my tab wasnt working)

And then in my options block i have:

Code: Select all

-set _shockOutRadius 50
Plz help!

gentle giant
My motives from an awesome teacher:

"If life gives you lemons, make lemonade"

"If you fail to prepare, you prepare to fail"
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: world weapon troubles

Post by blast »

Code: Select all

weapon.bzw: warning (line 3): discarding incomplete object
weapon.bzw: warning (line 3): unknown object parameter "position" - skipping
weapon.bzw: warning (line 4): unknown object parameter "color" - skipping
weapon.bzw: warning (line 5): unknown object parameter "initdelay" - skipping
weapon.bzw: warning (line 6): unknown object parameter "delay" - skipping
weapon.bzw: warning (line 7): unknown object parameter "type" - skipping
I have no idea where you got "world weapon" from, because the example on the wiki sure doesn't have it. That should not be there. And it might not matter, but you should probably use a lowercase "weapon".
"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
gentle giant
Private First Class
Private First Class
Posts: 144
Joined: Fri Feb 20, 2009 9:49 pm
Location: USA

Re: world weapon troubles

Post by gentle giant »

ok i changed the lowercase but here is the link all of the map makers were telling me to go to: http://my.bzflag.org/w/World_Weapon
My motives from an awesome teacher:

"If life gives you lemons, make lemonade"

"If you fail to prepare, you prepare to fail"
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: world weapon troubles

Post by joevano »

And you didn't read it correctly as blast pointed out. Best I can tell your weapon should look like this:

Code: Select all

weapon
 name world_weapon
 position 0 0 15
 color 3
 initdelay 1
 delay 10
 type SW
end
I haven't tested it, but as you can see, you forgot the 'name' portion of the 'name' line.
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
User avatar
gentle giant
Private First Class
Private First Class
Posts: 144
Joined: Fri Feb 20, 2009 9:49 pm
Location: USA

Re: world weapon troubles

Post by gentle giant »

O...well i thoguht that was just an example name and did not read it correctly, i dont read anything correctly. gentle giant u noooooooooooooooob. Well thanks and that does work
My motives from an awesome teacher:

"If life gives you lemons, make lemonade"

"If you fail to prepare, you prepare to fail"
Post Reply