News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

Station's extensions in ground (but not underground)

Started by gauthier, January 19, 2013, 06:24:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gauthier

The idea is very simple, just see this thread : http://forum.simutrans.com/index.php?topic=9225.0

In fact I see two solutions :
_ Adding a new type of station extension which can be built directly in a cliff (difficult since cursor can't be placed on a cliff + limited height).
_ Adding a new type of station extension whose roof can be built on (ie : roof seen as a tile by the game) -> probably easier to code, no height limit, no cursor problem. (and why not allowing several tiles high ones ?).

And some real examples to see what I am talking about :









greenling

Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

prissi

pak64 has such a station extension, which is a flat tile with a facade at its end. pak64.german as well.


greenling

Hello Gauthier
I can those building out the links be build on the gamemap.
(I must quickly in the Bed. I'm ill.) ::'(
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

prissi

No a building is (for now) expected to be on a ground (also elevated ground counst as ground).

Bear789

In my experience, you can build a bridge ove an existing station extension without the need to occupy adjacent tiles. You need to build a single tile station, use ctrl+click to add the extension building with the proper orientation, then build the bridge over it. There are usually some graphic layering glitches, but I suppose that if someone paints a bridge and an extension designed to work together like that, it can look good.

gauthier

I know that about bridges. However I suggest a proper and easier way to do that : the possibility of seeing the roof of a station hall as a tile which can be built on.

As you said, there are graphical glitches with current bridges tinkering. Moreover that's much more restrictive. In the example of the thread I linked in the first post, how would you do that ? You can't build a demi-bridge which stops in mid-air for example, with elevated ways you would have to build several layers of these, then destroy lower ones and finally hope to have two tiles high extensions to be built under.

prissi

Yaeh, but buildings on non-ground tiles is really something which would require changes at very many places. Rather put the facade on the tile before the bridge/elevated way works already.


Ters

Bridges and elevated roads create "grounds" in the air. However, those grounds come pre-filled with a way. Some kind of building/bridge hybrid could therefore perhaps work? It's not a very elegant solution, though.

mEGa

Just to feed discussion :

I begin to create metro station just for elevated railway :
http://forum.simutrans.com/index.php?topic=10126.msg109395#msg109395


I mean that create base on ground could improve this
Current projects in progress : improvements of few designed french paks

prissi

I understood. But why not doing what is already possible, as in the screenshot above.

If this is a bridge/elevated way or a bridge, you can even put an extension buuilding below too. Thus I really somewhat miss the point.

sdog

Extension buildings to exactly fit the arches could be done.

There might be graphics or clipping problems, but they would be an entirely differnent topic.

A different approach could be new elevated ways where the arches below are filled. To effectively do this, one would need to restrict the allowed ways and directions below an elevated way. (this is also something that might be interesting in a current discussion in pak128.britain.)

VS

I think the point is that the building below can not "mask" the bridge or elevated way above it, so it always looks like elevated way on something. The fake front solution needs surrounding the station from both sides. So you can't get "everything" at once...

After thinking a bit about it, the price for using fake fronts is just destroying more city houses :)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Fabio

Elevated ways which fill the ground (and need it to be empty) would be very nice. There could be nice embankments to be painted ;)

dennosius

How is this monorail depot programmed? When built on an elevated monorail track, a shed is automatically built below. Is that something hardcoded? If not, the same way could maybe used to build something stacked.

prissi

The shed is hardcoded, but also available as extension building. (Or was for some time at least.) A bilding below a brodge should overlay the pillar, especially, if it has its front image defined.

wlindley

Yes, in hausbauer.cc and possibly other places, the building name "MonorailGround" is magic.

There are many magic things sprinkled in the code, that really ought to be documented in the .dat part of the Wiki.  Ideally, behaviours like the automatic monorail foundation logic would be generalized instead of magic... someday...

Combuijs

Ah, a pity it only works for monorails. Other elevated ways (tracks, roads etc.) cannot do this trick. (In simwerkz.cc the function wkz_depot_t::work has a special case for monorail_wt).

Would it be an idea to make it a bit more general? When I build a depot on an elevated (railroad-)track it now "hangs" in the air. I was planning to have a look how it was solved for monorails and to use the same trick for this elevated depot, but that apparently won't work. As far as I could see the special case in wkz_depot_t::work for monorail_wt is easy extendable for all waytypes. The only strange thing is then that this foundation is still called "MonorailGround" whatever you use it for, but that is better than "hanging" depots, I feel. (The option to have different foundations for each waytype is a lot more work, I feel, it should be coded as a new object_type, I think).

Prissi, the shed is indeed also available as extension under the name "MonorailFoundation". But you can't build it under elevated track I think (but I will look into this in the weekend, as that would solve the hanging depot problem as well).
Bob Marley: No woman, no cry

Programmer: No user, no bugs



VS

Quote from: prissi on January 22, 2013, 11:17:05 PM
A bilding below a brodge should overlay the pillar, especially, if it has its front image defined.
Ha! Assuming that's true, it's worth one whole internets - as "already implemented" :)

Extensions can be already built under bridges and elevated ways; only, in some cases, a pillar has to be removed first :D




I can only second Combuijs' idea about auto-foundation for other waytypes.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Combuijs

Just to report that the MonorailFoundation can indeed be placed under elevated track. Currently its waytype is Monorail_track, but if you delete that from the source file (and type=shed also, because that won't do anything...) it can be built as a general extension (so it won't appear in the monorail menu anymore).
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Dwachs

The current monorail-depot-foundation stuff is kind of ugly.

It could be extended to all way-types. But it remains to specify rules for these kind of stuff. Under which conditions can something be build on elevated way, when should which foundation be placed. Should stacking be allowed?
Parsley, sage, rosemary, and maggikraut.

prissi

I certainly agree with Dwachs comments. Rather constrains for certain buildings nextto[NSWEupdown] could be the way to the future.

kierongreen

I like the constraints idea! So if a building was required by another it should be placed automatically, and if it can't be placed then construction of the first building should be forbidden?

prissi

Yes, something like that. Would require some changes of the icon to indicate suitable tiles or not.

VS

Maybe the cursor or some kind of preview would indicate this better?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

mEGa

I'm trying to create extension of station as japan extension models  for elevated Parisian stations project.



It is composed by 3 elements
- left : simple walls with murals
- centre : opened doors to issues
- right : little chops
You could put them as you will want.

Finally, is it good solution to offer realism isn't it ?

See french post to more details (Sorry only in french)
http://forum.simutrans.com/index.php?topic=8460.msg111317#msg111317
Current projects in progress : improvements of few designed french paks

greenling

Hello Mega
That Photo Looks very good out.
You have make a very good job.
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

gauthier

Once again, I'm aware of tricks like that, I have even created an elevated maglev way with no pillars for that use in MLM dev., however I would find more user-friendly to have buildings as I described here.

Wouldn't it be easier to code using some parts used by artificial slopes ?

Ters

Quote from: gauthier on January 27, 2013, 06:26:45 PM
Wouldn't it be easier to code using some parts used by artificial slopes ?

I don't think so, except for what artificial slopes, bridges, elevated ways and tunnels have in common already. Artificial slopes have no building aspects whatsoever. The vertical walls are drawn as part of the tile in front, or so I've read.

prissi

You could do this with only one foreground element with 16 rotations ...

wlindley

Quote from: mEGa on January 27, 2013, 12:55:58 PM
I'm trying to create extension of station as japan extension models  for elevated Parisian stations project.

You can easily create an elevated station that descends "below" its ground, using the x,y offset parameter for FrontImage, like this:

FrontImage[1][0][0][0][0][0]=elevated-station-with-lower-extension.0.0,0,32

Use Y offset = pakset_size/4, for example 32 with pak128. Note that if you build such a station on the ground, it will look very strange!

greenling

Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

AP

Has it just repeated the tiles down to give 3 storeys? It looks odd because the facade is flat. Other designs might work better in this scenario.

Look at London St Pancras - a tall brick facade,richly detailed and articulated, but each tier is very similar. Ditto a stone facade with classical columns, where the columns just get taller.




mEGa

Thank you Windley. Very interesting. I'll try to create them soon.
Current projects in progress : improvements of few designed french paks