SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedVehicles & ships

LTN Cleanup

by keombre · for Factorio

Sends LTN trains with remaining cargo to cleanup stops

34KDownloads
5 yr agoLast updated
MITLicense
1.1Latest game version

About LTN Cleanup

From Factorio Mod Portal

Sends LTN trains with remaining cargo to cleanup stops

About

Automatically sends LTN trains with remaining cargo to a cleanup stop.

This mod doesn't add any new train stops, instead, it uses the new rich text feature in stop names.

Usage

Firstly you will need to mark your cleanup stops (see Stop naming section on how). While you're at it you can (and probably should) also specify what that stop is capable of cleaning. You can specify any item or fluid, or you can use a special signal to describe all items. Please note, that the cleanup stop doesn't have to be an LTN stop, vanilla stops with a correct name work just fine.

After that the setup is complete. Now if any train leaves requester train stop with remaining cargo, the Cleanup dispatcher will plan a route to remove all items and fluids. Note, that it tries to use the wildcard stop as the last resort.

If there are no train stops capable of clearing the cargo, the dispatcher will simply send the train to the depot.

Stop naming

The syntax is very loose. You can have text between the rich text symbols and the symbols don't need to be in any specific order.

  • Any train stop containing the signal "LTN Cleanup stop" in its name will be marked as a cleanup stop.
  • Any other rich text symbol (item or fluid) in the name will mark that stop as capable of clearing that specific item or fluid.
  • You can have as many markers as you want.
  • Any stop marked with the signal "LTN Item cleanup" will accept any item.

Please note, that there is no wildcard stop for fluids. This is intentional since fluids cannot mix in pipes.

Also note, that if you have multiple wildcard cleanup stops, that have a different name, the dispatcher will choose one at random.

Sample stop names

An example is worth a thousand words

  • All items:
  • [virtual-signal=ltn-cleanup-station][virtual-signal=ltn-item-cleanup-station]
  • Basic vanilla fluids:
  • [virtual-signal=ltn-cleanup-station][fluid=water][fluid=steam]
  • Some vanilla burnables:
  • [virtual-signal=ltn-cleanup-station][item=wood][item=coal]
  • Or something crazy: This stop can process , but not iron
  • This stop [virtual-signal=ltn-cleanup-station] can process [fluid=water], [item=wooden-chest], but not iron

Of course, you don't need to write it by hand, Factorio has a rich text editor built right in.

LTN stop vs Vanilla

You can use either vanilla or LTN stops for cleanup. However, LTN stops allow you to set some limits on trains. This mod currently supports the following signals from LTN:

  • Minimum train length
  • Maximum train length
  • Encoded Network ID

Settings

  • Clean failed deliveries (bool, default false)

If delivery fails, cleanup will try to clean the train. The following situations may occur:

  • Train is empty - cleanup will send the train to depot
  • Train is not empty but hasn't arrived at requester - cleanup will add cleanup stops at the end of schedule, but will allow the train to finish its delivery
  • Train is not empty and is bound to depot - cleanup will send it to cleanup stops

Automated fluid stop generation

If you can't be bothered to set up your fluid void stops (as I couldn't) have a look at this little project: https://github.com/keombre/factorio-ltn-cleanup-station-gen

Currently, it generates stops only for pyanodons, but adding support for other modpacks shouldn't be that difficult.

Videos

Credits

Thanks to Optera for allowing me to use the LTN thumbnail and for support with the Factorio API.

Highlights

From source data

Game versions

Built for Factorio 1.1.

Footprint

Rated a light load on a server.

License

Published under MIT.

LTN Cleanup on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.0.17, released 2021-10-31

Run LTN Cleanup on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Vehicles & ships

Cars, boats, aircraft, ships and other things to drive or fly.

Runs on your server

From source side support

Factorio Mod Portal lists LTN Cleanup as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
1.1

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓Authorkeombre, as published on Factorio Mod Portal
  • ✓LicenseMITFree

LTN Cleanup, answered

Generated from the mod’s own source data.

Do my players need to install LTN Cleanup?

Factorio Mod Portal lists LTN Cleanup as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. LTN Cleanup is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run LTN Cleanup on a Factorio server.

Deploy in about a minute from $2.99 a month, then add LTN Cleanup in one click.