forked from 0ptera/Logistic-Train-Network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.lua
166 lines (165 loc) · 4.17 KB
/
settings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
--[[ Copyright (c) 2017 Optera
* Part of Logistics Train Network
*
* See LICENSE.md in the project directory for license information.
--]]
data:extend({
{
type = "bool-setting",
name = "ltn-dispatcher-enabled",
order = "aa",
setting_type = "runtime-global",
default_value = true
},
{
type = "int-setting",
name = "ltn-dispatcher-nth_tick",
order = "ab",
setting_type = "runtime-global",
default_value = 2,
minimum_value = 1,
maximum_value = 60, -- one stop per second
},
{
type = "int-setting",
name = "ltn-dispatcher-updates-per-tick",
order = "ac",
setting_type = "runtime-global",
default_value = 1,
minimum_value = 1,
maximum_value = 100, -- processing too many stops/requests per tick will produce lag spikes
},
{
type = "string-setting",
name = "ltn-interface-console-level",
order = "ad",
setting_type = "runtime-global",
default_value = "2",
allowed_values = {"0", "1", "2", "3"}
},
{
type = "int-setting",
name = "ltn-interface-message-filter-age",
order = "ae",
setting_type = "runtime-global",
default_value = 18000,
minimum_value = 0,
maximum_value = 2147483647, -- prevent 32bit signed overflow
},
{
type = "bool-setting",
name = "ltn-interface-message-gps",
order = "af",
setting_type = "runtime-global",
default_value = false
},
{
type = "bool-setting",
name = "ltn-interface-factorio-alerts",
order = "ag",
setting_type = "runtime-per-user",
default_value = true
},
{
type = "bool-setting",
name = "ltn-interface-debug-logfile",
order = "ah",
setting_type = "runtime-global",
default_value = false
},
{
type = "int-setting",
name = "ltn-dispatcher-requester-threshold",
order = "ba",
setting_type = "runtime-global",
default_value = 1000,
minimum_value = 1,
maximum_value = 2147483647, -- prevent 32bit signed overflow
},
{
type = "int-setting",
name = "ltn-dispatcher-provider-threshold",
order = "bb",
setting_type = "runtime-global",
default_value = 1000,
minimum_value = 1,
maximum_value = 2147483647, -- prevent 32bit signed overflow
},
{
type = "bool-setting",
name = "ltn-dispatcher-schedule-circuit-control",
order = "ca",
setting_type = "runtime-global",
default_value = false
},
{
type = "int-setting",
name = "ltn-dispatcher-depot-inactivity(s)",
order = "cb",
setting_type = "runtime-global",
default_value = 5, --5s
minimum_value = 1, --1s
maximum_value = 36000, -- 10h
},
{
type = "int-setting",
name = "ltn-dispatcher-stop-timeout(s)",
order = "cc",
setting_type = "runtime-global",
default_value = 120, --2min
minimum_value = 0, --0:off
maximum_value = 36000, -- 10h
},
{
type = "int-setting",
name = "ltn-dispatcher-delivery-timeout(s)",
order = "cd",
setting_type = "runtime-global",
default_value = 600, --10min
minimum_value = 60, -- 1min
maximum_value = 36000, -- 10h
},
{
type = "bool-setting",
name = "ltn-dispatcher-requester-delivery-reset",
order = "ce",
setting_type = "runtime-global",
default_value = false
},
{
type = "bool-setting",
name = "ltn-dispatcher-finish-loading",
order = "cf",
setting_type = "runtime-global",
default_value = true
},
{
type = "bool-setting",
name = "ltn-depot-reset-filters",
order = "da",
setting_type = "runtime-global",
default_value = true
},
{
type = "double-setting",
name = "ltn-depot-fluid-cleaning",
order = "db",
setting_type = "runtime-global",
default_value = 0,
minimum_value = 0
},
{
type = "int-setting",
name = "ltn-stop-default-network",
order = "ea",
setting_type = "runtime-global",
default_value = -1, -- any
},
{
type = "bool-setting",
name = "ltn-provider-show-existing-cargo",
order = "eb",
setting_type = "runtime-global",
default_value = true
},
})