Opened 18 years ago
Closed 15 years ago
#3099 closed defect (fixed)
ZAK FM-TOWNS: Crash when entering Hostel from outside
Reported by: | SF/andy_blah | Owned by: | Kirben |
---|---|---|---|
Priority: | blocker | Component: | Engine: SCUMM |
Version: | Keywords: | ||
Cc: | Game: | Zak McKracken |
Description
ScummVM version 0.91 Bug details, including instructions on reproducing : (27:205:0x12944):Value 0 is out of bounds (1,32) (Class 0 out of range in getClass). Language of game: English Version of game: FM Towns Platform and Compiler: Windows XP Compiler: none Saved game attached
Ticket imported from: #1668393. Ticket imported from: bugs/3099.
Attachments (1)
Change History (13)
comment:1 by , 18 years ago
Summary: | Zak McKracken crash when entering the Hostel building → ZAK FM-TOWNS: crash when entering the Hostel building |
---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
The save seems to be broken. It executes a script at a wrong offset. A typical problem that would occur when using a savestate made by a different version of a game. Not sure how this could have happened here, unless maybe the save was at some point used in a fan made translation of Zak FM-TOWNS?
comment:4 by , 18 years ago
Status: | new → pending |
---|
comment:5 by , 18 years ago
Status: | pending → closed |
---|
comment:6 by , 18 years ago
This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
comment:7 by , 17 years ago
I have noticed the same bug. With an unmodified Zak/Town Version (no Fan-Translation or so) under Windows, latest ScummVM 0.11 Daily Snapshot.
To reproduce do the following: Start new game, get blue crystal, talk to Annie, switch to one of the girls on Mars. (Or load any given savegame where you can play on Mars) Go inside the hostel an replace the fuse. Leave the hostel and close the door from outside. Now try to reopen it.
I also tried that with an EGA version, that one worked fine. The problem occured only under the FM-Town version.
comment:8 by , 15 years ago
Status: | closed → new |
---|
comment:9 by , 15 years ago
Priority: | normal → blocker |
---|
comment:10 by , 15 years ago
I can reproduce the issue in a fresh game, under current ScummVM SVN, a critical issue for the next release.
I attached an updated saved game. Load the saved game, then close and open the door.
comment:11 by , 15 years ago
There was previously an unexplained FIXME comment for ZAK256, which I removed in revision 20967, which must have been specifically for this script.
There is a script bug (in room 27 script 205), caused by the wrong opcode (classOfIs) been used to check the state of the inside door of the Hostel on Mars, when opening the Hostel door from the outside. Specifically this segment of the script: [001A] (1D) if (classOfIs(465,[0]) {
The original code for the classOfIs opcode, would subtract one from the class value (class - 1), and select the real class value via a bit array (class & 7). So I expect the class value overflowed in the original version, and the highest bit array value was used in this case.
Fixed in ScummVM SVN, by adding a workaround for this script bug.
comment:12 by , 15 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | ZAK FM-TOWNS: crash when entering the Hostel building → ZAK FM-TOWNS: Crash when entering Hostel from outside |
This is very strange I get the same error with the attached savegame when I try to open the door or push the button next to it. This happens with both 0.9.1 and the latest SVN
Must be something that this user did that caused this game to crash, as I have successfully finished ZAK FM-TOWNS in the past... I'll have to dig through my savegames and see if I still have any