Move clusterioMod file creation

Move the creation of the output.txt, orders.txt and txbuffer.txt script
output files out of the client.js code and into the clusterioMod.
This commit is contained in:
Hornwitser committed 2019-10-14 15:51:45 +02:00
1 parent 3202e2d150
commit 2ff52a1cf2
3 files changed
+10 -6

No files matched your search

-3
View File
@@ -78,9 +78,6 @@ module.exports = class factorioServer {
// create files
let files = [
{name: "/script-output/output.txt", content: ""},
{name: "/script-output/orders.txt", content: ""},
{name: "/script-output/txbuffer.txt", content: ""},
{name: "/config.ini", content: "[path]\r\n\ read-data=__PATH__executable__/../../data\r\n\ write-data=__PATH__executable__/../../../" + this.instanceDirectory + "\r\n\ "},
{name: "/config.json", content: JSON.stringify({
factorioPort: this.factorioPort,