UFO:Alien Invasion

Archive => Bugs prior to release 2.3 => Topic started by: Thyranim on June 27, 2009, 12:44:53 am

Title: Prob with stairs on +farm
Post by: Thyranim 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 ...
Title: Re: Prob with stairs on +farm
Post by: Duke 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 ?
Title: Re: Prob with stairs on +farm
Post by: odie 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
Title: Re: Prob with stairs on +farm
Post by: Thyranim 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 ;)
Title: Re: Prob with stairs on +farm
Post by: Thyranim 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]
Title: Re: Prob with stairs on +farm
Post by: crazydog on June 30, 2009, 12:25:33 am
still exist in 903
Title: Re: Prob with stairs on +farm
Post by: Mattn on June 30, 2009, 07:53:09 am
@Duke, something we should change in the map? Please assist me and i'll do it.
Title: Re: Prob with stairs on +farm
Post by: Duke 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
Title: Re: Prob with stairs on +farm
Post by: Duke 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.)
Title: Re: Prob with stairs on +farm
Post by: Mattn 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.
Title: Re: Prob with stairs on +farm
Post by: Dorzak 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.
Title: Re: Prob with stairs on +farm
Post by: Duke 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!
Title: Re: Prob with stairs on +farm
Post by: Duke 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).
Title: Re: Prob with stairs on +farm
Post by: Mattn on August 06, 2009, 07:32:58 am
that's great news - maybe other stairs are fixed now, too?
Title: Re: Prob with stairs on +farm
Post by: Duke 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.*/