Rail fix

by Pi-C

Factorio 0.17.75 broke many mods that introduce new types of rail tracks. This mod makes sure they have set the required collision mask in order to prevent game crashes. It is meant as a temporary universal fix until the other mods have been updated.

4 years ago
0.17
9

Changelog

Version: 0.17.1
Date: 2019-11-10T17:55:00+02:00
  Info:
    - Initial release

  Major Features:
    - Factorio 0.17.75 broke many mods that create new rails, resulting in crashes. This mod makes sure that all rails have a valid collision_mask. It has been tested with the following mods:
      - Bio Industries
      - Cargo Ships
      - Rail Types
      - Space Exploration
Version: 0.17.2
Date: 2019-11-16T00:00:00+02:00
  Bugfixes:
    - Fixed logic: If there is no collision_mask in the data stage, the default mask {"item-layer", "object-layer", "player-layer", "water-tile"} is used. This mod added just "object-layer" if no collision_mask was set. Mod authors may have consciously chosen to use the default mask, so changing it is wrong.

  Changes:
    - Optimized the code a bit.
Version: 0.17.3
Date: 2019-11-21T12:47:00+02:00
  Bugfixes:
    - Wrongly assumed that collision_mask of vanilla rails will always have default values. But mods may overwrite it ("Tiny Trains" did) and crash the game on loading.

  Changes:
    - Reset collision_mask of vanilla rails if it is set in in data stage. This will prevent crashes when Factorio is starting up, but may have affect the mod that changed the vanilla rails' collision_mask!