blob: d5eeaccf73123203dd8e27d45e1f423392cf756c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
trap '' TERM
source cfg.sh || exit 1
mkdir -p ./saves
if [ ! -f "./saves/$SAVEFILE.zip" ]; then
factorio/bin/x64/factorio --create "./saves/$SAVEFILE.zip" \
--map-gen-settings ./mapgen-config.json \
--map-settings ./map-config.json || exit 1
fi
factorio/bin/x64/factorio --start-server "./saves/$SAVEFILE.zip" --server-settings server-config.json
|