From e47b568c9163368d30bdae0713bb269daf703b49 Mon Sep 17 00:00:00 2001 From: xeroiv Date: Fri, 1 Jul 2016 13:26:04 -0400 Subject: [PATCH 1/3] Modified server-start command for .13 Added full save file path to startup argument. --- src/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.go b/src/server.go index 80ef087e..ed97d375 100644 --- a/src/server.go +++ b/src/server.go @@ -53,7 +53,7 @@ func initFactorio() *FactorioServer { func (f *FactorioServer) Run() error { var err error - args := []string{"--start-server", f.Savefile, + args := []string{"--start-server", config.FactorioSavesDir + "/" + f.Savefile, "--latency-ms", strconv.Itoa(f.Latency), "--autosave-interval", strconv.Itoa(f.AutosaveInterval), "--autosave-slots", strconv.Itoa(f.AutosaveSlots), From b1eca211b0122e90ab7c8f0370bce96b0f4d661d Mon Sep 17 00:00:00 2001 From: xeroiv Date: Fri, 1 Jul 2016 13:46:29 -0400 Subject: [PATCH 2/3] Modified server-start save path variable for compatibility Modified save path variable for compatibility --- src/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.go b/src/server.go index ed97d375..7fc6c755 100644 --- a/src/server.go +++ b/src/server.go @@ -53,7 +53,7 @@ func initFactorio() *FactorioServer { func (f *FactorioServer) Run() error { var err error - args := []string{"--start-server", config.FactorioSavesDir + "/" + f.Savefile, + args := []string{"--start-server", filepath.Join(config.FactorioSavesDir, f.Savefile), "--latency-ms", strconv.Itoa(f.Latency), "--autosave-interval", strconv.Itoa(f.AutosaveInterval), "--autosave-slots", strconv.Itoa(f.AutosaveSlots), From a3e2fa47096ff635dbf8d2a761783c6c7de90bc6 Mon Sep 17 00:00:00 2001 From: xeroiv Date: Fri, 1 Jul 2016 14:36:51 -0400 Subject: [PATCH 3/3] added filepath import added filepath import --- src/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.go b/src/server.go index 7fc6c755..5738799a 100644 --- a/src/server.go +++ b/src/server.go @@ -7,6 +7,7 @@ import ( "os/exec" "strconv" "syscall" + "path/filepath" ) type FactorioServer struct {