forked from jpanther/dectorio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
175 lines (159 loc) · 11.2 KB
/
config.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
167
168
169
170
171
172
173
174
175
-- Dectorio configuration
local DECT = {}
DECT.CONFIG = {}
-- CONFIGURABLE OPTIONS
-- ---------------------------------
-- These options can be changed to suit individual play-style
-- If playing multiplayer, ensure the same config.lua is used on each player's system
-- ---------------------------------
DECT.CONFIG.SIGNALS = {
-- All the signal colors to be changed/added
-- RGBA values from 0 to 1, alpha is optional
-- The order of the virtual signals is the order they will appear in-game
-- NOTE: New virtual signals will need localised names to be provided in '/locale/[language]/dectorio.cfg'
-- Color names are from Name That Color (http://chir.ag/projects/name-that-color/)
{type="virtual", name="signal-red", color={r=1.00,g=0.16,b=0.10,a=1.00}}, -- Scarlet
{type="virtual", name="signal-orange", color={r=0.99,g=0.44,b=0.22,a=1.00}}, -- Orange
{type="virtual", name="signal-tangerine", color={r=1.00,g=0.58,b=0.14,a=1.00}}, -- Tree Poppy
{type="virtual", name="signal-yellow", color={r=1.00,g=0.96,b=0.27,a=1.00}}, -- Lemon Yellow
{type="virtual", name="signal-green", color={r=0.00,g=0.95,b=0.17,a=1.00}}, -- Free Speech Green
{type="virtual", name="signal-cyan", color={r=0.01,g=0.98,b=1.00,a=1.00}}, -- Aqua
{type="virtual", name="signal-aqua", color={r=0.05,g=0.67,b=0.99,a=1.00}}, -- Spiro Disco Ball
{type="virtual", name="signal-blue", color={r=0.07,g=0.35,b=0.98,a=1.00}}, -- Crayon Blue
{type="virtual", name="signal-purple", color={r=0.65,g=0.38,b=0.99,a=1.00}}, -- Lavender Indigo
{type="virtual", name="signal-pink", color={r=1.00,g=0.42,b=0.99,a=1.00}}, -- Ultra Pink
{type="virtual", name="signal-maroon", color={r=0.50,g=0.00,b=0.00,a=1.00}}, -- Burnt Umber
{type="virtual", name="signal-brown", color={r=0.60,g=0.39,b=0.14,a=1.00}}, -- Cape Palliser
{type="virtual", name="signal-olive", color={r=0.50,g=0.50,b=0.01,a=1.00}}, -- Trendy Green
{type="virtual", name="signal-emerald", color={r=0.17,g=0.54,b=0.25,a=1.00}}, -- Goblin
{type="virtual", name="signal-teal", color={r=0.28,g=0.60,b=0.56,a=1.00}}, -- Breaker Bay
{type="virtual", name="signal-navy", color={r=0.00,g=0.00,b=0.50,a=1.00}}, -- Jacksons Purple
{type="virtual", name="signal-violet", color={r=0.56,g=0.12,b=0.70,a=1.00}}, -- Vivid Violet
{type="virtual", name="signal-black", color={r=0.22,g=0.13,b=0.56,a=1.00}}, -- Blue Gem
{type="virtual", name="signal-grey", color={r=0.80,g=0.80,b=0.80,a=1.00}}, -- Iron
{type="virtual", name="signal-white", color={r=1.00,g=1.00,b=1.00,a=1.00}}, -- White
{type="item", name="wood", color={r=0.57,g=0.36,b=0.12,a=0.86}}, -- Afghan Tan
{type="item", name="coal", color={r=0.17,g=0.17,b=0.17,a=0.86}}, -- Bunker
{type="item", name="stone", color={r=0.64,g=0.50,b=0.30,a=0.86}}, -- Muesli
{type="item", name="iron-ore", color={r=0.24,g=0.80,b=0.99,a=0.86}}, -- Picton Blue
{type="item", name="iron-plate", color={r=0.63,g=0.64,b=0.64,a=0.86}}, -- Grey Chateau
{type="item", name="steel-plate", color={r=0.80,g=0.80,b=0.80,a=0.86}}, -- Iron
{type="item", name="copper-ore", color={r=0.91,g=0.58,b=0.13,a=0.86}}, -- Carrot Orange
{type="item", name="copper-plate", color={r=0.92,g=0.59,b=0.46,a=0.86}}, -- Dark Salmon
{type="item", name="uranium-ore", color={r=0.69,g=0.96,b=0.18,a=0.86}}, -- Green Yellow
{type="item", name="sulfur", color={r=0.98,g=0.93, b=0.13,a=0.86}}, -- Lemon
{type="item", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}, -- Cornell Red
{type="item", name="logistic-science-pack", color={r=0.18,g=0.60,b=0.11,a=1.00}}, -- Forest Green
{type="item", name="chemical-science-pack", color={r=0.15,g=0.65,b=0.75,a=1.00}}, -- Blue Green
{type="item", name="military-science-pack", color={r=0.23,g=0.27,b=0.31,a=1.00}}, -- Limed Spruce
{type="item", name="production-science-pack", color={r=0.58,g=0.11,b=0.76,a=1.00}}, -- Dark Orchid
{type="item", name="utility-science-pack", color={r=0.81,g=0.69,b=0.08,a=1.00}}, -- Galliano
{type="item", name="space-science-pack", color={r=0.96,g=0.96,b=0.96,a=1.00}}, -- White Smoke
{type="item", name="transport-belt", color={r=0.90,g=0.75,b=0.10,a=0.92}}, -- Sunflower
{type="item", name="underground-belt", color={r=0.90,g=0.75,b=0.10,a=0.92}}, -- Sunflower
{type="item", name="splitter", color={r=0.90,g=0.75,b=0.10,a=0.92}}, -- Sunflower
{type="item", name="fast-transport-belt", color={r=0.84,g=0.08,b=0.02,a=0.92}}, -- Rosso Corsa
{type="item", name="fast-underground-belt", color={r=0.84,g=0.08,b=0.02,a=0.92}}, -- Rosso Corsa
{type="item", name="fast-splitter", color={r=0.84,g=0.08,b=0.02,a=0.92}}, -- Rosso Corsa
{type="item", name="express-transport-belt", color={r=0.02,g=0.60,b=0.83,a=0.92}}, -- Rich Electric Blue
{type="item", name="express-underground-belt", color={r=0.02,g=0.60,b=0.83,a=0.92}},-- Rich Electric Blue
{type="item", name="express-splitter", color={r=0.02,g=0.60,b=0.83,a=0.92}}, -- Rich Electric Blue
{type="item", name="electronic-circuit", color={r=0.18,g=0.60,b=0.00,a=0.92}}, -- Napier Green
{type="item", name="advanced-circuit", color={r=0.72,g=0.00,b=0.00,a=0.92}}, -- Guardsman Red
{type="item", name="processing-unit", color={r=0.27,g=0.26,b=1.00,a=0.92}}, -- Neon Blue
{type="item", name="burner-inserter", color={r=0.38,g=0.31,b=0.26,a=0.92}}, -- Saddle
{type="item", name="inserter", color={r=0.78,g=0.51,b=0.20,a=0.92}}, -- Golden Bell
{type="item", name="long-handed-inserter", color={r=0.76,g=0.20,b=0.13,a=0.92}}, -- Dark Pastel Red
{type="item", name="fast-inserter", color={r=0.27,g=0.45,b=0.58,a=0.92}}, -- Jelly Bean
{type="item", name="filter-inserter", color={r=0.45,g=0.27,b=0.54,a=0.92}}, -- Affair
{type="item", name="stack-inserter", color={r=0.56,g=0.63,b=0.16,a=0.92}}, -- Citron
{type="item", name="stack-filter-inserter", color={r=0.70,g=0.70,b=0.69,a=0.92}}, -- Magnesium
{type="fluid", name="water", color={r=0.00,g=0.43,b=0.75,a=0.68}}, -- French Blue
{type="fluid", name="crude-oil", color={r=0.10,g=0.10,b=0.10,a=0.68}}, -- Rangoon Green
{type="fluid", name="heavy-oil", color={r=0.63,g=0.05,b=0.00,a=0.68}}, -- Dark Candy Apple Red
{type="fluid", name="light-oil", color={r=0.71,g=0.42,b=0.00,a=0.68}}, -- Ginger
{type="fluid", name="petroleum-gas", color={r=0.38,g=0.13,b=0.38,a=0.68}}, -- Palatinate Purple
{type="fluid", name="sulfuric-acid", color={r=0.94,g=0.82,b=0.13,a=0.68}}, -- Broom
{type="fluid", name="lubricant", color={r=0.00,g=0.75,b=0.30,a=0.68}}, -- Dark Pastel Green
{type="fluid", name="steam", color={r=0.92,g=0.92,b=0.92,a=0.68}}, -- Gallery
}
-- ---------------------------------
-- STOP HERE! DO NOT CHANGE BELOW THIS LINE!
-- ---------------------------------
-- INTERNAL CONFIGURATION
-- ---------------------------------
-- In-game configurable settings
DECT.ENABLED = {
["signals"] = settings.startup["dectorio-signals"].value,
["walls"] = settings.startup["dectorio-walls"].value,
["landscaping"] = settings.startup["dectorio-landscaping"].value,
["waterfill"] = settings.startup["dectorio-waterfill"].value,
["wood-floor"] = settings.startup["dectorio-wood"].value,
["concrete"] = settings.startup["dectorio-concrete"].value,
["gravel"] = settings.startup["dectorio-gravel"].value,
["painted-concrete"] = settings.startup["dectorio-painted-concrete"].value,
["signs"] = settings.startup["dectorio-signs"].value,
["decoratives"] = settings.startup["dectorio-decoratives"].value,
["item-group"] = settings.startup["dectorio-item-group"].value,
}
-- The subgroups for all items in the mod
DECT.ITEM_GROUP = DECT.ENABLED["item-group"] and "dectorio" or "logistics"
DECT.CONFIG.SETTINGS = {
["decorative_removal_probability"] = settings.startup["dectorio-decorative-removal-probability"].value,
["vanilla_hazard_concrete"] = settings.startup["dectorio-vanilla-hazard-concrete-style"].value,
["painted_concrete_speed_modifier"] = settings.startup["dectorio-painted-concrete-speed-modifier"].value,
["landscaping_blueprintable"] = settings.startup["dectorio-landscaping-blueprintable"].value,
["flooring_stack_size"] = settings.startup["dectorio-flooring-stack-size"].value,
["landscaping_stack_size"] = settings.startup["dectorio-landscaping-stack-size"].value,
["walls_stack_size"] = settings.startup["dectorio-walls-stack-size"].value,
["waterfill_tiles"] = settings.startup["dectorio-waterfill-tiles"].value,
}
DECT.CONFIG.PAINT_VARIANTS = {
{name="danger", color={r=0.81,g=0.31,b=0.31}},
{name="emergency", color={r=0.86,g=0.36,b=0.38}},
{name="caution", color={r=0.85,g=0.56,b=0.26}},
{name="radiation", color={r=0.86,g=0.56,b=0.78}},
{name="defect", color={r=0.47,g=0.50,b=1.00}},
{name="operations", color={r=0.37,g=0.37,b=0.37}},
{name="safety", color={r=0.61,g=0.77,b=0.40}},
}
DECT.CONFIG.GRAVEL_VARIANTS = {
{name="stone", color={r=0.57,g=0.57,b=0.57}},
{name="iron-ore", color={r=0.45,g=0.54,b=0.64}},
{name="copper-ore", color={r=0.64,g=0.46,b=0.45}},
{name="coal", color={r=0.33,g=0.33,b=0.33}},
}
DECT.CONFIG.WATERFILL_TILES = {
["all"] = {"water", "deepwater", "water-green", "deepwater-green"},
["shallow"] = {"water", "water-green"},
["deep"] = {"deepwater", "deepwater-green"}
}
-- When changing these tables, the migration scripts need to be adjusted to compensate!
DECT.CONFIG.BASE_TILES = {"dry-dirt", "dirt-1", "dirt-2", "dirt-3", "dirt-4", "dirt-5", "dirt-6", "dirt-7", "sand-1", "sand-2", "sand-3", "grass-1", "grass-2", "grass-3", "grass-4", "red-desert-0", "red-desert-1", "red-desert-2", "red-desert-3"}
DECT.CONFIG.BASE_WATER_TILES = DECT.CONFIG.WATERFILL_TILES[DECT.CONFIG.SETTINGS["waterfill_tiles"]]
DECT.CONFIG.BASE_TREES = {"tree-01", "tree-02", "tree-03", "tree-04", "tree-05", "tree-06", "tree-07", "tree-08", "tree-09", "dead-dry-hairy-tree", "dead-grey-trunk", "dead-tree-desert", "dry-hairy-tree", "dry-tree", "tree-02-red", "tree-08-red", "tree-09-red", "tree-06-brown", "tree-08-brown", "tree-09-brown"}
DECT.CONFIG.BASE_ROCKS = {"rock-huge", "rock-big", "sand-rock-big"}
DECT.CONFIG.SIGN_CATEGORIES = {"item", "fluid", "tool", "ammo", "armor", "capsule", "gun", "module"}
DECT.CONFIG.SIGN_BLACKLIST = {"barrel", "loader", "simple%-entity", "player%-port", "computer", "coin", "small%-plane", "railgun", "vehicle%-machine%-gun", "tank%-machine%-gun", "signpost", "dect%-signal%-", "infinity%-chest", "infinity%-pipe", "heat%-interface", "pollution", "escape%-pod%-power", "dummy%-steel%-axe", "atlas", "crash%-site", "dect%-sign", "dect%-base"}
DECT.CONFIG.SIGN_WHITELIST = {"empty-barrel"}
DECT.INCOMPATIBLE = {}
DECT.INCOMPATIBLE.MODS = {
["Expanded_Color_Lamps"] = {
name = "Expanded_Color_Lamps",
component = "signals",
reason = "signals"
},
["Thaumaturgic-Machinations"] = {
name = "Thaumaturgic-Machinations",
component = "landscaping",
reason = "item"
},
-- ["PickerTweaks"] = {
-- name = "PickerTweaks",
-- component = "signals",
-- reason = "item",
-- setting = {type="startup", name="picker-better-lamp-colors", value=true}
-- },
}
DECT.DEBUG = false
return DECT