0x796935 / factorio-achievement-restore

Restores the achievements after running commands which disable them
GNU General Public License v3.0
21 stars 5 forks source link

Corrupt map #8

Open Ashom2 opened 2 days ago

Ashom2 commented 2 days ago

When trying to load changed save it says this: image

If it helps here is the full console output when using the program:

You picked: gamesave.zip
[+] Found 27 .dat files
starting to read file level.dat0
starting to read file level.dat1
starting to read file level.dat10
starting to read file level.dat11
starting to read file level.dat12
starting to read file level.dat13
starting to read file level.dat14
starting to read file level.dat15
starting to read file level.dat16
starting to read file level.dat17
starting to read file level.dat18
starting to read file level.dat19
starting to read file level.dat2
starting to read file level.dat20
starting to read file level.dat21
starting to read file level.dat22
starting to read file level.dat23
[!] Found command in level.dat23
[+] Removed cheat flag from offset 822052
[+] Removed cheat flag from offset 822643
[+] Removed cheat flag from offset 823785
[+] Removed cheat flag from offset 824267
[+] Removed cheat flag from offset 825455
[+] Removed cheat flag from offset 825980
[+] Removed cheat flag from offset 827122
[+] Removed cheat flag from offset 827604
[+] Removed cheat flag from offset 828360
[+] Removed cheat flag from offset 828565
[+] Removed cheat flag from offset 877456
[+] Removed cheat flag from offset 877546
[+] Removed cheat flag from offset 877583
[+] Removed cheat flag from offset 891791
[+] Removed cheat flag from offset 939308
[+] Removed space cheat flag from offset 786424
[+] Wrote level.dat23 to ./output/level.dat23
starting to read file level.dat24
starting to read file level.dat25
starting to read file level.dat26
starting to read file level.dat3
starting to read file level.dat4
starting to read file level.dat5
starting to read file level.dat6
starting to read file level.dat7
starting to read file level.dat8
starting to read file level.dat9
[+] Copied level.dat23 to savegame
[+] Zipping savegame to .../saves/gamesave_changed.zip
[+] Enjoy your achievements!

And here is the console output when starting the world:

:/home/container$ if [ ! -f "./saves/${SAVE_NAME}.zip" ]; then ./bin/x64/factorio --create ./saves/${SAVE_NAME}.zip --map-gen-settings data/map-gen-settings.json --map-settings data/map-settings.json; fi; ./bin/x64/factorio --port ${SERVER_PORT} --server-settings data/server-settings.json $( [[ ${LOAD_LATEST} -eq 0 ]] && echo " --start-server saves/${SAVE_NAME}.zip ") $( [[ ${LOAD_LATEST} -eq 1 ]] && echo " --start-server-load-latest ") --use-server-whitelist ${WHITELIST} --server-whitelist data/server-whitelist.json --use-authserver-bans ${BANS}
   0.000 2024-11-21 01:36:51; Factorio 2.0.20 (build 80511, linux64, headless, space-age)
   0.006 Operating system: Linux (Debian 12)
   0.006 Program arguments: "./bin/x64/factorio" "--port" "25677" "--server-settings" "data/server-settings.json" "--start-server" "saves/gamesave.zip" "--use-server-whitelist" "false" "--server-whitelist" "data/server-whitelist.json" "--use-authserver-bans" "false" 
   0.006 Config path: /home/container/config/config.ini
   0.006 Read data path: /home/container/data
   0.006 Write data path: /home/container [388897/477479MB]
   0.006 Binaries path: /home/container/bin
   0.012 System info: [CPU: AMD Ryzen 5 5600X 6-Core Processor, 12 cores, RAM: 64217 MB]
   0.012 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.012 Running in headless mode
   0.012 Audio is disabled
   0.019 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   0.019 Info ModManager.cpp:434: FeatureFlag freezing = true
   0.019 Info ModManager.cpp:434: FeatureFlag quality = true
   0.019 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   0.019 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   0.019 Info ModManager.cpp:434: FeatureFlag space-travel = true
   0.019 Info ModManager.cpp:434: FeatureFlag spoiling = true
   0.021 Loading mod core 0.0.0 (data.lua)
   0.030 Loading mod base 2.0.20 (data.lua)
   0.128 Loading mod elevated-rails 2.0.20 (data.lua)
   0.141 Loading mod quality 2.0.20 (data.lua)
   0.147 Loading mod space-age 2.0.20 (data.lua)
   0.288 Loading mod base 2.0.20 (data-updates.lua)
   0.297 Loading mod quality 2.0.20 (data-updates.lua)
   0.309 Loading mod space-age 2.0.20 (data-updates.lua)
   0.378 Checksum for core: 2863993211
   0.378 Checksum of base: 3548713318
   0.378 Checksum of elevated-rails: 2929976872
   0.378 Checksum of quality: 3484764141
   0.378 Checksum of space-age: 1973748825
   0.677 Prototype list checksum: 3872509593
   0.722 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1732153008
   0.722 Info PlayerData.cpp:73: Cloud player-data.json unavailable
   0.723 Factorio initialised
   0.724 Info ServerSynchronizer.cpp:20: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   0.724 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(Ready) to(PreparedToHostGame)
   0.724 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(PreparedToHostGame) to(CreatingGame)
   0.724 Loading map /home/container/saves/gamesave.zip: 9040295 bytes.
   0.734 Loading level.dat: 27440145 bytes.
   0.738 Info Scenario.cpp:178: Map version 2.0.15-4
   1.090 Warning Map.cpp:358: Map loading failed: Corrupt map: unknown item prototype ID 65535.
   1.132 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "Corrupt map: unknown item prototype ID 65535."
   1.132 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(CreatingGame) to(InitializationFailed)
   1.132 Info CommandLineMultiplayer.cpp:211: Exit point.
   1.136 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
   1.136 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(InitializationFailed) to(Closed)
   1.136 Info ServerMultiplayerManager.cpp:166: Deleting active scenario (global = true).
   1.178 Info UDPSocket.cpp:233: Closing socket
   1.180 Goodbye

(btw I am renaming the save from gamesave_changed.zip back to gamesave.zip)