Source-checkedVehicles & ships

Some Train Stations Are Optional

by gust334 · for Factorio

if a station cannot be reached, it will be skipped if it starts/ends with '?'

183Downloads
4 mo agoLast updated
LGPL-3.0License
Factorio Mod PortalSource

About Some Train Stations Are Optional

From Factorio Mod Portal

if a station cannot be reached, it will be skipped if it starts/ends with '?'

This mod was inspired by KatherineOfSky who wanted special behavior for her "builder" trains, see Factorio Entry Level to Megabase 7, Ep 20.

Train stations with the question mark character as the first and/or last character of their name are "optional". If such a station cannot be reached from the current station (either no path, or all of the same name are all full / disabled), then the train will simply ignore it and go to the next named station on the schedule.

This mod is different from other existing mod(s) that try to accomplish something similar, in that it does not alter the schedule in any way. It merely watches the schedule (read-only) and changes how the game moves through it.

Stations may be enabled/disabled the conventional ways, with circuits or via train limits.

There are a lot of present limitations to this mod:

  1. It requires the train schedule to have at least two stops. One can't skip a stop if there is only a single stop on the schedule.
  1. It requires at least one train stop in the schedule to always be reachable. It works better (less game impact) if more than one train stop is reachable. An annoying thing happens when only one stop is reachable, every such train oscillates between waiting and arriving at the same station every alternate tick*.
  1. It requires each stop to have a wait condition. The wait condition can be as simple as wait for 0 seconds of inactivity, or any other desired wait condition. In other words, there needs to be a reason for the train to actually stop at the station. Without a wait condition, a train will sail right through at high speed.
  1. It requires a train to start from a station in the schedule. There could be cases where it will not go to the right station if a train starts away from a station and switches from manual mode to automatic.
  1. Bidirectional trains haven't been tested.

Tested with SpaceAge, but should work just as well/poorly with vanilla Factorio 2.0.

Contributors: Shemp provided the code changes to support Multiplayer without desyncing. THANK YOU!

  • Note Shemp also provided a patch to change this behavior, but it modifies the schedule by introducing a temporary stop. I do not plan to include this patch until I update the mod to make it something that can be enabled/disabled via a user-controlled mod option.

FAQ

  1. Does this work with multiplayer?

It does now, thanks to Shemp.

Highlights

From source data

Footprint

Rated a light load on a server.

License

Published under LGPL-3.0.

Last update

Its author last shipped an update 4 mo ago.

Some Train Stations Are Optional 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.3, released 2026-06-26

Recent builds

BuildReleasedGame versionsLoaders
1.0.32026-06-262.1n/a
1.0.22026-01-092.0n/a
1.0.12026-01-032.0n/a
1.0.02026-01-012.0n/a

Run Some Train Stations Are Optional 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 Some Train Stations Are Optional 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

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓Authorgust334, as published on Factorio Mod Portal
  • ✓LicenseLGPL-3.0Free

Some Train Stations Are Optional, answered

Generated from the mod’s own source data.

Do my players need to install Some Train Stations Are Optional?

Factorio Mod Portal lists Some Train Stations Are Optional as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Some Train Stations Are Optional is free to download from Factorio Mod Portal. Its license is LGPL-3.0.

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 Some Train Stations Are Optional on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Some Train Stations Are Optional in one click.