Skip to content

Commit 2fd9e0b

Browse files
author
Christian Neugum
committed
adds example for Krastorio2
1 parent 843b383 commit 2fd9e0b

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

examples/krastorio2/README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Krastorio2
2+
3+
The [Krastorio2](https://mods.factorio.com/mod/Krastorio2) mod requires the `map_gen_settings.autoplace_controls` to be populated in order to start a new game. You can find the Factorio defaults below.
4+
5+
If those settings aren't set the game will fail to start with the following error during map generation:
6+
```bash
7+
0.857 Factorio initialised
8+
0.857 Info Main.cpp:777: Creating new map /factorio/saves/replaceMe.zip
9+
2.076 Loading level.dat: 1608873 bytes.
10+
2.076 Info Scenario.cpp:204: Map version 1.1.100-0
11+
2.112 Checksum for script /factorio/temp/currently-playing/control.lua: 3702463597
12+
2.120 Checksum for script __Krastorio2__/control.lua: 2424813832
13+
Error: The mod Krastorio 2 (1.3.23) caused a non-recoverable error.
14+
Please report this error to the mod author.
15+
16+
Error while running event Krastorio2::on_init()
17+
__Krastorio2__/scripts/freeplay.lua:52: attempt to index field 'autoplace_controls' (a nil value)
18+
stack traceback:
19+
__Krastorio2__/scripts/freeplay.lua:52: in function 'add_to_crash_site'
20+
__Krastorio2__/scripts/migrations.lua:23: in function 'generic'
21+
__Krastorio2__/control.lua:54: in function <__Krastorio2__/control.lua:37>
22+
2.172 Goodbye
23+
24+
```
25+
26+
## Minimal mod list
27+
28+
```yaml
29+
mods:
30+
enabled: true
31+
portal:
32+
- Krastorio2
33+
- Krastorio2Assets
34+
- flib
35+
```
36+
37+
## Minimal other settings
38+
39+
```yaml
40+
map_gen_settings:
41+
autoplace_controls:
42+
coal:
43+
frequency: 1
44+
size: 1
45+
richness: 1
46+
stone:
47+
frequency: 1
48+
size: 1
49+
richness: 1
50+
copper-ore:
51+
frequency: 1
52+
size: 1
53+
richness: 1
54+
iron-ore:
55+
frequency: 1
56+
size: 1
57+
richness: 1
58+
uranium-ore:
59+
frequency: 1
60+
size: 1
61+
richness: 1
62+
crude-oil:
63+
frequency: 1
64+
size: 1
65+
richness: 1
66+
trees:
67+
frequency: 1
68+
size: 1
69+
richness: 1
70+
enemy-base:
71+
frequency: 1
72+
size: 1
73+
richness: 1
74+
```

0 commit comments

Comments
 (0)