Skip to content

restart Savegame #28

@Mmtrx

Description

@Mmtrx

WHAT IS THE PROBLEM?
The restart savegame command does quit the current game, and loads the main screen, but does not load/ start the current savegame again.

HOW CAN I REPRODUCE THE ERROR?
Select 9) Restart Savegame from powerTools menu

Screenshots or log information

2025-01-22 16:15 Info: Ignored 'autoStartSavegame' start parameter after game restart

Additional information (please complete the following information):

  • Game version: 1.4.0.0 b31789
  • Mod Version 1.0.0.0
  • Type of game client: Giants
  • Do you play single or multiplayer: Singleplayer
  • Are you the host (if multiplayer) [yes/no]:

Additional context
I checked basegame code, and found this in main.lua, function init():

		elseif StartParams.getIsSet("restart") and not GameLoadingCancelSimulator.ACTIVE then
			Logging.info("Ignored \'autoStartSavegame\' start parameter after game restart")
		else
			autoStartLocalSavegame(v9)
		end

GameLoadingCancelSimulator class only gets involved when g_isDevelopmentVersion is true. And that is read from dataS/settings.xml very early:

		local isDevelop = xmlFile:getString("settings#developmentLevel", "release"):lower()

So far I haven't found a way around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions