Przeglądaj źródła

Factorio configs

Kristian Polso 9 lat temu
rodzic
commit
ab7f487a55

+ 23 - 0
Factorio/cfg/lgsm-default.cfg

@@ -0,0 +1,23 @@
+
+  "name": "<hostname>",
+  "description": "Description of the game that will appear in the listing",
+  "tags": ["game", "tags"],
+  "max_players": "0",
+
+  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
+                          "lan: Game will be broadcast on LAN",
+                          "hidden: Game will not be published anywhere"],
+  "visibility": "public",
+
+  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
+  "username": "",
+  "password": "",
+
+  "_comment_token": "Authentication token. May be used instead of 'password' above.",
+  "token": "",
+
+  "game_password": "<rconpassword>",
+
+  "_comment_verify_user_identity": "When set to true, the server will only allow clients that have a valid Factorio.com account",
+  "verify_user_identity": true
+}

+ 5 - 1
lgsm/functions/install_config.sh

@@ -170,7 +170,11 @@ elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
 	fn_default_config_remote
 	fn_set_config_vars
 elif [ "${gamename}" == "Factorio" ]; then
-	:
+	gamedirname="Factorio"
+	array_configs+=( server-settings.json )
+	fn_fetch_default_config
+	fn_default_config_remote
+	fn_set_config_vars
 elif [ "${gamename}" == "Fistful of Frags" ]; then
 	gamedirname="FistfulofFrags"
 	array_configs+=( server.cfg )

+ 1 - 1
lgsm/functions/install_factorio_save.sh

@@ -11,4 +11,4 @@ echo ""
 echo "Creating initial Factorio savefile"
 echo "================================="
 sleep 1
-${filesdir}/bin/x64/factorio --create-save ${filesdir}/save1
+${filesdir}/bin/x64/factorio --create ${filesdir}/save1