Transport Fever 2

Transport Fever 2

View Stats:
th0ma5 Jan 1, 2020 @ 2:13pm
Anyway to assign main depot for a line?
When duplicating trains or trucks they come from depots further away and takes them ages to get to their line. Would be good to be able to assign a main depot for each line.
< >
Showing 1-13 of 13 comments
Corporal Cal Jan 1, 2020 @ 2:31pm 
Of course, having trains take multiple lines will no doubt ruin the spacing or cause problems
Martin Jan 1, 2020 @ 5:49pm 
Originally posted by th0ma5:
When duplicating trains or trucks they come from depots further away and takes them ages to get to their line. Would be good to be able to assign a main depot for each line.

Outside of having only 1 depot for each line.. ie 1 train, 1 vehicle, 1 ship. etc..

Haven't nailed down exactly what causes this bug, it doesn't happen alot to me, mainly with vehicles sometimes with trains. I'm fairly sure it's the last depot used that spits them out tho. But for the most part, duplicates come from the nearest or only depot on the line.
canophone Jan 1, 2020 @ 6:02pm 
Originally posted by Martin:
Originally posted by th0ma5:
When duplicating trains or trucks they come from depots further away and takes them ages to get to their line. Would be good to be able to assign a main depot for each line.

Outside of having only 1 depot for each line.. ie 1 train, 1 vehicle, 1 ship. etc..

Haven't nailed down exactly what causes this bug, it doesn't happen alot to me, mainly with vehicles sometimes with trains. I'm fairly sure it's the last depot used that spits them out tho. But for the most part, duplicates come from the nearest or only depot on the line.

The cause is easy: specifically that no logic is built in for how it decides which depot to depart from.

Likely it would just find itself departing from the first depot in the table list of depots that is possible (depending how the data structure is defined in LUA/C++), without being given a per line preferred depot.
Last edited by canophone; Jan 1, 2020 @ 6:06pm
Gregorovitch Jan 2, 2020 @ 3:28am 
Someone suggested that it uses the nearest depot that is within your current field of view - ergo if you zoom in on your depot of choice the clone will spawn there. Haven't tested this theory yet, just thought it worth a mention.
RyanFireball Jan 2, 2020 @ 3:31am 
You can select both the unit to be duplicated and the depot of your choice at the same time. Just tick off both.
Last edited by RyanFireball; Jan 2, 2020 @ 3:32am
canophone Jan 2, 2020 @ 4:01am 
Originally posted by tomnilsson47:
You can select both the unit to be duplicated and the depot of your choice at the same time. Just tick off both.

Doesn't work.

Originally posted by Gregorovitch:
Someone suggested that it uses the nearest depot that is within your current field of view - ergo if you zoom in on your depot of choice the clone will spawn there. Haven't tested this theory yet, just thought it worth a mention.

Tried that, didn't work.

In programming it's a matter of "find one depot" among a list of possible depots. The way it's written in LUA implies the first depot among a table list of depots within a specific range of a certain point on the line.
Last edited by canophone; Jan 2, 2020 @ 4:03am
th0ma5 Jan 2, 2020 @ 5:38am 
If it was closest depot to the train you were duplicating that wouldn't be too bad, but it's not. I had one train duplicate come out of a depot that does not even connect with the line it's assigned which is daft. Hopefully the devs improve this.
Gregorovitch Jan 2, 2020 @ 6:38am 
Originally posted by canophone:
The way it's written in LUA implies the first depot among a table list of depots within a specific range of a certain point on the line.

Which equates to "totally ♥♥♥♥♥♥♥ random" to the player as they have no idea what order the depots are stored in in the tables.

Conclusion: cloning is a bust at the moment. Don't use it, build new trains manually.


RyanFireball Jan 2, 2020 @ 8:18am 
Originally posted by canophone:
Originally posted by tomnilsson47:
You can select both the unit to be duplicated and the depot of your choice at the same time. Just tick off both.

Doesn't work.

Works for me every time. You need to mark both the depot and the unit you are cloning.

canophone Jan 2, 2020 @ 10:08am 
Originally posted by tomnilsson47:
Originally posted by canophone:

Doesn't work.

Works for me every time. You need to mark both the depot and the unit you are cloning.

I've done exactly that. And fact is, it didn't work. It still came from a random depot that wasn't checked.
Last edited by canophone; Jan 2, 2020 @ 10:09am
steve silent Jan 2, 2020 @ 12:07pm 
I'm running a save that only uses cart/trucks etc, yes you can have multiple depots on a line but that line needs to be split between depots, so that each line drops off and picks up to next depot.

The difficulty is that it can take quite a while before it clicks but you can have multiple cargo being swapped at the same time and go in different directions dependent on where its final destination is.

It does work
It costs more to set up and between say 3 cities it can start good production between 3 - 7 years depending on length of the lines.
philmo Jan 2, 2020 @ 12:09pm 
I know the developers are a small team - but this is a prime example of where if they were just to issue some background with regards how this works today (even if it does not work well) -at least we would know pending an update in a future patch.

I know with TPF1 when I had an issue with a specific save I emailed Urban games and they checked my save game for me and highlighted an issue (where a patch had affected the link proximity of a station vs food factory). At the time I found this so helpful - so why not issue some notes - say FAQ's to cover many of the points in this forum.
Gregorovitch Jan 2, 2020 @ 12:49pm 
Originally posted by philmo:
I know with TPF1 when I had an issue with a specific save I emailed Urban games and they checked my save game for me and highlighted an issue (where a patch had affected the link proximity of a station vs food factory).

Might be worth someone sending off a save file to them when they get a particularly insane clone spawn and ask them why. I would but I've got so out the habit of using clone now I doubt I'll get such a situation, until I get more solid info on WTF is going on with cloning anyways.
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Jan 1, 2020 @ 2:13pm
Posts: 13