Unable to Drive on Boxes

Questions and answers about the how and why of making maps.
Post Reply
sharktech
Private
Private
Posts: 4
Joined: Fri Dec 18, 2009 3:45 pm

Unable to Drive on Boxes

Post by sharktech » Tue Apr 19, 2011 11:35 am

Aftnoon All

I've started to make my own map as i run a small league at work at dinner, the map i've made is attached and if you like can use it please bear in mind its my first one :D, the only prob i have is that some boxes i make cant be driven on and you get stuck. ive tried deleting them, creating from scratch, duplicating them, but its always the same, Has anyone had this before.
Attachments
sh4rk.bzw
sh4rk
(17.1 KiB) Downloaded 78 times

User avatar
Tanx
Private First Class
Private First Class
Posts: 125
Joined: Sat Mar 22, 2008 11:14 pm

Re: Unable to Drive on Boxes

Post by Tanx » Tue Apr 19, 2011 11:21 pm

I looked at it and I saw Z sizes such as this

Code: Select all

box

  name box_26

  position 167.344711 -183.877167 54.646706

  size 10.000000 197.924637 0.818888

end
When I replaced it with, say 1, there was no problem with it. I believe bzflag rounds the number after thousandths or ten thousandths. Including digits that exceed this is most likely the problem. BTW the map looks nice.
known as: Tanx, Eoncho, ckw.
Bzflag player since 2001.

sharktech
Private
Private
Posts: 4
Joined: Fri Dec 18, 2009 3:45 pm

Re: Unable to Drive on Boxes

Post by sharktech » Wed Apr 20, 2011 8:31 am

Thanks very much - worked a treat updated all to rounded figures, glad you like it - designed it using bzworkbench, the only prob with it is the teleporters dont work and you have to comment out manually the info section.

User avatar
Tanx
Private First Class
Private First Class
Posts: 125
Joined: Sat Mar 22, 2008 11:14 pm

Re: Unable to Drive on Boxes

Post by Tanx » Thu Apr 21, 2011 12:05 am

Code: Select all

teleporter
  position -335.667297 -307.327484 55.307499
  rotation 40.000000
  size 0.250000 5.000000 20.000000
  border 1.000000
end
you haven't named any of the teleporters, which is why the links appear like this

Code: Select all

link
  name link_142
# from:(unknown)
# to:(unknown)
end
here's an example of two correctly linked teleporters

Code: Select all

teleporter a
  position 400 0 0
  size 0.125 10 10
  border 1
end

teleporter b
  position -400 0 0
  size 0.125 10 10
  border 1
end

link
  from a:f*
  to b:f*
end

link
  from a:b*
  to b:b*
end

link
  from b:f*
  to a:f*
end

link
  from b:b*
  to a:b*
end
'a' and 'b' are the names of the teleporters, while the f and b after the colon in the link object are refering to the front or back face of the teleporter.

The bzflagwiki may prove helpful
http://my.bzflag.org/w/Teleporter
http://my.bzflag.org/w/Link
known as: Tanx, Eoncho, ckw.
Bzflag player since 2001.

Post Reply