Shuttle Train

by simwir

Want to get from one end of your big expansive base to the other? Hate running or driving cars? Then why not take the train. With this mod you get a quick and effective way to use your rail infrastructure for personal transportation.

Content
6 years ago
0.13 - 0.14
6
Trains

b Critical error when also using Dynamic Stops mod

7 years ago

Screenshot of error:
http://puu.sh/q32MI/6be2464acf.jpg

Link to incompatible mod:
https://forums.factorio.com/viewtopic.php?f=97&t=28771

After Dynamic Stops has renamed a stop, it is no longer possible to use Shuttle Trains in that save. Any attempt to open the shuttle train control window will produce this error. Removing any dynamic stops does not solve the problem.

Reproduction steps:
-place train stops and/or dynamic stops.
-Setup the Dynamic Control stop
-Feed any color signal to one of your dynamic stops
-Attempt to open Shuttle Trains GUI, either by the button or by boarding a shuttle
-Receive error

7 years ago

Since the other mod quick adds and replaces the stops that might be the reason, but this might fix it (untested):
On line 93 change: if string.find
To become this: if station.valid and string.find

It might break again on line 98 (the table.sort) though, if it does could just delete it for now (will not show things sorted then), or maybe try changing it to be this:

<pre class="highlight">table.sort(global.filtered_stations[player_id], function (a, b) if not a.valid or not b.valid then return false end return a.backer_name < b.backer_name end)</pre>
7 years ago

Heh, this mod site is really broken. Images do not lightbox properly all the time, the Discussion is random as to whether it loads or not, and even their markup breaks (the above was just ```). ;-P

7 years ago

This has now been fixed in the new release

New response