The International Simutrans Forum

 

Author Topic: [bug r2645] Height title reservation issues  (Read 2318 times)

0 Members and 1 Guest are viewing this topic.

Offline Amelek

  • *
  • Posts: 70
[bug r2645] Height title reservation issues
« 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4552
  • Languages: EN, DE, AT
Re: [bug r2645] Height title reservation issues
« Reply #1 on: September 13, 2009, 02:00:59 PM »
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.

Offline Amelek

  • *
  • Posts: 70
Re: [bug r2645] Height title reservation issues
« Reply #2 on: September 13, 2009, 04:17:32 PM »
perhaps something like
Code: [Select]
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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9383
  • Languages: De,EN,JP
Re: [bug r2645] Height title reservation issues
« Reply #3 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 :( )

Offline Amelek

  • *
  • Posts: 70
Re: [bug r2645] Height title reservation issues
« Reply #4 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.