Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#3638 closed defect

KQ2: Bug when rubbing genie lamp

Reported by: SF/hypn Owned by:
Priority: normal Component: Engine: AGI
Version: Keywords: original
Cc: Game: King's Quest 2

Description

ScummVM version: 0.11.0 (Jan 13 2008 14:39:54) and 0.12.0svn (Feb 27 2008 09:54:55) Game Language: English Game Version: 2.1 (1987-04-10/DOS/English) - from the "King's Quest Collection" Platform: Windows (XP)

After getting the oil lamp from the lady in the antique shop (in exchange for the bird cage), she kicks you out of the shop. If you type "rub lamp" (while right by the door), or while still on the patio and stairs (without walking around too much), your character "slides".

By default I think you slide to the left if you haven't moved since being kicked out the shop, otherwise you slide in the last direction you walked.

The bug doesn't seem to occur if you've walked around a bit, or down the stairs.

Unfortunately in the saved game I had already moved away from the door (I was trying in different locations, and accidentally over-wrote my original save just outside the door). The bug can still be reproduced in it if you just type "rub lamp" without moving.

Ticket imported from: #1903154. Ticket imported from: bugs/3638.

Attachments (2)

kq2.000 (1.1 KB ) - added by SF/hypn 16 years ago.
kq2.001 (1.1 KB ) - added by SF/buddha_ 16 years ago.
'rub lamp' and see Graham flying right

Download all attachments as: .zip

Change History (13)

by SF/hypn, 16 years ago

Attachment: kq2.000 added

comment:1 by SF/hypn, 16 years ago

Priority: normallow

comment:2 by SF/hypn, 16 years ago

This bug doesn't affect gameplay - after the genie animation and dialog your character is returned to the original location, and the game continues to function fine (for all three times that you have to "rub lamp").

comment:3 by sev-, 16 years ago

Summary: Bug when rubbing genie lampKQ2: Bug when rubbing genie lamp

comment:4 by sev-, 16 years ago

Owner: set to SF/buddha_
Priority: lownormal

by SF/buddha_, 16 years ago

Attachment: kq2.001 added

'rub lamp' and see Graham flying right

comment:5 by SF/buddha_, 16 years ago

I loaded the game from the attached kq2.000 and walked to another spot outside the antique shop and saved the game as kq2.001.

If you use this new savegame (kq2.001) and rub the lamp, king Graham will start flying to the right and fly right out of the screen and continue flying right in the next screen with the genie lamp in his hand until he hits a tree and stops. The genie never says anything and Graham is left with the genie lamp in his hand. So there's definitely something bugging here... File Added: kq2.001

comment:6 by SF/buddha_, 16 years ago

I tried the game with the original interpreter (PC AGI v2.411) and there happens some sliding there too when rubbing the lamp near obstacles (e.g. the stairs) but at least with the original interpreter I couldn't reproduce the flying to the right out of the screen -effect I mentioned earlier.

Some debugging info for testing the game under the original interpreter:

ALT-D enables debug mode in KQ2. oil lamp = object 72 outside antique shop = room 20

When in debug mode get the lamp using command "get object" and teleport to outside the antique shop using command "tp" (Be sure not to teleport inside a tree or something weird, so walk around to a good spot beforehand ;-)).

comment:7 by bluegr, 16 years ago

I think that the relevant logic scripts are 20 and 21. Script 21 contain the following: if ((has("oil lamp") || has("carpet"))) { load.view(65); <----- King Graham with Genie load.view(98); <----- King Graham on magic carpet } (...)

And script 20 contains the following: if ((has("carpet") || has("oil lamp"))) { if (right.posn(o0,85,70,122,106)) { start.update(o3); stop.cycling(o3); stop.motion(o3); set(f30); } (...)

Not sure why those 2 items are in the same if case, however this *might* be what's causing this (i.e. it's a bug in the original game scripts)

comment:8 by SF/buddha_, 16 years ago

Owner: SF/buddha_ removed

comment:9 by SF/buddha_, 16 years ago

I'm not currently working on this so I'm putting this back to the pool.

comment:10 by sev-, 15 years ago

This bugreport has been moved to Wiki to relevant Engine/TODO page. When the bug will be resolved, an appropriate message will be posted here and the bugreport link removed from Wiki

comment:11 by sev-, 15 years ago

Keywords: original added
Status: newclosed
Note: See TracTickets for help on using tickets.