Skip to content

Commit

Permalink
Merge pull request #35 from xeroiv/master
Browse files Browse the repository at this point in the history
Modified server-start command for .13
  • Loading branch information
Mitch Roote authored Jul 1, 2016
2 parents 593f38e + a3e2fa4 commit ae95aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os/exec"
"strconv"
"syscall"
"path/filepath"
)

type FactorioServer struct {
Expand Down Expand Up @@ -53,7 +54,7 @@ func initFactorio() *FactorioServer {
func (f *FactorioServer) Run() error {
var err error

args := []string{"--start-server", 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),
Expand Down

0 comments on commit ae95aa1

Please sign in to comment.