Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6771 closed defect (fixed)

ZVISION: Unable to leave room after loading saved game

Reported by: eriktorbjorn Owned by: bluegr
Priority: normal Component: Engine: ZVision
Version: Keywords:
Cc: Game: Zork Grand Inquisitor

Description

Current Git snapshot of ScummVM, English version of the game.

I saved while looking out the window in the Dungeon Master's hideout. After loading that savegame, I'm unable to leave the room. I do get an arrow cursor indicating that I should be able to move, but nothing happens when I click it.

I'm attaching a savegame near the window, and one while looking out. To reproduce, simply use the first savegame, look out the window and save there.

Ticket imported from: bugs/6771.

Attachments (2)

zgi-win.017 (23.1 KB ) - added by eriktorbjorn 10 years ago.
zgi-win.018 (20.2 KB ) - added by eriktorbjorn 10 years ago.

Download all attachments as: .zip

Change History (12)

by eriktorbjorn, 10 years ago

Attachment: zgi-win.018 added

comment:1 by eriktorbjorn, 10 years ago

I think what happens is that the hotspot to leave the room is wired to location '0' '0' '0' '0' 0, which means "return to previous location". When I walk up to the window, the this works fine. When I load the savegame, it seems like changeLocation() sets up the current room as the previous location.

So the hotspot is handled correctly, it's just that it has forgotten what the previous location really was.

comment:2 by eriktorbjorn, 10 years ago

Whatever fix is made for this, it probably has to be tested with both the original and the ScummVM save/load dialogs.

comment:3 by eriktorbjorn, 10 years ago

I've removed my debug messages, but I probably meant to write that it's changeLocationReal() that sets up the current room as the previous location, not changeLocation().

comment:4 by RichieSams, 10 years ago

Fixed in commit b835eacc0

comment:5 by RichieSams, 10 years ago

Resolution: fixed

comment:6 by RichieSams, 10 years ago

Fixed a regression with commit 3a31e1de

comment:7 by eriktorbjorn, 10 years ago

Are you sure it's fixed? I'm still stuck at that window, after saving/restoring at it, regardless of whether I'm using the original save/restore dialogs or ScummVM's.

comment:8 by eriktorbjorn, 10 years ago

Resolution: fixed

comment:9 by eriktorbjorn, 10 years ago

This seems to be working now. (When I filed the bug report I assumed it would be fairly easy to fix, but apparently it was trickier than I would have guessed.)

comment:10 by bluegr, 10 years ago

Owner: set to bluegr
Resolution: fixed
Status: newclosed

comment:11 by bluegr, 10 years ago

Thanks for your report eriktorbjorn!

Yeah the bug is fixed now, with commits dcac5be493, 5df2e08c16 and 5f9858844a. Turned out to be a bit trickier than expected.

I've tried it with both the original and the ScummVM save/load screens, it's working correctly now.

Closing as fixed

Note: See TracTickets for help on using tickets.