Menu

#3638 KQ2: Bug when rubbing genie lamp

AGI: King's Quest 2
closed-later
nobody
5
2009-01-08
2008-02-27
hypn
No

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.

Discussion

  • hypn

    hypn - 2008-02-27
     
  • hypn

    hypn - 2008-02-27
    • priority: 5 --> 1
     
  • hypn

    hypn - 2008-02-27

    Logged In: YES
    user_id=2021376
    Originator: YES

    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").

     
  • Eugene Sandulenko

    • summary: Bug when rubbing genie lamp --> KQ2: Bug when rubbing genie lamp
     
  • Eugene Sandulenko

    • assigned_to: nobody --> buddha_
    • priority: 1 --> 5
     
  • Kari Salminen

    Kari Salminen - 2008-03-04

    'rub lamp' and see Graham flying right

     
  • Kari Salminen

    Kari Salminen - 2008-03-04

    Logged In: YES
    user_id=1803212
    Originator: NO

    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

     
  • Kari Salminen

    Kari Salminen - 2008-03-04

    Logged In: YES
    user_id=1803212
    Originator: NO

    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 ;-)).

     
  • Filippos Karapetis

    Logged In: YES
    user_id=991970
    Originator: NO

    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)

     
  • Kari Salminen

    Kari Salminen - 2008-07-11
    • assigned_to: buddha_ --> nobody
     
  • Kari Salminen

    Kari Salminen - 2008-07-11

    Logged In: YES
    user_id=1803212
    Originator: NO

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

     
  • Eugene Sandulenko

    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

     
  • Eugene Sandulenko

    • labels: 415216 --> Also occurs in the original
    • status: open --> closed-later