The International Simutrans Forum

 

Author Topic: fundament for ways and buildings  (Read 3326 times)

0 Members and 1 Guest are viewing this topic.

Offline Leartin at

  • Devotee
  • *
  • Posts: 1197
  • PAK-DEV P192C
  • Languages: DE, EN
fundament for ways and buildings
« on: May 28, 2014, 01:47:46 PM »
The idea is simple, the execution probably not.

I'd like to be able to build stuff on top of other stuff.

What I think of: A parameter "build_on_top", if this is not 0, you can build on top of it in the height given by the parameter. As a building, it's like an artificial slope with a specific wall graphic. A building with that parameter can be replaced by another building with the same parameter, but they are not buildt naturally. The idea is to reproduce elevated ways with buildings underneath. To do so, the player would first build one appropriate building (he has only one available, that does not carry any windows or actual buildings inside, but just looks like a wall) and place the way above. Then, the city replaces the buildings while leveling up, so that the walls have different stores, factories or nightclubs in them. This image should show what I want to do with that:

But you could also use it for a tunnel portal, which would then be almost like a tunnel portal without slope, or enable it for ways, so that a Wall can be buildt on top of a wall, leading to user-definable wall heights - possibly with another way on top.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5472
  • Languages: EN, NO
Re: fundament for ways and buildings
« Reply #1 on: May 28, 2014, 02:16:19 PM »
This has been requested several times before. It should be added to the/a sticky list of popular requests so that we (hopefully) don't get a new topic about it every year.

Offline gauthier

  • Devotee
  • *
  • Posts: 3629
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: fundament for ways and buildings
« Reply #2 on: May 28, 2014, 07:19:08 PM »
Indeed, I already requested this (last year I think ? :D ).

Another use of this would be building elevated stations on station buildings. Currently, this is done through elevated ways but pillars ruin the result, the only solution is making fake elevated ways with no pillars ...
A such extension would be awesome.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18565
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: fundament for ways and buildings
« Reply #3 on: June 08, 2014, 09:48:04 AM »
This has been requested several times before. It should be added to the/a sticky list of popular requests so that we (hopefully) don't get a new topic about it every year.

That seems like a good idea.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES
Re: fundament for ways and buildings
« Reply #4 on: June 08, 2014, 10:44:27 AM »
A new kind of elevated track perhaps. ???

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5472
  • Languages: EN, NO
Re: fundament for ways and buildings
« Reply #5 on: June 08, 2014, 11:15:53 AM »
A new kind of elevated track perhaps. ???

The current elevated ways can already be built over buildings. The problem is that the buildings don't have relationship with the way passing above. They don't have the right height or roof shape to begin with, and can by default be replaced with something else at any time. Then there is the issue that buildings in Simutrans are not meant to be under player control, so some sort of interaction between the simulated urban planners in the cities and the players will be needed.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18565
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: fundament for ways and buildings
« Reply #6 on: June 08, 2014, 11:27:56 AM »
The current elevated ways can already be built over buildings. The problem is that the buildings don't have relationship with the way passing above. They don't have the right height or roof shape to begin with, and can by default be replaced with something else at any time. Then there is the issue that buildings in Simutrans are not meant to be under player control, so some sort of interaction between the simulated urban planners in the cities and the players will be needed.

In Experimental, there is a setting allowing one to restrict the maximum level of a building built beneath an elevated way or bridge, which by default is set to 2.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5472
  • Languages: EN, NO
Re: fundament for ways and buildings
« Reply #7 on: June 08, 2014, 11:55:59 AM »
In Experimental, there is a setting allowing one to restrict the maximum level of a building built beneath an elevated way or bridge, which by default is set to 2.

A maximum height constraint isn't enough. As mentioned, you also need an absolute height constraint (that is, the building must have a height of 2, no more and no less), as well as a constraint that the roof is flat and covers the entire tile. The building should also be of steel or stone-ish stuff, but not wood.

This is for being able to build ontop of other things, as per the text in the first post. In the picture, it is perhaps more so that the bridge / elevated railway was built first, and then buildings were built inside the arches. That would rather require a constraint that buildings match the bridge's arches.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18565
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: fundament for ways and buildings
« Reply #8 on: June 08, 2014, 12:18:47 PM »
Ahh, what Experimental does is more basic than what is being requested here: Experimental envisages bridges/elevated ways being built over normal buildings, whereas this request envisages buildings actually built into the arches of certain types of elevated ways and bridges, which is much, much more complicated.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5472
  • Languages: EN, NO
Re: fundament for ways and buildings
« Reply #9 on: June 08, 2014, 12:48:20 PM »
Ahh, what Experimental does is more basic than what is being requested here: Experimental envisages bridges/elevated ways being built over normal buildings, whereas this request envisages buildings actually built into the arches of certain types of elevated ways and bridges, which is much, much more complicated.

How I understood the request is that it should be possible to build tracks on building. Not over them, but directly on them. The image shows a quite normal viaduct, where buildings have been built in the arches afterwards. This can be solved quite differently from the text in the original post. It would not require any build_on_top parameter, but rather a fits_under reference to a bridge or elevated way. This won't work for tunnel openings, though.