Menu

#31 Game corrupts key bindings

open
nobody
None
9
2010-07-25
2010-07-25
No

2.0.0.0 (2006) on WinXP
To reproduce:
*Create custom key bindings.
*Verify that they work.
*Close game.
Something like this will be written to the file nogravity.ini:
Key= e 4e 4a 10 f 52 53 37 4f 4c 39 14 12 11 1e 50 13 51 c8 d0 cd cb
*Reopen game.
*Keys do unexpected things in game.
*In game options menu it becomes apparent that the key bindings are corrupt.
*Close game.
The file nogravity.ini now contains the following line instead:
Key= e e a f f 2 3 7 f c 9 4 2 1 e 17 3 1 8 d0 d cb

Discussion

  • Shinobu Maehara

    Shinobu Maehara - 2010-07-25

    I've found the cause of this bug.
    The file that parses the .ini assumes that all the keycodes are three characters long.
    But the file that writes the .ini sometimes only writes two, because some keycodes are smaller than 10h.
    I haven't been able to find the responsible .c files, but I'm confident that for the devs, who know where to look, this should be really easy to fix.

     
  • Shinobu Maehara

    Shinobu Maehara - 2010-07-25
    • priority: 5 --> 9
     

Log in to post a comment.

MongoDB Logo MongoDB