Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4043 closed defect (fixed)

AGI: -x option (or loading from launcher) breaks some games

Reported by: eriktorbjorn Owned by: sev-
Priority: normal Component: Engine: AGI
Keywords: Cc:
Game: Leisure Suit Larry 1

Description

The -x command line option (load a savegame) or loading a savegame from the launcher breaks some AGI games, or at least one of them: Leisure Suit Larry.

It looks like using this option causes it to skip the part where it calls set_game_id(). Savegames are stamped with the id of the game that they were made for, so any savegame made from a fresh start cannot be loaded.

Ticket imported from: #2451381. Ticket imported from: bugs/4043.

Change History (5)

comment:1 by eriktorbjorn, 11 years ago

Summary: AGI: -x command-line option breaks some gamesAGI: -x option (or loading from launcher) breaks some games

comment:2 by sev-, 11 years ago

I just tried to save and load with no problem. Can you provide the problematic save?

comment:3 by eriktorbjorn, 11 years ago

I probably didn't explain it clearly enough. Here's what I just did:

* I started Leisure Suit Larry 1 normally (i.e. going through the age quiz at the beginning).
* I saved the game. This savegame is stamped with the game's ID, "LLLLL".
* I restarted ScummVM and used the launcher's "Load" button to load the game. This works.
* I used the in-game menu to re-load the same savegame. This does not work. It says, "Error restoring game".

I think this is because when using -x or the launcher's load dialog to start Leisure Suit Larry, it does not run the script that sets the game's ID. ScummVM sees that the current game ID doesn't match the one in the savegame, and that's what it's complaining about.

comment:4 by sev-, 11 years ago

Good catch. Fixed in SVN

comment:5 by sev-, 11 years ago

Owner: set to sev-
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.