diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f36858 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +factorio-metrics-exporter_0.1.3.zip diff --git a/control.lua b/control.lua index c20a54d..c44b1a5 100644 --- a/control.lua +++ b/control.lua @@ -9,6 +9,7 @@ tickInterval = tonumber(settings.global["factorio-metrics-exporter-tick-interval udpAddress = 52555 isInitialized = false sendIndex = 0 +serverIndex = 0 options = { enableMod = false, @@ -139,12 +140,16 @@ function SendAll(event) if(isInitialized == false) then if game.is_multiplayer() then serverIndex = 0 + log("Loaded game as mulitplayer") end else + log("Loaded game as singleplayer") serverIndex = 1 end isInitialized = true + log("ServerIndex is "..serverIndex.." now") + if PowerGridScanned == false then GenerateNetworks() end