The International Simutrans Forum

Development => Extension Requests => Topic started by: Leartin on May 28, 2014, 01:47:46 PM

Title: fundament for ways and buildings
Post by: Leartin 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:
(http://upload.wikimedia.org/wikipedia/commons/4/49/197R09180890_Blick_von_G%C3%BCrtelautobahn%2C_Stadtbahn_%28U6%29_Trasse_Richtung_Heiligenstadt%2C_Typ_E6%2C_Gleise_der_Franz_Josefs_Bahn.jpg)
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.
Title: Re: fundament for ways and buildings
Post by: Ters 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.
Title: Re: fundament for ways and buildings
Post by: gauthier 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.
Title: Re: fundament for ways and buildings
Post by: jamespetts on June 08, 2014, 09:48:04 AM
Quote from: Ters 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.

That seems like a good idea.
Title: Re: fundament for ways and buildings
Post by: Yona-TYT on June 08, 2014, 10:44:27 AM
A new kind of elevated track perhaps. ???
Title: Re: fundament for ways and buildings
Post by: Ters on June 08, 2014, 11:15:53 AM
Quote from: Yona-TYT on June 08, 2014, 10:44:27 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.
Title: Re: fundament for ways and buildings
Post by: jamespetts on June 08, 2014, 11:27:56 AM
Quote from: Ters on June 08, 2014, 11:15:53 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.
Title: Re: fundament for ways and buildings
Post by: Ters on June 08, 2014, 11:55:59 AM
Quote from: jamespetts on June 08, 2014, 11:27:56 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.
Title: Re: fundament for ways and buildings
Post by: jamespetts 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.
Title: Re: fundament for ways and buildings
Post by: Ters on June 08, 2014, 12:48:20 PM
Quote from: jamespetts 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.

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.