This map code works on Linux and Windows, probably all platforms ( i haven't had any complaints)
box
position -85.0 0.0 50.0
size 30.0 35.0 5.0
end
base
name the_base
position -85.0 0.0 55.01
size 30.0 35.0 0.0
color 1
end
it's inside a define block...
however, this code makes windows clients stuck on the base when they spawn..
box
position -85.0 0.0 50.0
size 30.0 35.0 4.0
end
base
name the_base
position -85.0 0.0 54.0
size 30.0 35.0 1.0
color 1
end
What am I doing wrong ??
Windows bug or is it me ?
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
why does this work?
This code works for windows ?!?
rounding error ?
Code: Select all
box
position -85.0 0.0 50.0
size 30.0 35.0 4.01
end
base
name the_base
position -85.0 0.0 54.01
size 30.0 35.0 1.0
color 1
end
- The Knights Who Say Ni
- Private First Class
- Posts: 556
- Joined: Mon Sep 26, 2005 7:21 pm
- Location: Uplyme, England
- Contact:
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
actually the box is at an altitude of 50 units and is 5 units high. the base starts at altitude 55.01 and is 0.0 units high. the base is on top of the box. and the code works on linux clients but not on windows clients.
in the second case which works for both clients the box is shortened by 1 unit and the base height is increased to 1 unit, which does not work on windows. Funny thing is the same style of code seems to work on other servers like CTFIsland hopping.
Its just a box with the base on top. adjusting the altitude up by 0.01 seems to fix it. I am running a server on a GNU/Linux box though,
my sescond post shows how I got the base to have some height. that code works for linux and windows clients. ??
in the second case which works for both clients the box is shortened by 1 unit and the base height is increased to 1 unit, which does not work on windows. Funny thing is the same style of code seems to work on other servers like CTFIsland hopping.
Its just a box with the base on top. adjusting the altitude up by 0.01 seems to fix it. I am running a server on a GNU/Linux box though,
my sescond post shows how I got the base to have some height. that code works for linux and windows clients. ??
- The Knights Who Say Ni
- Private First Class
- Posts: 556
- Joined: Mon Sep 26, 2005 7:21 pm
- Location: Uplyme, England
- Contact:
-
- Private First Class
- Posts: 220
- Joined: Tue Jul 26, 2005 10:32 pm
- Location: Gainesville Florida
The code is actually a fragment of a larger define block. The base sits on top of a structure. So getting rid of the box won't work. What I did find was that this code does work...
This code and lots of other stuff is inside a define like this
I still don't understand why the windows clients get stuck when spawning given the code in my very first post. Oh well, my problem has been solved...
thanks for the input.
btw...
The map can be seen at alachua.homelinux.net when it's up.
Code: Select all
box
position -85.0 0.0 50.0
size 30.0 35.0 3.0
end
base
name the_base
position -85.0 0.0 53.0
size 30.0 35.0 2.0
color 1
end
Code: Select all
define object
...objects...
enddef
group object
name the_object
team 1
spin 90.0 0.0 0.0 1.0
shift -105.0 0.0 7.5
end
thanks for the input.
btw...
The map can be seen at alachua.homelinux.net when it's up.