You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/factorio-server-charts/README.md
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,32 @@ serverPassword:
106
106
# Existing Secret containing a `game_password` data entry
107
107
passwordSecret: ''
108
108
```
109
+
## Importing a save file
110
+
111
+
> :warning: Importing a save file will **OVERWRITE THE SERVER SAVEFILE** with the name specified in `factorioServer.save_name`. Import with caution!
112
+
113
+
### Importing by URL
114
+
115
+
To import your save file from a URL, set `import_save.source_url` to a direct-download link for your savegame. By default, the file will be downloaded and imported only once.
116
+
117
+
If, on pod intialization, you wish to re-import the file every time the contents of the savegame change, set `import_save.reimport_on_change` to `true`.
118
+
:warning: If the savegame at the source url changes, this will overwrite the server save with that file. Use with caution!
119
+
120
+
If you wish to reimport the save file every time the pod reinitializes, regardless of changes, set `import_save.reimport_every_time` to `true`. This could be useful for demos or testing.
121
+
:warning: This will overwrite the server savegame **every time the pod reinitializes**. Use with caution!
122
+
123
+
### Manual Import
124
+
125
+
To import an existing save file, start/restart the pod at least once. This will create the import folder structure.
126
+
127
+
Now, copy the savegame you wish to import to the `/factorio/save-importer/import/<existing_savegame_name>.zip` on the running pod using whatever mechanism you prefer. To do this with kubectl:
@@ -222,6 +248,10 @@ If you do run into any issues with mods, I will try to work with you on finding
222
248
| `factorioServer.generate_new_save` | Generate a new save if `save_name` is not found | `true` |
223
249
| `factorioServer.update_mods_on_start` | Update mods on server start | `false` |
224
250
| `factorioServer.load_latest_save` | Lets the game know if you want to load the latest save | `true` |
251
+
| `import_save.enabled` | Enable save importer. Importer runs at every pod initialization. **:warning: Overwrites existing save if successful** | `true` |
252
+
| `import_save.source_url` | Full URL (including http(s)://). If left blank, saves can still be imported by placing in '/factorio/save-importer/import' | `""` |
253
+
| `import_save.reimport_on_change` | Reimport save file from source_url when checksum changes. File will be downloaded at every pod initialization. | `false` |
254
+
| `import_save.reimport_every_time` | Reimport save file from source_url at every pod intialization. Useful for resetting demos or testing. | `false` |
225
255
| `account.accountSecret` | Existing secret containing a valid factorio.com username and either a password or a token (or both) | `""` |
226
256
| `account.username` | Factorio.com username, ignored if `account.accountSecret` is set | `""` |
227
257
| `account.password` | Factorio.com password, ignored if `account.accountSecret` is set | `""` |
0 commit comments