Page 1 of 1

Unable to Drive on Boxes

Posted: Tue Apr 19, 2011 11:35 am
by sharktech
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.

Re: Unable to Drive on Boxes

Posted: Tue Apr 19, 2011 11:21 pm
by Tanx
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.

Re: Unable to Drive on Boxes

Posted: Wed Apr 20, 2011 8:31 am
by sharktech
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.

Re: Unable to Drive on Boxes

Posted: Thu Apr 21, 2011 12:05 am
by Tanx

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