Train Limit Linter


Displays info about train schedules and train limits. Allows the easy creation of new trains.

Utilities
6 months ago
1.1
459
Trains Blueprints

i Using a fake limit for dynamic stations

9 months ago

I've built a large base that almost entirely uses fixed train limits, except I have a central mall that uses dynamic limits to cut down on the size of the rail yard. This messes up the linter because it doesn't know how many spots are available, when in reality the dynamic stations have limits of either zero or one. This means I need to go down the list and check if they have 21/22, then check if the dynamic station is currently enabled to see if I need to spawn/remove trains.

Can we get an input field to say "assume dynamic stations have a limit of x"? Or can we have a way to say "ignore stations with dynamic limits" to achieve a similar effect. I don't want to name them differently to use the existing rules because that messes up the schedules in other silly ways.

I love this mod and I can't manage my train networks without it anymore. Thank you for your hard work. As a fellow modder, I totally understand if you think this is a ridiculous request.

9 months ago

Hi, glad to hear the mod is seeing use! I'll look into adding this feature, I think it makes sense, and based on what I recall about TLL's structure (I haven't worked on it in a little while...) it shouldn't be too hard to implement. Thanks for your feedback.

9 months ago

Thank you!

7 months ago

This is implemented in version 1.0.32. Sorry for the delay, I hope this is still relevant to you. Thanks again for your feedback. If you have any other ideas on how to improve the mod I'd love to hear them.

7 months ago

Thank you! This will be very helpful.

5 months ago

I tried it out (I have been taking a factorio break) and the special limits don't quite work. It seems to double-count them when finding the sum of limits and it doesn't flag it as "correct" when you reach N-1 trains.

Ex: I have 12 Plastic trains, and 13 parking spaces of non-limit train stations, and 1 dynamic station that currently has a limit of zero.

With the option turned off, the UI shows 12 trains with 13 spaces, but also has a warning saying there are dynamic limits and it does not flag the schedule as valid

When I turn the option on, now it says there are 10 total parking spaces, and it doesn't warn that there are too many trains.

I didn't see any obvious clues about why this happens in your mod code. It's puzzling. Maybe I should just wait for the expansion to come out...

5 months ago

Interesting, thanks for the feedback. I can have a look at this in the next few days.

New response