Transport Fever 2

Transport Fever 2

Create your own game world!
Give your game a personal touch and change it to your liking. Create, share and install mods. Customize the game with new landscapes, vehicles, stations, assets and more.
trekxor 28 Jun, 2024 @ 6:37am
Is anyone thinking about a "Picker" mod?
...you know like an eye dropper, a pipette, to copy the type of road/ rail/ so on, etc...
that would be awesome
< >
Showing 1-9 of 9 comments
VacuumTube 32 29 Jun, 2024 @ 2:26am 
Definitely needed, but no official way to mod. The only one capable of doing that would be eis_os (CommonAPI)

Thus, we need to gracefully ask Urban Games to add this in the next update...
trekxor 3 Jul, 2024 @ 2:31am 
:steamthumbsup:
eis_os 2 7 Jul, 2024 @ 1:17am 
This will likely a feature of one of the next CommonAPI2 versions.

The internal dev version CommonAPI2 inspector window does support Streets, Tracks, Depots and Track & Road Constructions currently.

It will selects the right build category (track, road, water, air, industry), then the tab, switch the filter to all and selects the list element.

There are some technical problems:
The used construction template is not saved in a ecs::component::Construction. So my code will select the first visible Construction Template of this construction.

Example: If you build a cargo modular train station, it can’t determine it’s the cargo variant, so it will select the passenger variant instead. Settings of a construction won’t be restored into the ui.

You need to cast to the internal UI List Element of a ConstructionList, this is only possible with my native code addon...
lollus 15 10 Jul, 2024 @ 7:50am 
If you want to see the properties of a piece of road, there is something like that in the Street Fine Tuning. If you want to lay a new piece of road of the same type, the standard menu is easy enough.
VacuumTube 32 10 Jul, 2024 @ 2:16pm 
Well, there are plenty of street mods and sorted into categories I forget... or say tracks, finding the right speed and type can be annoying. Sure I can use the Info Tool to find out the name, then search for the name and then find out which of the 5 with the same name it actually is...

Parameters are another thing. It would be useful if the parameters of the selected element (catenary, tram, busline) are also used.
Last edited by VacuumTube; 10 Jul, 2024 @ 2:17pm
eis_os 2 11 Jul, 2024 @ 12:47am 
As always there are different ways to solve the problem.


The goal was to get a picker tool:

For me a tool has these requirements:

1) I select something on the map with a cursor
2) It shows me and selects me the right element in the ui,
3) I can tweak settings *
4) I can select more stuff in the same category


My goal was to add my nodeditor into the street selection window.
So I thought about picker tool anyway.
Then I thought selecting assets and construction would be nice.

This resulted into a totally time eater without much further progress.


* I could somehow switch to a build cursor with some settings with enough effort, but without a ui to change settings this will be pointless.
lollus 15 11 Jul, 2024 @ 1:21pm 
I would not waste your time on a picker tool - if it was my time. The node editor is one of the things that are really missing in the game. Are you the guy who made ttd patch?
Last edited by lollus; 12 Jul, 2024 @ 7:08am
eis_os 2 12 Jul, 2024 @ 1:09am 
I contributed to TTDPatch, I was responsible for canals, bus stops on roads or irregular stations and to raise the sprite limit.

So I play with binary code more then with models and textures ..
lollus 15 12 Jul, 2024 @ 7:09am 
This might not be the right place to ask, but would you share the code of the common api?
Last edited by lollus; 12 Jul, 2024 @ 7:09am
< >
Showing 1-9 of 9 comments
Per page: 1530 50