project-navigation
Personal tools

Author Topic: Prob with stairs on +farm  (Read 6054 times)

Offline Thyranim

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Prob with stairs on +farm
« on: June 27, 2009, 12:44:53 am »
I'm using r24861 of odies build ( http://ufoai.ninex.info/forum/index.php?topic=3462.msg27717#msg27717 )
and not possible to go upstairs the houses...
is this a similar problem or another one? ^^

oh, map is "+farm"
there a something like warehouses (? correct word?) and normal houses.
stairs in normal houses are not working, others are... weird ...

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Prob with stairs on +farm
« Reply #1 on: June 27, 2009, 01:35:40 am »
Sorry, Thyramin, this may or may not be a different problem than the one you posted it to.
So I splitted the thread.

Do you have a screenshot ?

odie

  • Guest
Re: Prob with stairs on +farm
« Reply #2 on: June 27, 2009, 03:45:44 am »
I am in the midst of a recompilation of maps as of 24882.

Maybe give me 4-6 hrs (2 plus for recompilation and another 2 plus for upload), and it will be done. :D

No links yet, but will be at that usual thread. :D

Offline Thyranim

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Re: Prob with stairs on +farm
« Reply #3 on: June 27, 2009, 05:43:25 pm »
Sorry, Thyramin, this may or may not be a different problem than the one you posted it to.
So I splitted the thread.

Do you have a screenshot ?

ok, thanks for splitting

I am in the midst of a recompilation of maps as of 24882.

Maybe give me 4-6 hrs (2 plus for recompilation and another 2 plus for upload), and it will be done. :D

No links yet, but will be at that usual thread. :D

currently downloading and testing...
i'll give info...
oh, and then with screenshots ;)

Offline Thyranim

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Re: Prob with stairs on +farm
« Reply #4 on: June 28, 2009, 02:05:32 pm »
R24882 - problem still exists
Map: +farm

not possible to move first step of stairs (ufo00.jpg)
not possible to reach top floor (ufo02.jpg
not possible on other stairs in same building (ufo03.jpg)
without problems on this small stables ? (ufo08.jpg)

additional: Aliens and Civilists are able to use this staris...

[attachment deleted by admin]
« Last Edit: June 28, 2009, 04:29:16 pm by Thyranim »

Offline crazydog

  • Rookie
  • ***
  • Posts: 21
    • View Profile
Re: Prob with stairs on +farm
« Reply #5 on: June 30, 2009, 12:25:33 am »
still exist in 903

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Prob with stairs on +farm
« Reply #6 on: June 30, 2009, 07:53:09 am »
@Duke, something we should change in the map? Please assist me and i'll do it.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Prob with stairs on +farm
« Reply #7 on: June 30, 2009, 09:33:38 pm »
Mattn,
not sure. At least you can *check* some things in the map.

For the first part of the staircase in jpg03 ufo2map calculates a floor of 6, which is strange. I would expect an odd number, be it five or seven. So the first thing to check is that all steps are aligned to heights of 12,20,28,36,... mapunits.

Edit: jpg03
« Last Edit: July 01, 2009, 12:25:51 am by Duke »

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Prob with stairs on +farm
« Reply #8 on: July 01, 2009, 01:05:45 am »
The staircase in ufo00.jpg has the floor of the first part at 7.
You should try to move it very few mapunits (I guess 1-2) in the direction the stairs go up, so our 'height detecting beam' will hit one step lower, resulting in a floor of *5*.

(The height of a surface is detected by a 4x4 mapunits 'beam' in the very middle of the cell.)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Prob with stairs on +farm
« Reply #9 on: July 01, 2009, 08:46:55 am »
did i mention that we should really really really integrate this into uforadiant? it would help us to really fix a lot of map problems.

Offline Dorzak

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Prob with stairs on +farm
« Reply #10 on: August 01, 2009, 06:02:05 pm »
I have also noticed this.  Interesting I can start up the stairs if I crouch, but not get off the stairs on the second floor.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Prob with stairs on +farm
« Reply #11 on: August 02, 2009, 01:00:33 am »
This prob has already been analyzed. Mattn is currently too busy to do it *bg*.
If there is a mapper out there who can do and commit it:
move the whole stairway by 2 mapunits so the front of the first step aligns properly with a 32-boundary.
Note: that's just a solution for this very map!

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Prob with stairs on +farm
« Reply #12 on: August 05, 2009, 10:14:52 pm »
I found a way to circumvent the prob in the code. Committed as R25553.
All stairs on +farm now work (after a map-compile).

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Prob with stairs on +farm
« Reply #13 on: August 06, 2009, 07:32:58 am »
that's great news - maybe other stairs are fixed now, too?

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: Prob with stairs on +farm
« Reply #14 on: August 06, 2009, 10:43:02 pm »
Yes, the fix applies to a typical situation with indoor stairways.
From the code:
Code: [Select]
/* This function detects a special stairway situation, where one place is right
 * in front of a stairway and has a floor at eg.1 and a ceiling at eg.16.
 * The other place has the beginning of the stairway, so the floor is at eg. 6
 * and the ceiling is that of the higher level, eg.32.*/