[0.12.1] Headless Linuxsrv: Missing key "isdemo"

Bugs that are actually features.
Post Reply
Unic
Inserter
Inserter
Posts: 32
Joined: Sun Jul 05, 2015 10:39 am
Contact:

[0.12.1] Headless Linuxsrv: Missing key "isdemo"

Post by Unic »

Hi,

i can create a server with "--create MyMap" and than --start-server MyMap. All works fine, but if i try to reconnect i get :

Code: Select all

Cannot execute command. Error: [String "game.reloadScript()..."]:1: LuaGameScript doesn't contain key reloadScript
Cannot execute command. Error: [String "if.gameinsdemo() then ..."]:1: LuaGameScript doesn't contain key isdemo.
Player Unic joined the game.
Serveroutput:

Code: Select all

al peer(0).
   1.191 Info MultiplayerManager.cpp:1315: Received peer info for peer(0) username(<server>).
   1.191 Info MultiplayerManager.cpp:989: networkTick(6) mapTick(2662996) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   1.191 Info MultiplayerManager.cpp:989: networkTick(6) mapTick(2662996) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
  30.156 Connection request from 93.201.249.183:34197
  30.156 Info Router.cpp:504: NetworkTick(1744) replying to connectionRequest for address(93.201.249.183:34197).
  30.256 Info Router.cpp:655: networkTick(1750) adding peer(1) address(93.201.249.183:34197) sending connectionAccept(true)
  30.256 Info Router.cpp:527: networkTick(1750) sending connectionAccept to address(93.201.249.183:34197) connectionRequestID(39216) newPeerID(1)
  30.256 Info Synchronizer.cpp:491: networkTick(1750) adding peer(1) success(true).
  30.456 Info MultiplayerManager.cpp:1315: Received peer info for peer(0) username(<server>).
  30.456 Info MultiplayerManager.cpp:989: networkTick(1756) mapTick(2663008) received stateChanged peerID(0) oldState(InGame) newState(InGame)
  30.457 Info MultiplayerManager.cpp:1315: Received peer info for peer(1) username(unic).
  30.457 Info MultiplayerManager.cpp:989: networkTick(1756) mapTick(2663008) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  30.457 Info NetworkInputHandler.cpp:489: expectedMapTick(2663008) adding peer(1).
  30.457 Info MultiplayerManager.cpp:1315: Received peer info for peer(1) username(unic).
  30.457 Info MultiplayerManager.cpp:989: networkTick(1756) mapTick(2663008) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  30.457 Info MultiplayerManager.cpp:989: networkTick(1756) mapTick(2663008) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  30.673 Info MultiplayerManager.cpp:989: networkTick(1769) mapTick(2663009) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  30.679 Info MultiplayerManager.cpp:848: networkTick(1769) mapTick(2663009) changing state from(InGame) to(InGameAligning)
  30.679 Info MultiplayerManager.cpp:1588: networkTick(1769) mapTick(2663009) starting mapAlign
  30.773 Info MultiplayerManager.cpp:989: networkTick(1775) mapTick(2663009) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  30.785 Info MultiplayerManager.cpp:1522: networkTick(1775) mapTick(2663009) sending mapAlignAction
  30.873 Info MultiplayerManager.cpp:1208: networkTick(1781) mapTick(2663009) received MapAlignAction from peer(0), mapAlignTick(2663010) appliedTickClosuresCount(0)
  30.873 Info MultiplayerManager.cpp:1604: networkTick(1782) mapTick(2663009) mapAlign finished targetTick(2663010) updating map and running the tasks ...
  30.873 Info MultiplayerManager.cpp:1476: networkTick(1782) mapTick(2663009) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(2663010))
((peerID(1) state(ConnectedWaitingForMap) mapAlignTick(-1))
)
  30.875 Info MultiplayerManager.cpp:1625: maptick(2663010) crc before applying all ticks: -708147539
  30.875 Info NetworkInputHandler.cpp:630: applyAllTickClosures: expectedMapTick(2663010) lastTickApplied(2663001) referenceMapTick(2663010) networkTick(1782)
  30.875 Info MultiplayerManager.cpp:1636: maptick(2663010) crc after applying all ticks: -708147539
  30.875 Info MultiplayerManager.cpp:848: networkTick(1782) mapTick(2663010) changing state from(InGameAligning) to(InGameAligned)
  30.875 Info MultiplayerManager.cpp:848: networkTick(1782) mapTick(2663010) changing state from(InGameAligned) to(InGameSavingMap)
  30.990 Info MultiplayerManager.cpp:989: networkTick(1788) mapTick(2663010) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  30.992 Info MultiplayerManager.cpp:989: networkTick(1788) mapTick(2663010) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  31.723 Info MultiplayerManager.cpp:848: networkTick(1833) mapTick(2663010) changing state from(InGameSavingMap) to(InGameSendingMap)
  31.740 Info MultiplayerManager.cpp:1089: MapTick(2663010) Serving map(/srv/factorio/temp/mp-download.zip) for peer(1) size(4223530) crc(-1217381604)
  31.839 Info MultiplayerManager.cpp:989: networkTick(1839) mapTick(2663010) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  31.940 Info MultiplayerManager.cpp:989: networkTick(1845) mapTick(2663010) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  37.456 Info MultiplayerManager.cpp:989: networkTick(2176) mapTick(2663010) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  37.456 Canceling serving for peer 1
  37.456 Info MultiplayerManager.cpp:848: networkTick(2176) mapTick(2663010) changing state from(InGameSendingMap) to(InGameWaitingForOthers)
  37.556 Info MultiplayerManager.cpp:989: networkTick(2182) mapTick(2663010) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  38.206 Info MultiplayerManager.cpp:989: networkTick(2204) mapTick(2663010) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(InGameWaitingForOthers)
  38.206 Info MultiplayerManager.cpp:1160: networkTick(2204) mapTick(2663010) stopping mapAlign
  38.206 Info MultiplayerManager.cpp:848: networkTick(2204) mapTick(2663010) changing state from(InGameWaitingForOthers) to(InGame)
  38.206 Info MultiplayerManager.cpp:1476: networkTick(2204) mapTick(2663010) peerID(0) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  38.306 Info MultiplayerManager.cpp:989: networkTick(2210) mapTick(2663016) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  38.306 Info MultiplayerManager.cpp:989: networkTick(2210) mapTick(2663016) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  38.439 Info NetworkInputHandler.cpp:568: assigning playerIndex(0) to peer(1)
  38.439 Info GameActionHandler.cpp:1927: MapTick(2663019) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect)
  39.175 Error NetworkInputHandler.cpp:341: Multiplayer desynchronisation: crc test(CheckCRCHeuristic) failed for mapTick(2663040) peer(1) testCrc(67806047) testCrcPeerID(0) currentCrc(1185976051)
  39.179 Info NetworkInputHandler.cpp:417: Desync specification: Reference CRC = 67806047, reference peers = {0}; desynced CRC = 1185976051, desynced peers = {1 (unic)}
  39.289 Info MultiplayerManager.cpp:989: networkTick(2266) mapTick(2663055) received stateChanged peerID(1) oldState(InGame) newState(Desynced)
  39.289 Info MultiplayerManager.cpp:848: networkTick(2266) mapTick(2663055) changing state from(InGame) to(InGameAligning)
  39.289 Info MultiplayerManager.cpp:1588: networkTick(2266) mapTick(2663055) starting mapAlign
  39.389 Info MultiplayerManager.cpp:989: networkTick(2272) mapTick(2663055) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  39.389 Info MultiplayerManager.cpp:989: networkTick(2272) mapTick(2663055) received stateChanged peerID(1) oldState(Desynced) newState(DesyncedAligning)
  39.389 Info MultiplayerManager.cpp:1522: networkTick(2272) mapTick(2663055) sending mapAlignAction
  39.489 Info MultiplayerManager.cpp:1208: networkTick(2278) mapTick(2663055) received MapAlignAction from peer(0), mapAlignTick(2663056) appliedTickClosuresCount(0)
  39.489 Info MultiplayerManager.cpp:1208: networkTick(2278) mapTick(2663055) received MapAlignAction from peer(1), mapAlignTick(2663050) appliedTickClosuresCount(23)
  39.489 Info MultiplayerManager.cpp:1604: networkTick(2279) mapTick(2663055) mapAlign finished targetTick(2663056) updating map and running the tasks ...
  39.489 Info MultiplayerManager.cpp:1476: networkTick(2279) mapTick(2663055) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(2663056))
((peerID(1) state(DesyncedAligning) mapAlignTick(2663050))
)
  39.491 Info MultiplayerManager.cpp:1625: maptick(2663056) crc before applying all ticks: -918157562
  39.491 Info NetworkInputHandler.cpp:630: applyAllTickClosures: expectedMapTick(2663056) lastTickApplied(2663047) referenceMapTick(2663056) networkTick(2279)
  39.491 Info MultiplayerManager.cpp:1636: maptick(2663056) crc after applying all ticks: -918157562
  39.492 Info MultiplayerManager.cpp:848: networkTick(2279) mapTick(2663056) changing state from(InGameAligning) to(InGameAligned)
  39.606 Info MultiplayerManager.cpp:989: networkTick(2285) mapTick(2663056) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  39.606 Info MultiplayerManager.cpp:989: networkTick(2285) mapTick(2663056) received stateChanged peerID(1) oldState(DesyncedAligning) newState(DesyncedAligned)
  39.706 Info MultiplayerManager.cpp:1225: networkTick(2291) mapTick(2663056) received playerReconnect
  39.706 Info MultiplayerManager.cpp:1967: NetworkTick(2291) MapTick(2663056) disconnecting player(0) from the user.
  39.706 Info NetworkInputHandler.cpp:513: expectedMapTick(2663056) removing peer(1) success(true).
  39.706 Info NetworkInputHandler.cpp:489: expectedMapTick(2663056) adding peer(1).
  39.706 Info MultiplayerManager.cpp:989: networkTick(2291) mapTick(2663056) received stateChanged peerID(1) oldState(DesyncedAligned) newState(DesyncedCreatingReport)
  40.373 Info MultiplayerManager.cpp:989: networkTick(2322) mapTick(2663056) received stateChanged peerID(1) oldState(DesyncedCreatingReport) newState(DesyncedWaitingForMap)
  40.373 Info MultiplayerManager.cpp:848: networkTick(2322) mapTick(2663056) changing state from(InGameAligned) to(InGameSavingMap)
  40.473 Info MultiplayerManager.cpp:989: networkTick(2328) mapTick(2663056) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  41.039 Info MultiplayerManager.cpp:848: networkTick(2363) mapTick(2663056) changing state from(InGameSavingMap) to(InGameSendingMap)
  41.056 Info MultiplayerManager.cpp:1089: MapTick(2663056) Serving map(/srv/factorio/temp/mp-download.zip) for peer(1) size(4225413) crc(439580249)
  41.156 Info MultiplayerManager.cpp:989: networkTick(2369) mapTick(2663056) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  41.256 Info MultiplayerManager.cpp:989: networkTick(2375) mapTick(2663056) received stateChanged peerID(1) oldState(DesyncedWaitingForMap) newState(DesyncedDownloadingMap)
  48.039 Info MultiplayerManager.cpp:989: networkTick(2782) mapTick(2663056) received stateChanged peerID(1) oldState(DesyncedDownloadingMap) newState(DesyncedLoadingMap)
  48.039 Canceling serving for peer 1
  48.039 Info MultiplayerManager.cpp:848: networkTick(2782) mapTick(2663056) changing state from(InGameSendingMap) to(InGameWaitingForOthers)
  48.139 Info MultiplayerManager.cpp:989: networkTick(2788) mapTick(2663056) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  48.656 Info MultiplayerManager.cpp:989: networkTick(2809) mapTick(2663056) received stateChanged peerID(1) oldState(DesyncedLoadingMap) newState(InGameWaitingForOthers)
  48.671 Info MultiplayerManager.cpp:1160: networkTick(2809) mapTick(2663056) stopping mapAlign
  48.671 Info MultiplayerManager.cpp:848: networkTick(2809) mapTick(2663056) changing state from(InGameWaitingForOthers) to(InGame)
  48.671 Info MultiplayerManager.cpp:1476: networkTick(2809) mapTick(2663056) peerID(0) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  48.756 Info MultiplayerManager.cpp:989: networkTick(2815) mapTick(2663062) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  48.756 Info MultiplayerManager.cpp:989: networkTick(2815) mapTick(2663062) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  48.889 Info NetworkInputHandler.cpp:568: assigning playerIndex(0) to peer(1)
  48.889 Info GameActionHandler.cpp:1927: MapTick(2663065) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect)
  49.658 Error NetworkInputHandler.cpp:341: Multiplayer desynchronisation: crc test(CheckCRCHeuristic) failed for mapTick(2663100) peer(1) testCrc(1229532293) testCrcPeerID(0) currentCrc(-1130257920)
  49.658 Info NetworkInputHandler.cpp:417: Desync specification: Reference CRC = 1229532293, reference peers = {0}; desynced CRC = 3164709376, desynced peers = {1 (unic)}
  49.789 Info MultiplayerManager.cpp:989: networkTick(2877) mapTick(2663116) received stateChanged peerID(1) oldState(InGame) newState(Desynced)
  49.798 Info MultiplayerManager.cpp:848: networkTick(2877) mapTick(2663116) changing state from(InGame) to(InGameAligning)
  49.798 Info MultiplayerManager.cpp:1588: networkTick(2877) mapTick(2663116) starting mapAlign
  49.889 Info MultiplayerManager.cpp:989: networkTick(2883) mapTick(2663116) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  49.893 Info MultiplayerManager.cpp:989: networkTick(2883) mapTick(2663116) received stateChanged peerID(1) oldState(Desynced) newState(DesyncedAligning)
  49.893 Info MultiplayerManager.cpp:1522: networkTick(2883) mapTick(2663116) sending mapAlignAction
  49.989 Info MultiplayerManager.cpp:1208: networkTick(2889) mapTick(2663116) received MapAlignAction from peer(0), mapAlignTick(2663117) appliedTickClosuresCount(0)
  50.007 Info MultiplayerManager.cpp:1208: networkTick(2889) mapTick(2663116) received MapAlignAction from peer(1), mapAlignTick(2663110) appliedTickClosuresCount(24)
  50.007 Info MultiplayerManager.cpp:1604: networkTick(2890) mapTick(2663116) mapAlign finished targetTick(2663117) updating map and running the tasks ...
  50.008 Info MultiplayerManager.cpp:1476: networkTick(2890) mapTick(2663116) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(2663117))
((peerID(1) state(DesyncedAligning) mapAlignTick(2663110))
)
  50.010 Info MultiplayerManager.cpp:1625: maptick(2663117) crc before applying all ticks: -233232909
  50.010 Info NetworkInputHandler.cpp:630: applyAllTickClosures: expectedMapTick(2663117) lastTickApplied(2663108) referenceMapTick(2663117) networkTick(2890)
  50.010 Info MultiplayerManager.cpp:1636: maptick(2663117) crc after applying all ticks: -233232909
  50.010 Info MultiplayerManager.cpp:848: networkTick(2890) mapTick(2663117) changing state from(InGameAligning) to(InGameAligned)
  50.105 Info MultiplayerManager.cpp:989: networkTick(2896) mapTick(2663117) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  50.106 Info MultiplayerManager.cpp:989: networkTick(2896) mapTick(2663117) received stateChanged peerID(1) oldState(DesyncedAligning) newState(DesyncedAligned)
  50.205 Info MultiplayerManager.cpp:1225: networkTick(2902) mapTick(2663117) received playerReconnect
  50.237 Info MultiplayerManager.cpp:1967: NetworkTick(2902) MapTick(2663117) disconnecting player(0) from the user.

Cant do anything about it. Even a Server restart dont helps. I dont use any mods.


EDIT: Pretty sure that this change is the problem:

Code: Select all

Changed all the identifiers/methods/events/parameters. Underscores are used as word delimiter (findentities -> find_entities).
because in most scripts ive found its called "is_demo" not "isdemo"

Edit2: If i use "12.0" all works fine.

thx for help.
Last edited by Unic on Sat Jul 25, 2015 11:42 pm, edited 1 time in total.

Unic
Inserter
Inserter
Posts: 32
Joined: Sun Jul 05, 2015 10:39 am
Contact:

Re: [0.12.1] Headless Linuxsrv: Missing key "isdemo"

Post by Unic »

Found the solution:

First its only happend with 12.1 not with 12.0.

The problem are files on the clientside. Under \Factorio\data\base\migrations are some older files on my clientinstallation. After i have deleted the complete factoriofolder and reinstalled the game all works fine again.

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [0.12.1] Headless Linuxsrv: Missing key "isdemo"

Post by slpwnd »

Unic wrote:Found the solution:

First its only happend with 12.1 not with 12.0.

The problem are files on the clientside. Under \Factorio\data\base\migrations are some older files on my clientinstallation. After i have deleted the complete factoriofolder and reinstalled the game all works fine again.
Ok, not a bug then.

Post Reply

Return to “Not a bug”