News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

fundament for ways and buildings

Started by Leartin, May 28, 2014, 01:47:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leartin

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.

Ters

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.

gauthier

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.

jamespetts

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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Yona-TYT

A new kind of elevated track perhaps. ???

Ters

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.

jamespetts

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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ters

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.

jamespetts

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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ters

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.