Merged branch master into dev

This commit is contained in:
Danielv123 committed 2017-01-16 22:16:09 +01:00
commit 8a29276f58
1 file changed
+33 -5
+33 -5
View File
@@ -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
@@ -62,6 +84,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 +98,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]