Private
Public Access
1
0

Added Debuglog for ServerIndex

This commit is contained in:
Jan Grießhaber
2026-01-02 13:48:49 +01:00
parent d5952e090d
commit 6049f5abfc
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
factorio-metrics-exporter_0.1.3.zip

View File

@@ -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