The International Simutrans Forum

Development => Bug Reports => Topic started by: Amelek on September 13, 2009, 09:02:14 AM

Title: [bug r2645] Height title reservation issues
Post by: Amelek on September 13, 2009, 09:02:14 AM
Simutrans seem to support height title reservation - it's impossible to build crossing bridges.

However, behavior of this feature is inconsistent / bugged.

a) City / factory / curiosity builder completely ignores height factor. It's possible to build bridge over every city and factory, no matter how high it is. Also, city buildings will pop under bridges overlapping them.
b) While power line builder takes height title into account - it's impossible to build lines under bridges, it doesn't reserve it after construction. It's still possible to build bridges over already created lines.
Title: Re: [bug r2645] Height title reservation issues
Post by: Dwachs on September 13, 2009, 02:00:59 PM
Quote from: Amelek on September 13, 2009, 09:02:14 AM
Simutrans seem to support height title reservation - it's impossible to build crossing bridges.
but you could bridge ending at elevated ways.
Quote
a) City / factory / curiosity builder completely ignores height factor. It's possible to build bridge over every city and factory, no matter how high it is. Also, city buildings will pop under bridges overlapping them.
Simutrans does not know the height of buildings. The logic for this is completely missing - also with respect to the data (pak) files.
Quote
b) While power line builder takes height title into account - it's impossible to build lines under bridges, it doesn't reserve it after construction. It's still possible to build bridges over already created lines.
Yes this is inconsistent.
Title: Re: [bug r2645] Height title reservation issues
Post by: Amelek on September 13, 2009, 04:17:32 PM
perhaps something like TitlesUp[x][y] = n, TitlesDown[x][y] = k could be added to pak and game logic. It also doesn't make sense to build tunnels under oilfield or oil pump.
Title: Re: [bug r2645] Height title reservation issues
Post by: prissi on September 13, 2009, 08:11:03 PM
This is under consideration; but so far underground tiles without ways, i.e. fundations only) are not included. With those, oilfield and coal mine reservations underground would be easy. (Only factorybuilder needs to check for track too :( )
Title: Re: [bug r2645] Height title reservation issues
Post by: Amelek on September 13, 2009, 08:22:56 PM
I suppose every field could just hold array of for example 255 booleans representing if height title of selected height (as far as I know, there is a limit how deep tunels might go, or how high mountain might possibly be) is occupied. Then, each building could just intersect it with it's own height map and check if it's empty. This shouldn't be hard to code.