From a6ec00bb1838fa8cf8f84b81d6b7a96dfd4bc896 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 16 Jan 2017 20:38:21 +0100 Subject: [PATCH 1/2] Added notice about not working on old ubuntus --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d74e4690..bd8bef15 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ Repeat step 3 for more servers on one machine. You should be able to find its po #Ubuntu setup +NodeJS does not support EOL ubuntu releases. Make sure you are on the most recent LTS release or newer. + Master and all slaves: sudo curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && sudo apt install -y git nodejs && git clone https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xvzf factorio.tar.gz @@ -74,4 +76,8 @@ downloads and installs nodejs, git and clusterio. To specify a version, change " **Slave** +To download the mod for all its non vanilla features and items, (optional) + + node client.js download + node client.js start [instancename] From 0288e9b2c279f7dc4ec1cbe6797dc467939f579f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 16 Jan 2017 21:22:29 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bd8bef15..642d9217 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,14 @@ All Slaves AND Clients need to be running the clusterio mod located in this repo There are no requirements for other mods, they can be ran in any configuration allowed by the base game. +**Requirements** + +download and install nodeJS 6+ from http://nodejs.org + +download and install git from https://git-scm.com/ + +reboot when you are done, then proceed to the next steps. *reboots matter* + **Master** 1. Download this repository @@ -44,17 +52,31 @@ There are no requirements for other mods, they can be ran in any configuration a 1. Download this repository -2. Place your factorio server folder inside of factorioClusterio/, making it factorioClusterio/factorio +2. Unzip to desktop (or other folder) -You can change the name and path expected in config.json if wanted. +3. Place your factorio server folder inside of factorioClusterio/, making it factorioClusterio/factorio -3. node client.js start [instancename] +To connect to a master server running on a remote machine, open config.json with your favourite text editor (notepad++) -Repeat step 3 for more servers on one machine. You should be able to find its port by looking at the console output or at the slave section on master:8080 +Change masterIP to something like 31.152.123.14 (provided by master server owner) + +Change masterPort to something like 8080 (provided by master server owner) + +4. Open a cmd window by shift + right clicking in exlporer (https://puu.sh/tozfj/e3fd0acf6f.png Åpne kommando vindu her/open command window here) + +5. Type + + node client.js start [instancename] + + to create a new instance. + +Repeat step 4 and 5 for more servers on one machine. You should be able to find its port by looking at the console output or at the slave section on master:8080 (the web interface) **Client** -1. Download the same version of the mod as the slave is running +Alternative experimental client: [clusterioClient](https://github.com/Danielv123/factorioClusterioClient) + +1. Download the same version of the mod as the slave is running from [the mod portal](https://mods.factorio.com/mods/Danielv123/clusterio) or [github](https://github.com/Danielv123/factorioClusterioMod 2. Drop it into ./factorio/mods