Train Supply Manager (TSM)


Control train scheduling via a publish/subscribe event based system. Easy to use, and stress tested to gigabase level. Includes automated refueling. Distributed priorities for sourcing, and request priorities. Setup via simple to use GUIs and basic combinators.

Content
a month ago
0.17 - 2.0
17.7K
Trains

g fixed [2.0.3] TSM and Factorio 2.0

3 months ago

Hello LordKTor,
Firstly, allow me to say thank you for your terrific mod. I have played countless Factorio games using your mod. It has improved the game substantially and made Factorio my favourite game of all time (I say that as I approach 70 yo)
Like most everyone on these forums, I have been enthralled by the Friday Facts and I look forward to Factorio 2.0 and to Factorio Space Age due out on October 21, 2024. I see that they plan to enhance trains in version 2.0 and this all looks pretty promising.
I do hope that, regardless of the train control improvements (FF#389), you will be able to continue to provide your Train Supply Manager Mod. Are you able to advise of your plans in this regard?
In any case, again, thank you for your excellent mod, for the tutorials you created and for the support you provided (to me and no doubt others) when I first started using the mod. Thank you and be well.

2 months ago

Having played 2.0 with beta access since the start of the month, I am not sure TSM is needed anymore.

The train interrupts are very powerful. You can have a central depot of empty trains. When the stations have resources to collect they can increase their station limits. The interrupt will trigger a train to pick up resources from the depot.

If you need a station to have priority you can either set the value manually or with a signal. Using a memory circuit you could slowly increase the priority over time and reset when a train arrives.

Fueling a train is also done using an interrupt.

The base we got running had zero schedules, everything ran off 4x interrupts and 2x train groups (one group for items, the other for fluids).

a month ago

Thanks for your comments. Seems there are thousands of folk who had access to the game early and to the developers too. Bet that helps.
It would be good if there were some instructions somewhere on how to make use of the 2.0 train system for average people who just purchased the DLC.
I tried a couple of YT videos and it is still as clear as mud to me. Nothing on the wiki either.
Seems that the game developers expect the player to have YT influencer or software developer skills to make full use of its capabilities.
By contrast the videos that LordKor created for TSM were great - very easy to understand and put into use.
I am sure somebody will do a Tutorial style eventually but what I have found is people showing off how clever they are with next to no explanation.

a month ago

TSM 2.0 Beta .. if you can test it .. https://filetransfer.io/data-package/Ju2Z24oO

a month ago
(updated a month ago)

Bill... I have to be honest here. I gave it my best shot using Interrupts and the new train capabilities.

I CAN'T GO BACK TO INFERIOR TECHNOLOGY. PILE OF CHAOS. The flopping over and unruly wiring mess of 2.0 trains is nothing like TSM. I'm not sure if I know how to test that file but I'll give it a go and get back to you here.

10 Minutes :Later: Couldn't get access or override Browser concerns. I'm hooped. I think I may have to take some time off Factorio ...

a month ago
(updated a month ago)

Bill, > TSM 2.0 Beta .. if you can test it .. https://filetransfer.io/data-package/Ju2Z24oO

I downloaded the zip OK. I placed train-pubsub_2.0.0.zip in the mods folder. Restarted the game. Found the TSM entry in the game had updated to 2.0. Yay !Enabled that mod (tick box) restarted game and got:

The mod Train Supply Manager (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event train-pubsub::on_configuration_changed
LuaSurface doesn't contain key get_trains.
stack traceback:
[C]: in function 'index'
__train-pubsub
/control.lua:106: in function <train-pubsub/control.lua:94>

Very pleased you might be able to get TSM to work with Factorio 2.0 - I wish you the best doing so. I will certainly watch to see if your successful...I hope so !

@mikerosoft666 - I have spent days screwing about with the trains system in 2.0. A guy @farazsth98 on YouTube has done a couple of videos that are promising (may be worth a look for you) but they do not address the ability to discriminate between liquid and item wagons. Despite his best efforts it is still a mess of combinators, green wires, red wires blah blah blah.

I am disappointed with the 2.0 DLC - it destroyed my save games, and most of my blueprints too, plus TSM doesnt work.
Like you, I think I will park Factorio - I did get lots of good years playing the game....over 6000 hours - yes, I am old and retired. (I just looked it up Steam says 6,225.4 hours)

a month ago

@SkerrittT .. can you send me your save file via discord @billbo99#8142 or post it on my server https://discord.gg/jRPB2SZBUk

a month ago

2.0.2 out

a month ago

Mike @mikerosoft666

See above 2.0.2 out

@billbo99 - your magic. Thank you.

a month ago

@Billbo99 - Much respect and appreciation for the time you have spent getting TSM back into the game. I can't thank you enough.

@SherrittT - same here - retired, big hours in the game. TSM is my path to Mega Base sustainability. I've always hit train gridlock because of the chaos in my Train schedule methods. TSM brings it into focus. And I finally just understood single station pulling multiple different resources using multiple requester lights and Factorio 2.0 dropped.... Aaaaarrrgghhhh so thanks to Billbo99. In the immortal words of Willie Nelson, "I'm on the road again"

a month ago

@Billbo99 FYI

This occurred when attempting to apply an upgrade BLUEPRINT that changes a vanilla Station to a Requester Station. Used to work in 1.1

Easy work around is to do it manually and that does not cause an error.

The mod Train Supply Manager (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event train-pubsub::on_robot_built_entity (ID 14)
train-pubsub/control.lua:2142: attempt to index local 'entity' (a nil value)
stack traceback:
train-pubsub/control.lua:2142: in function 'addPSToTable'
train-pubsub/control.lua:1382: in function <train-pubsub/control.lua:1380>

will continue to inform you of any other issues. Thanks again for your efforts in this.

a month ago

wube made changes to the API to make the verbs being used cleaner ..

created_entity .. got changed to .. entity

a month ago

fixed [2.0.3]

a month ago

@SkerrittT might want to watch .. https://www.youtube.com/watch?v=CbuE1NV0hfQ .. goes into some details about the 2.0 trains and stations

a month ago

So far running very well. Not sure if it's in my build but having a problem Shift Right / Shift Left property copying the Requester Lamp Resource info. First station is copper plate. Copy to next station and no resource id defined. Doing it manually and everything really smooth so no alarm bells.

Watched his video and it's great. TSM still easier to use.

a month ago

I have seen that video and got about 3/4 the way thru. Base on your recommendation I will take another look.
I notice it has a detailed contents listed in the opening comments so that helps.
The author does say "if you're an experienced player, that familiarity might make it harder to see and use some of the features. Further, some of them are just kind of technical" - and isn't that just so true. Parameterized blue prints, Interrupts, Interrupts of Interrupts, red cable, green cable, combinators, ..... my favorite : parametised interrupts... and on it goes.
Thank you for TSM. Factorio was about to go into the dead game archive folder... with TSM it will live on. Its been my favorite game for many years since its very Early Access release on Steam.....and I really thank you.

a month ago
(updated a month ago)

I use the empty trains feature. Seems there is a problem setting Station Enable Disable TSM's M < P . Also when I enter a Priority schema into the station it error messages with 'unknown item name: '
I do hope this is not hard to fix and that your happy to do so.
DM'd save file and screenshot.

a month ago

I haven't been using empty trains. I prefer lot's of local stacking and everybody is trying to *L so only use chain signals on the stacker to make'em wait their turn. Always have fully loaded or trying to stay fully loaded at the Supply depot. So far everything running very slick. Hope Billbo can find yer problem.

a month ago

Glad its working for you.
Dont know whats happening... maybe its my PC. Should be functioning OK as it is for you. I suspect I am wasting Billbo's time. Sorry Billbo.

a month ago

2.0.4 .. fixes the use of virual signals being picked

a month ago

Error details by DM+ new copy game file. Sorry mate.

a month ago

2.0.5 - That is working much better mate Thank you!

a month ago

Good morning,
having this issue:
TMS 2.0.6

Die Mod Train Supply Manager (2.0.6) hat einen Fehler verursacht, der nicht behoben werden kann.
Bitte informiere den Autor der Mod über diesen Fehler.

Error while running event train-pubsub::on_train_schedule_changed (ID 122)
train-pubsub/control.lua:3092: attempt to index field '?' (a nil value)
stack traceback:
train-pubsub/control.lua:3092: in function <train-pubsub/control.lua:3087>

a month ago

Got same error as above, sort of. On his own, didn't do anything related with rails at time of error:

The mod Train Supply Manager (2.0.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event train-pubsub::on_train_changed_state (ID 26)
Invalid ItemID: expected LuaItemPrototype, LuaItemStack, LuaItem or string.
stack traceback:
[C]: in function 'set_slot'
train-pubsub/control.lua:3072: in function 'updateCounters'
train-pubsub/control.lua:1732: in function <train-pubsub/control.lua:1670>

a month ago

hi .. will investigate

a month ago
(updated a month ago)

@Cyby .. I need a save file where this can be reproduced ... use this site to share up to 6gb for 3x weeks https://filetransfer.io

You can raise a ticket on my discord server .. https://discord.gg/jRPB2SZBUk