Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Adventure Mode: Walking bug  (Read 435 times)

Ibu Muffintakers

  • Bay Watcher
    • View Profile
Adventure Mode: Walking bug
« on: January 11, 2007, 01:58:00 pm »

There's wierdness with holding down movement keys and pressing shift.  I got it to happen by holding shift, then holding 4 at the same time, then releasing and pressing shift again.  When I released all the keys, my character kept moving in the same direction and wouldn't stop.  When I saved and restored he was still doing it.
Logged
ime flies like an arrow.  Fruit flies like a banana.

herrbdog

  • Bay Watcher
    • View Profile
Re: Adventure Mode: Walking bug
« Reply #1 on: January 11, 2007, 03:41:00 pm »

This seems to be a semi-common bug. The key hooks are not releasing, apparently. I have solved this problem by clicking on my desktop, then switching back to DF. It is a Windows-application interfacing problem. Of course, if you run fullscreen, I *imagine* alt-tabbing out and back will also fix the problem.
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Adventure Mode: Walking bug
« Reply #2 on: January 11, 2007, 09:25:00 pm »

I'm not sure if this is the same as the other stuck key problem that I have no idea how to fix.  It's possible this one is easier, but I've had some trouble with stuck keys.  Handling input via windows messages or key state queries doesn't make a difference.
Logged
The Toad, a Natural Resource:  Preserve yours today!

herrbdog

  • Bay Watcher
    • View Profile
Re: Adventure Mode: Walking bug
« Reply #3 on: January 11, 2007, 10:20:00 pm »

Toady, I think it is the same error. I have played around a bit trying to trigger it (harder than you'd think when you WANT the error to show, I hate debugging =p). It seems to be related to the application recieving too many key messages at once, and for whatever reason, one gets stuck and not released. Perhaps the WAPI cannot send all the messages, so it retains some, and keeps sending it repeatedly, not recognizing it was received. Once I switch out, the WAPI releases the key messages (or perhaps passes them to the now active application), and going back to DF, all seems fine.

But, meh, I make amateur programmers look like pros =p. Though I loves my C...

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Adventure Mode: Walking bug
« Reply #4 on: January 12, 2007, 04:18:00 pm »

In any case, I'm not sure if it's something I can fix.  The different input methods I've tried don't work, and I'm out of ideas.
Logged
The Toad, a Natural Resource:  Preserve yours today!