Logistics Wagon+


Adds customizable logistic train wagons with item filters and templates. If there are any errors or issues please let me know and I will get them fixed ASAP

Tweaks
5 months ago
2.0
168
Logistics Trains Storage
Owner:
Ollie59441
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
5 months ago
Latest Version:
0.1.2 (5 months ago)
Factorio version:
2.0
Downloaded by:
168 users

Logistics Wagon+
Version 0.1.0

Overview
Logistics Wagon+ adds powerful, per-wagon item filters to the vanilla cargo wagon. Now you can designate exactly which items each wagon will accept, and any rogue stacks get automatically routed back into your storage network—no waste, no manual sorting.

Key Features

Per-wagon filter GUI
Open any cargo wagon and click the new “Wagon Filters” frame to pick allowed items or apply one of your custom templates.

Filter templates
Predefine groups like “Base Resources” or “Science Packs” in templates.lua, then apply them in one click.

Live enforcement
Every second, the script scans tracked wagons and returns any unauthorized stacks into nearby storage chests—keeping your trains pristine without losing items.

Zero item loss
Unwanted items are never destroyed, only bounced back into your storage network. No more missing ores or misplaced plates.

Lightweight & compatible
Works with unmodified cargo wagons—no new entities, no recipe conflicts, no extra tech tree entries. Drop it into your mods folder and you’re ready to go.

Configuration

  • static_items.lua
    The full list used for your GUI dropdown. Edit or extend with any item names you like.

  • templates.lua
    Define named filter sets (e.g. “Electronics,” “Military Supplies”). Templates are automatically listed in the wagon GUI.
    Usage Tips

Make sure your storage chests are within 5 tiles of your loading station so filtered items always find a home.
Combine with filter-inserters on your loading belts to preclude unwanted stacks even before they reach the wagon.
Tweak the radius or chest types in control.lua to fit large or compact train yards.
Enjoy cleaner, more efficient train logistics without rewriting your blueprints—Logistics Wagon+ gives you surgical control over every load!

This will also currently work with any logistics container labelled as 'storage'

I do have some additional changes I want to make but for now this works well enough to be useful.