-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.lua
More file actions
430 lines (430 loc) · 16.3 KB
/
settings.lua
File metadata and controls
430 lines (430 loc) · 16.3 KB
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
data:extend({
{
setting_type = "startup",
type = "int-setting",
name = "propertyrandomizer-seed",
localised_name = "Random seed",
localised_description = "Changing this will change how everything is randomized.",
default_value = 0,
minimum_value = -9007199254740992,
maximum_value = 9007199254740992,
order = "a[seed]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-preset",
allowed_values = {
"default",
},
default_value = "default",
order = "ab[preset]",
hidden = true
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-watch-the-world-burn",
localised_name = "Watch the world burn",
localised_description = "Sets bias to worst, chaos to ultimate, adds tons of duplicates for a longer game, and turns on every randomization. Also includes a couple... \"tweaks\". Takes precedence over all below settings. Not necessarily compatible with mods other than Space Age, or with those who are faint of heart.",
default_value = false,
order = "az[burn]",
hidden = true,
forced_value = false,
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-bias",
localised_name = "Bias",
localised_description = "How much the randomization process should try to make things in your favor.",
allowed_values = {
"worst",
"worse",
"default",
"better",
"best"
},
default_value = "default",
order = "b-a[bias]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-chaos",
localised_name = "Chaos",
localised_description = "How random to make things. Play higher values at your own risk.",
allowed_values = {
"light",
"less",
"default",
"more",
"ultimate"
},
default_value = "default",
order = "b-ba[chaos]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-dupes",
localised_name = "Duplicates (beta)",
localised_description = "Whether to include duplicates of important recipes/entities/etc.",
default_value = false,
order = "b-z[dupes]",
-- Hidden while broken
hidden = true
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-logistic",
allowed_values = {
"none",
"less",
"default",
"more"
},
localised_name = "Logistics",
localised_description = "Randomize speeds of belts/inserters, lengths of underground belts, supply area of electric poles, and other logistical things.",
default_value = "default",
order = "c-a[logistic]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-production",
allowed_values = {
"none",
"less",
"default",
"more"
},
localised_name = "Production",
localised_description = "Randomize production capabilities of machines, like machine crafting speeds and module slots.",
default_value = "default",
order = "c-b[production]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-military",
allowed_values = {
"none",
"less",
"default",
"more"
},
localised_name = "Military",
localised_description = "Randomize gun shooting speeds, bonus damage, etc. Turn this down or off if you're having troubles with biter difficulty.",
default_value = "default",
order = "c-c[military]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-misc",
allowed_values = {
"none",
"less",
"default",
"more"
},
localised_name = "Extras",
localised_description = "Randomizes most other things that don't fit in another category. 'Most' randomizes basically every other property in the game except for those touched by other settings.",
default_value = "default",
order = "c-z[misc]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-simultaneous",
localised_name = "Simultaneous (beta)",
localised_description = "Performs randomizations simultaneously rather than all at once. Currently a WIP.",
default_value = false,
order = "d-a[simultaneous]",
hidden = true
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-technology",
localised_name = "Technologies",
localised_description = "Randomizes the technology tree (which techs are prerequisites to which other ones).",
default_value = false,
order = "d-c[technology]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-recipe",
localised_name = "Recipes",
localised_description = "Randomizes all recipe ingredients (not just the amounts).",
default_value = false,
order = "d-d[recipe]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-recipe-tech-unlock",
localised_name = "Recipe unlocks",
localised_description = "Randomizes which tech a recipe is unlocked by.",
default_value = false,
order = "d-e[recipe-tech-unlock]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-recipe-tech-unlock-duplicates",
localised_name = "Duplicate unlocks (recommended)",
localised_description = "Adds an extra copy of each recipe unlock in the tech tree to smooth out progression issues.",
default_value = true,
order = "d-ea[recipe-tech-unlock-duplicates]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-item",
localised_name = "Items",
localised_description = "Randomizes where items are in the game. For example, instead of mining coal you might mine fish, or furnaces could replace circuits as one of the most common intermediates.",
default_value = true,
order = "d-f[item]"
},
{
setting_type = "startup",
type = "double-setting",
name = "propertyrandomizer-item-percent",
localised_name = "Percent of items randomized",
localised_description = "What percentage of non-resource items should be randomized (raw resources are always randomized for increased fun). 100% shuffles every item in the game while still preventing softlocks.",
default_value = 100,
minimum_value = 0,
maximum_value = 100,
order = "d-fa[item]"
},
{
setting_type = "startup",
type = "int-setting",
name = "propertyrandomizer-item-retries",
localised_name = "Item randomization attempts",
localised_description = "Item randomization is finnicky, so multiple attempts are made in case one fails. This could drastically prolong loading time, but hey, at least you don't have to reset the settings all over?",
default_value = 10,
minimum_value = 1,
order = "d-fb[item]"
},
{
setting_type = "startup",
type = "int-setting",
name = "propertyrandomizer-unified-retries",
localised_name = "Unified randomization attempts",
localised_description = "Unified randomization fails occasionally too, so multiple attempts can be made to prevent startup errors. This also can prolong loading time if many failures occur.",
default_value = 10,
minimum_value = 1,
order = "e-[unified]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-tech-prereqs",
localised_name = "(Unified) Tech prereqs",
localised_description = "Does the same thing as non-unified technology randomization, but with a new unified algorithm. The unified algorithm runs randomizations simultaneously and will be the default in future versions.",
default_value = false,
order = "e-a[tech-prereqs]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-recipe-tech-unlocks",
localised_name = "(Unified) Recipe tech unlocks",
localised_description = "Does the same thing as non-unified recipe unlock randomization, but with a new unified algorithm. The unified algorithm runs randomizations simultaneously and will be the default in future versions.",
default_value = false,
order = "e-b[recipe-tech-unlocks]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-spoiling",
localised_name = "(Unified) Spoiling",
localised_description = "Randomizes what spoils, but not the things they spoil into (so spoilage is still a common spoil result). Uses a new unified algorithm that runs randomizations simultaneously and will be the default in future versions.",
default_value = false,
order = "e-c[spoiling]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-tech-science-packs",
localised_name = "(Unified) Tech science packs",
localised_description = "Randomizes the science packs that technologies require. Uses a new unified algorithm that runs randomizations simultaneously and will be the default in future versions.",
default_value = false,
order = "e-d[tech-science-packs]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-entity-operation-fluid",
localised_name = "(Unified) Machine fluids needed",
localised_description = "Randomizes the fluids needed to operate a machine (flamethrower fuel, fusion reactor fluid, etc.). Uses a new unified algorithm that runs randomizations simultaneously and will be the default in future versions.",
default_value = false,
order = "e-e[entity-operation-fluid]",
hidden = true,
forced_value = false,
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-mining-fluid-required",
localised_name = "(Unified) Mining fluids",
localised_description = "Randomizes the fluid needed to mine a resource, and whether a fluid is needed at all. Uses a new unified algorithm that runs randomizations simultaneously and will be the default in future versions.",
default_value = false,
order = "e-f[mining-fluid-required]",
hidden = true
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-entity-autoplace",
localised_name = "",
localised_description = "",
default_value = false,
order = "e-g[entity-autoplace]",
hidden = true
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-recipe-ingredients",
localised_name = "",
localised_description = "",
default_value = false,
order = "e-h[recipe-ingredients]",
hidden = true
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-item-ingredients",
localised_name = "",
localised_description = "",
default_value = false,
order = "e-i[item-ingredients]",
hidden = true
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-unified-item",
localised_name = "",
localised_description = "",
default_value = false,
order = "e-j[item]",
hidden = true
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-unified-technology-delinearization",
localised_name = "(Unified) Technology Delinearization",
localised_description = "Technology randomization creates very linear tech trees. This option modifies the randomization process in the case of technologies specifically so that the tree becomes less linear. Only applies to unified tech prereq randomization.",
allowed_values = {
"none",
"some",
--"lots",
},
default_value = "some",
order = "f-a[tech-delinearization]",
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-icon",
localised_name = "Icons",
localised_description = "Every icon in the game is randomized. Are you crazy?",
default_value = false,
order = "g-a[icon]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-sound",
localised_name = "Sounds",
localised_description = "Every sound in the game is randomized. Who are you?",
default_value = false,
order = "g-b[sound]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-gui",
localised_name = "GUI",
localised_description = "Positions of recipes in the GUI are randomized. What the heck?",
default_value = false,
order = "g-c[gui]"
},
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-locale",
localised_name = "Names",
localised_description = "Shuffles the names of everything in the game. Why?",
default_value = false,
order = "g-d[locale]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-colors",
localised_name = "Colors",
localised_description = "Each color value is randomized. How?..",
allowed_values = {
"no",
"little",
"crazy",
},
default_value = "no",
order = "g-e[colors]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-numerical-algorithm",
localised_name = "Algorithm",
localised_description = "Choose between two algorithms for randomizing the numerical values up or down. One produces a bell curve without cutoffs, while the other performs a more safeguarded random walk.",
allowed_values = {
"fleishman",
"exfret-random-walk",
},
default_value = "exfret-random-walk",
order = "h-a[algorithm]"
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-softlock-prevention",
localised_name = "Soflock errors",
localised_description = "How strict to be about error-ing on application startup if potential softlocks are found. Errors are always reported when starting a new game.",
allowed_values = {
"control-only",
"critical"
},
default_value = "control-only",
order = "h-b[softlock]",
hidden = true
},
{
setting_type = "startup",
type = "string-setting",
name = "propertyrandomizer-overrides",
localised_name = "Custom overrides [See Tooltip]",
localised_description = "For extra fancy customization. See README for more information. README can be found in the mod folder locally or online here: github.com/exfret/propertyrandomizer",
default_value = "",
allow_blank = true,
order = "z-custom-override"
},
-- Hidden settings for testing purposes
{
setting_type = "startup",
type = "bool-setting",
name = "propertyrandomizer-test-unit",
default_value = false,
hidden = true
},
})