Smarter Trains


Train lines, automated refueling, 'dynamic' train schedules

Content
30 days ago
0.14 - 1.1
6.87K
Trains

b Combinators at Stations not clearing

7 years ago

Hey!
I'm using the "advanced setup" and even with it not beeing updated it seems to work. There is one problem though: The combinators at my depot sometimes do not clear their signals, so the depot still thinks a train is present.
http://steamcommunity.com/sharedfiles/filedetails/?id=926464313
In the screenshot you can see that no train is present, but only the far left station has cleared it's signals. I also found the stations to be outputting cargo, so i guess they just track some train, that is not there.

Hope someone can help me with this :)

7 years ago

Can you create a blueprintstring of the stations and a screenshot of the Trains schedule + the rules for that station? Or upload a save and PM me the link https://forums.factorio.com/memberlist.php?mode=viewprofile&u=1224

Also make sure the signals are actually set to something (i just got a trainstop showing the signal for a player in the train, but without a value set)

7 years ago

Thanks for the quick reply!

Blueprint: 0eNq1mMtymzAUht9Fy9bqIAkw9qKrvkUnk5FBcTQViBHCSSbjd68ECWAs2Yg2WTjDRR/n8p+jyzs4iJbVilca7N8Bz2XVgP3vd9DwY0WFvaffagb2gGtWgg2oaGmvFOUCnDeAVwV7BXt0ftgAVmmuOevHdxdvj1VbHpgyLwwjG23GHp817BAbUMvGjJKV/ZQh4Q14A3uIovN5c0XBEwrN/0BeNUxp8+QKA/GPpCdlPxJjZ8EVy/vn2AEmA1hIWjiB6BO4NbjPmFR1q4GDF08MZUzA/Jk1+ha0t/JArS0OXjLwSlbwtoRMGHcUz2EtBXOAoynYAUwD85G5INvF6SBB2cgGrrGtamqpNDwwcTOAidvPXaCfqQuCooHSGr2ro5Lm/12TyNzX9L5wEFrhe+z2HeEQs6MFZstW++wmq74Vr/pWHJjU2BmdZEUzQUvki9LQ6ke3qx9NCq2kQkBBy/oWD3c808u1kuLxwJ7piUtlX8u5yluuH82zYhj7xFWjH686/okr3VIxNv3+DUhADzdhs7MGjj7/7N2ypopq+zHwE5z7F6s+Wo1lI/tzVIxV02mCF8ZLU6uf5tlrfH44OxOXrW6GQ1yuLFKsmNuD40t70MQWe01SO+ktdOV6qNu3sV9RxfVzybRxy0T1wKsuqlfORR5hpu78j9RRAs0KDRRG0dYk+60LNRh7ZM1U/2QPvpuRfSWvZJ8DEkbmCXswg7FfcNtZWlA2uzEn+iSJo8COhJ0UFD6fLmpIGC9f3kQLVjeYBKt0Qv9KWdrgV5BqaAJ4rU1yqc1vK7RJghQ57wPzFoKzexJd2BNxHJoROE3JRD/x1yaI/Pdu8SssI/ciTiJfiJOwGndvYNLw5R12r+7wNhyFPKhsur4wmL6MGi1rWCv5+gZzqo7SX9Z43oU8KnriwrQzzwbTl+CPUoYf1na5bq140GT7uQkAupvEDImDkEKaWpOan8zud6ThgUaCaF20X+jRanmkxQMtDqLVtGlYdbwIXTSwkkA/X8zkDJ9aJqaWbXejq6kTeHl6QI05ooFSMTQNF0pHu7Zdnf7DzO8U+u6O0G/0ya9dU/+66ov/spT2NjESeQPgW1piV2UvM2O+gp4vg/HOZ2bgcZFzOUVweIP07KQJCUcRDypetpeL7mCSi6M4+CE0b4f2YdK1e6k4ZCtlZ13fVinzaWAbpgHnJp9ka05u0hUHN2QXLhHPmVU8FmneqhMrPH6jDrK7NDVxAdGaw5l0zdlMvOrMKbn/KaOfbg7ZTw6sN+BkVhP9gDjGSbTb4dTo4C+fYJuW

I have quite a few mods, so i think this will be easier.
The Train is only waiting for a signal:
http://steamcommunity.com/sharedfiles/filedetails/?id=926550310
And here is a screenshot, in which you can actually see the signals of the constant combinator in the tooltip (the train is currently filling up somewhere else, but the signal still appear, it even shows the current load):
http://steamcommunity.com/sharedfiles/filedetails/?id=926550103
This does not happen every time, sometimes the combinator works perfectly fine, and only shows the number for the station.
Seems to me like the station doesn't realise that the train is gone :|

7 years ago

I guess the forum does not like long lines, so here is the message again with line breaks added:

Thanks for the quick reply!

Blueprint: 0eNq1mMtymzAUht9Fy9bqIAkw9qKrvkUnk5FBcTQViBHCSSbjd68ECWAs2Yg2WTjDRR/n8p+jyzs4iJbVilca7N8Bz
2XVgP3vd9DwY0WFvaffagb2gGtWgg2oaGmvFOUC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WAbpgHnJp9ka05u0hUHN2QXLhHPmVU8FmneqhMrPH6jDrK7NDVxAdGaw5l0zdlMvOrMKbn/KaO
fbg7ZTw6sN+BkVhP9gDjGSbTb4dTo4C+fYJuW

I have quite a few mods, so i think this will be easier.
The Train is only waiting for a signal:
http://steamcommunity.com/sharedfiles/filedetails/?id=926550310
And here is a screenshot, in which you can actually see the signals of the constant
combinator in the tooltip (the train is currently filling up somewhere else, but the
signal still appear, it even shows the current load):
http://steamcommunity.com/sharedfiles/filedetails/?id=926550103
This does not happen every time, sometimes the combinator works perfectly fine, and only
shows the number for the station.
Seems to me like the station doesn't realise that the train is gone :|

7 years ago

And now I also have Trains randomly forgetting the line they're on
(The active box keeps getting unticked every now and then)
That means they will go to the wrong stations

So maybe its just the many mods that cause a problem :(

7 years ago

Please post your mod-list.json (it's in the mods folder)

I'll probably have an update that changes how/when the combinators are updated (and removes the cargo output from it) out on late tuesday/wednesday. That should at least fix your first issue.

7 years ago

Fixed it by deconstructing and rebuilding one of the trains, that propably buged out. Thanks for your help anyways :) No idea why it happend though.

7 years ago

I think it may be that SmartTrains somehow detected one or more train multiple times
If it happens again/still can you type :
/c game.player.print((#game.player.surface.get_trains()))
and compare the number it prints to the one that SmartTrains show in the settings menu? I suspect that SmartTrains shows more (Even in my small testmap it shows 9 versus the 8 from the command)

Guess i should start rewriting the tracking. Luckily we got some new stuff in the API for that

7 years ago

It is tracking one extra, even now when everything seems to work fine.

New response