Files
project-cybersyn/cybersyn/settings.lua
Monica Moniot 7d2f0c2ccd Experimental 1.2.2 (#21)
---------------------------------------------------------------------------------------------------
Version: 1.2.2
Date: 2022-12-29
  Features:
    - Added a station combinator setting to enable or disable the inactivity condition in a train's orders, disabled by default (but not in <=1.2.1 worlds)
    - Added a depot combinator setting to enable depot bypass, enabled by default
    - Added a depot combinator setting to force trains to park at the same depot, enabled by default
    - Added network "each" for depots
    - Added a map setting to modify the default locked slots per cargo wagon value
    - Added a map setting to modify the default priority value
    - Added a map setting to allow trains with cargo at depots, disabled by default
  Changes:
    - Inverted the sign of combinator outputs, a map setting has been added to maintain backwards compatibility with <=1.2.1 worlds
    - Overhauled the wagon control combinator algorithm to spread items out between cargo wagons
    - Trains with cargo held in the depot now check if they have been emptied and reset when they have
    - Cargo capacity is now prioritized over distance when choosing trains
    - Increased the default request threshold to 2000
    - Improved English localization
  Bugfixes:
    - Fixed a bug where trains with cargo sometimes weren't getting held at depots
    - Fixed a crash caused by changing a station combinator to the "each" network during a bad tick
    - Fixed a crash when changing a refueler away from network each
    - Multiple rare bugs and crashes relating to wagon control combinators are fixed
    - Fixed a bug with refueler direct orders not being applied after moving through a space elevator
    - Fixed a bug where filtered slots sometimes weren't being removed
---------------------------------------------------------------------------------------------------
2022-12-29 11:02:07 -05:00

99 lines
2.0 KiB
Lua

--By Mami
data:extend({
{
type = "double-setting",
name = "cybersyn-ticks-per-second",
order = "aa",
setting_type = "runtime-global",
default_value = 30,
minimum_value = 0,
maximum_value = 60,
},
{
type = "int-setting",
name = "cybersyn-update-rate",
order = "ab",
setting_type = "runtime-global",
default_value = 2,
minimum_value = 1,
maximum_value = 2147483647,
},
{
type = "int-setting",
name = "cybersyn-request-threshold",
order = "ba",
setting_type = "runtime-global",
default_value = 2000,
minimum_value = 1,
maximum_value = 2147483647,
},
{
type = "int-setting",
name = "cybersyn-priority",
order = "bb",
setting_type = "runtime-global",
default_value = 0,
minimum_value = -2147483648,
maximum_value = 2147483647,
},
{
type = "int-setting",
name = "cybersyn-locked-slots",
order = "bc",
setting_type = "runtime-global",
default_value = 0,
minimum_value = 0,
maximum_value = 1000,
},
{
type = "int-setting",
name = "cybersyn-network-flag",
order = "bd",
setting_type = "runtime-global",
default_value = -1,
minimum_value = -2147483648,
maximum_value = 2147483647,
},
{
type = "double-setting",
name = "cybersyn-fuel-threshold",
order = "be",
setting_type = "runtime-global",
default_value = .5,
minimum_value = 0,
maximum_value = 1,
},
{
type = "double-setting",
name = "cybersyn-warmup-time",
order = "ca",
setting_type = "runtime-global",
default_value = 20,
minimum_value = 0,
maximum_value = 2147483647,
},
{
type = "double-setting",
name = "cybersyn-stuck-train-time",
order = "cb",
setting_type = "runtime-global",
default_value = 600,
minimum_value = 0,
maximum_value = 2147483647,
},
{
type = "bool-setting",
name = "cybersyn-allow-cargo-in-depot",
order = "cc",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "cybersyn-invert-sign",
order = "da",
setting_type = "runtime-global",
default_value = false,
},
})