Menu

#5386 AGI LSL1: TAB stops working after restart

closed-fixed
7
2011-09-25
2010-09-24
No

Current 1.2.0 branch
English version of the game (1.00 1987-06-01, 5.25"/3.5"/DOS/English, according to the detector)

This one's easy to reproduce: Start the game, andswer the questions, and type "restart" (or walk into a dark alley and let the game restart on its own). The TAB key no longer brings up the inventory. It seems the "game controllers" are reset on restart, but this game never recreates them. (I tried Space Quest 2, and the bug didn't happen there.)

Discussion

  • Torbjörn Andersson

    I forgot to mention: The bug does not happen with the original interpreter in DOSBox.

     
  • Torbjörn Andersson

    This bug does not seem to happen in NAGI. (http://github.com/sonneveld/nagi)

     
  • Torbjörn Andersson

    Unlike ScummVM, NAGI doesn't appear to ever clear the controllers list, except in nagi_init(), which appears to only be called once. If cmd_set_key() fails to find a free slot, it just silently ignores it.

    ScummVM's cmd_set_key() also ignores attempts to overflow the list, but prints a warning.

     
  • Torbjörn Andersson

    Possible patch against 1.2.0 branch

     
  • Torbjörn Andersson

    Assuming I understood the problem correctly, the patch I just attached should fix the problem. It doesn't work exactly like how I think NAGI works, but...

     
  • Eugene Sandulenko

    • priority: 5 --> 7
    • assigned_to: nobody --> sev
     
  • Eugene Sandulenko

    I'll review the patch.

     
  • Torbjörn Andersson

    Any news about this?

     
  • Filippos Karapetis

    Fixed in r81fdf2c, by applying eriktorbjorn's patch and checking against NAGI

     
  • Filippos Karapetis

    • assigned_to: sev --> thebluegr
    • status: open --> closed-fixed