News:

SimuTranslator
Make Simutrans speak your language.

[Patch] Contextual construction information: cost, length and modifier hints

Started by victor_18993, August 11, 2026, 06:28:45 AM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

prissi

Oh my, the bridges and tunnel code was quite broken, never checked for bridges and tunnels if there was no an insurmountable obstacle. Also could not start on slopes. Also the double slope bug fixed.

Nor the inital city road builder does quite impressive routes through alpine terrain.

You may want to play with the values of the new parameters
way_tunnel=10
way_bridge=8

If this works, we can think of the next release ...

Andarix

Quote from: prissi on Today at 04:39:15 AM....
If this works, we can think of the next release ...

Set up a tab and then cycle through the tabs.

prissi

That tool is not ready at all, but the way builder build on forbidden slopes was not ok.

That tool needs still a lot of work...

makie

That looks already very good.

Something isn't quite working right yet with bridges at double height differences. This works in version 2.5. See video. I don't know when that changed.
https://makie.de/dhb.webm
The video shows manual building. However, the Way builder don't build it that way either.

QuoteSet up a tab and then cycle through the tabs.


---------------------
Another video:
https://makie.de/dhb2.webm
Manually going over the embankment.
The WB refuses to build over the embankment and also over the DH slopes.

prissi

Double slopes cannot be a starting point for a bridges, since the way builder is not allowed to go there and test it. So it will start from the last accessible tile which is the flat tile before. Allowing this is tricky.

Building from vertical slopes is unlikely to be done by the way builder, as it normally does not construct those itself, and they would not occur in the game naturally.

About the images: There should be an empty image in the future, I mean an icon which means "no bridge" and "no tunnel".

Also the terraform flag should be separate from the rest. There is still plenty of work, this was mean as a first try. I still wonder, if it should not look like a toolbar, first icon tool, second icon way, third icon bridge, tunnel, and then flags as icons.

makie

I think the current solution is very good. Especially the fact that the settings are retained, even after saving and loading the game. Players typically build the same roads, bridges, and tunnels within a given era. So you don't have to select these settings each time; you can simply continue building as usual.
[de]
Ich finde die bisherige Lösung schon mal sehr gut. Speziell dass die Einstellungen erhalten bleiben, sogar über das Speichern und Laden vom Spielstand hinaus. Die Spieler bauen normal in einer Epoche immer die gleichen gewohnten Wege, Brücken und Tunnels. Das muss man also nicht jedes mal neu auswählen, sondern baut wie gewohnt weiter.

Quote from: prissi on Today at 01:43:19 PMI still wonder, if it should not look like a toolbar, first icon tool, second icon way, third icon bridge, tunnel, and then flags as icons.

The starting point for all considerations was: How can building be made easier on small screens like tablets and smartphones? Since the new Waybuilder allows you to build all types of paths, I'll add it to the main menu right before the line management. This way, the building menus, which are often quite extensive, can remain closed. This saves screen space. A compact format for the Waybuilder is therefore desirable. A detailed description of the path, the selected bridge, and the tunnel is only necessary when the selection needs to be changed. For normal building, the icon should suffice, I think. I'm considering a pop-up menu for when users want to change the settings.

[de]
Ausgangspunkt für alle Überlegungen war: Wie kann man das Bauen auf kleinen Bildschirmen wie Tablets und Handy erleichtern. Da man mit dem neuen Waybuilder alle Wege bauen kann, werde ich das im Hauptmenü gleich vor der Linienverwaltung einfügen. Dann können die Baumenüs geschlossen zu bleiben, die ja oft umfangreich sind. Das spart platz auf dem Bildschirm. Ein kompaktes Format des Waybuilder ist also erwünscht. Eine detaillierte Beschreibung des Wegs, der ausgewählten Brücke und des Tunnels ist nur erforderlich wenn die Auswahl geändert werden soll. Beim normalen Bauen reicht das Icon, denke ich. Ich denke bei der Auswahl an ein Popup-menü. wenn man die Einstellungen ändern will.

prissi

I thought of a toolbar with dropdown images for selection. So a toolbar with only six entries for all ways. But then, on a touch device, the cost information was lost, so I did the text comboboxes.

makie

Quote from: prissi on Today at 03:04:16 PMthe cost information was lost, so I did the text comboboxes.
ok

Is there any reason not to design the text combobox as a pop-up menu?
Or only to show it when you want to select something, i.e., when you click the icon?
[de]
Spricht etwas dagegen die Text Combobox als pop up menue zu gestalten?
Oder nur zu zeigen wenn man etwas auswählen will, also das icon anklickt?