Factorio

Wube Software · Simulation

Factorio patch notes · Jan 24, 2020

Experiment

Friday Facts #331 - 0.18.0 release & Train pathfinder changes

What's new in Friday Facts #331 - 0.18.0 release & Train pathfinder changes: 21 changes to Factorio, released Jan 24, 2020.

Content · 5

  • Water animation was added in 0.18.0.

    water animation
  • Tree animation was added in 0.18.0.

    tree animation
  • New explosions and damage effects were added in 0.18.0.

    explosions and damage effect
  • First work on new sound design was done in 0.18.0.

    sound design
  • Color correction using LUTs was added in 0.18.0.

    color correction

System · 5

  • The priority queue was replaced from a double-linked list to a binary min-heap over an array, giving about a 20% pathfinder speedup.

    pathfinder priority queue
  • Steam login was added in 0.18.0.

    steam login
  • A heuristic giving minimum cost to any goal was added, converting the search from Dijkstra to A*, which gave another performance increase.

    pathfinder search algorithm
  • Optimizations were made in 0.18.0.

    optimization
  • A new particle system was introduced in 0.18.0.

    particle system

UI · 1

  • Main menu was redesigned in 0.18.0.

    main menu

Fix · 8

  • Opposite train stops in the first segment and goal train stops in the last segment no longer add a penalty; penalties apply only to exit stops in the current segment and opposite entrance stops in the next segment.

    pathfinder opposite station first segment penalty
  • Single segment paths no longer take priority over shorter multi-segment paths; a marker node with the shortest single segment cost is used in the priority queue.

    pathfinder single segment path priority
  • The block distance from start is now updated correctly when a node is updated with a lower cost path, instead of retaining the old value.

    pathfinder block distance from start
  • Repathing no longer clears a train's counter of ticks waiting at a rail signal; the counter is cleared only when the train changes to a state other than waiting-on-signal.

    ticks waiting on signal cleared on repath
  • The starting segment cost now accounts for the train's position so both travel directions are compared correctly.

    pathfinder first segment train position
  • The last segment distance is now counted into the path penalty so the pathfinder no longer returns a path before it accounts for the final segment cost.

    pathfinder last segment distance penalty
  • When a node cost is changed on an existing node, the block distance from start is now also updated, fixing the wrong path choice.

    pathfinder block distance from start not updated
  • The opposite station in the last segment is now properly counted into the path penalty.

    pathfinder opposite station penalty

Also in this patch2

  • The expanding campaign was cancelled; the team is not currently pursuing a campaign, though one may be added after 1.0.

    campaign
  • The Character GUI was not included in 0.18.0 and was removed from that release; the work was discarded and restarted with a different team member.

    character gui