Wormholes: New Game Plus (with Technology Reset)

by Ctri

An extension for the Wormholes: New Game Plus mod, this now resets your technology tree (whist preserving existing bonuses) when taking a space platform through the wormhole to start your new game.

Content
5 days ago
2.0 - 2.1
50
Factorio: Space Age Icon Space Age Mod
Planets

b crash when loading save

a month ago

mods used: space age dlc mods 2.0.76, wormholes 1.0.1, wormholes technology reset 1.1.2

when i try to load a save, a non-recoverable error occurs and i'm returned to the menu. here's the relevant (i think) part of the log:

 738.895 Loading map <factorio root dir>/saves/test.zip: 2049696 bytes.
 738.915 Loading level.dat: 5041073 bytes.
 738.915 Info Scenario.cpp:154: Map version 2.0.76-0
 739.389 Loading script.dat: 1479 bytes.
 739.393 Checksum for script __level__/control.lua: 2722821277
 739.394 Checksum for script __wormholes-new-game-plus__/control.lua: 1748969460
 739.395 Checksum for script __wormholes-new-game-plus-technologies__/control.lua: 3177456423
 739.565 Error AppManagerStates.cpp:1663: The mod Wormholes: Technology reset (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event wormholes-new-game-plus-technologies::on_load()
No such function: wormholes-new-game-plus.get_pre_wormhole_event
stack traceback:
    [C]: in function 'call'
    ...ew-game-plus-technologies__/controls/register_events.lua:26: in function 'register_events'
    ...ew-game-plus-technologies__/controls/register_events.lua:5: in function <...ew-game-plus-technologies__/controls/register_events.lua:4>
 753.658 Loading level.dat: 744333 bytes.
 753.658 Info Scenario.cpp:154: Map version 2.0.76-0
 753.816 Checksum for script __level__/control.lua: 2722821277
 753.818 Checksum for script __wormholes-new-game-plus__/control.lua: 1748969460
 753.818 Checksum for script __wormholes-new-game-plus-technologies__/control.lua: 3177456423
 754.960 Info AppManager.cpp:353: Deleting active scenario.
5 days ago

hey soft_kitten,

I think that's fixed with the versions I'm uploading now (wormholes 1.3 and tech reset 1.1), but if not, I may ask for a copy of your save to debug on my end, if that's okay :)
Let me know how you get on!

5 days ago
(updated 5 days ago)

i'm still getting what seems to be the same error. this time base and the dlc are bumped to latest stable version 2.0.77, wormholes and tech reset bumped to latest versions 1.1.2 and 1.0.1 respectively. no other mods enabled.

it does not seem to depend on any save-specific thing, as creating a new save with default settings, immediately saving, then loading it again, crashes.

here's the log, incase there's any meaningful difference from the previous one:

 376.550 Loading map <factorio root dir>/saves/test.zip: 1514486 bytes.
 376.578 Loading level.dat: 1062456 bytes.
 376.578 Info Scenario.cpp:154: Map version 2.0.77-0
 376.614 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
 376.614 Loading script.dat: 1479 bytes.
 376.620 Checksum for script __level__/control.lua: 2722821277
 376.623 Checksum for script __wormholes-new-game-plus__/control.lua: 1748969460
 376.625 Checksum for script __wormholes-new-game-plus-technologies__/control.lua: 3177456423
 376.733 Error AppManagerStates.cpp:1663: The mod Wormholes: Technology reset (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event wormholes-new-game-plus-technologies::on_load()
No such function: wormholes-new-game-plus.get_pre_wormhole_event
stack traceback:
    [C]: in function 'call'
    ...ew-game-plus-technologies__/controls/register_events.lua:26: in function 'register_events'
    ...ew-game-plus-technologies__/controls/register_events.lua:5: in function <...ew-game-plus-technologies__/controls/register_events.lua:4>
 378.166 Info HttpSharedState.cpp:57: Downloading https://mods.factorio.com/api/mods?page_size=max&full=True&version=2.0.77&lang=en&is_space_age=true
5 days ago

if i have wormholes enabled, and technologies reset disabled, and create a new world, save it, then load it, that works fine. enabling tech reset, i can then load that save fine, still. however, if i save it while tech reset is enabled, then try to load that save, i get this error. if i then disable tech reset i can load the save again, as well as save over it and then load that.

5 days ago
(updated 5 days ago)

hey soft_kitten, the screenshot says it's still running 1.0.1, can you update to the latest? You'll need to be running Factorio's Experimental branch, as I've bundled this fix in with support for 2.1.

If that doesn't work, upload your save to somewhere like Google Drive and share it. I'll then download it and see if I can't reproduce the error :)

Thanks!

5 days ago

oh, you're right. the log ("screenshot"?) does say that it's running 1.0.1. i thought i saw the latest versions in game, but probably i just saw them on the website and assumed that the game would have them, since it didn't show any updates available. that's my bad.

i won't be able to check if the fix works for me until stable 2.1 is released, as the experimental version doesn't launch on my machine. if i remember about it, and it still doesn't work by that point, i'll put the save file on something like google drive for you to check out.

New response