Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Permanent scrolling  (Read 1467 times)

daveybaby

  • Bay Watcher
    • View Profile
Permanent scrolling
« on: September 28, 2006, 08:47:00 am »

Had a weird one today, was scrolling around examining dwarves when the game got stuck scrolling left. It seemed to be scrolling at about the same rate as when you have nothing selected, i.e. fast, but not as fast as, say, fast scrolling on the squad menu. Ended up scrolling through lots of wilderness. Hitting the key to go back to the main gate still worked but the scrolling just carried on again from there.

I think what probably happened is that i hit or released 2 keys at once, and theres a bug somewhere in your keyboard handling code, and scrolling got stuck on.

Didnt want to save and risk it coming back, so killed the task. When i reloaded everything was fine.

Logged

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Permanent scrolling
« Reply #1 on: September 28, 2006, 09:26:00 am »

Did you hit numlock by any chance. I notice it will start doing this if you do.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

daveybaby

  • Bay Watcher
    • View Profile
Re: Permanent scrolling
« Reply #2 on: September 28, 2006, 11:16:00 am »

Yeah, its just checked and its numlock that does it. Nasty - cant seem to regain control in any way.
Logged

Mechanoid

  • Bay Watcher
  • [INTELLIGENT]
    • View Profile
Re: Permanent scrolling
« Reply #3 on: September 28, 2006, 05:18:00 pm »

I've encountered this issue as well. It's not just Numlock that freezes the direction, but also the announcement screen and even inventory page.

This also happens in Adventure mode, so it's DEFINITELY something to do with pressing /releasing multiple keys at once, while possibly switching to other screens.

Logged
Quote from: Max White
"Have all the steel you want!", says Toady, "It won't save your ass this time!"

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Permanent scrolling
« Reply #4 on: September 29, 2006, 04:51:00 pm »

I have no idea what's going on.  Kobold Quest's source is up if anybody wants to check, but I'm no good for technical problems.  If I remember, I have it query the key state now right when it checks for held keys, but either that part's messed up or the keyboard is returning something incorrect.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Citizen of Erl

  • Bay Watcher
    • View Profile
Re: Permanent scrolling
« Reply #5 on: September 29, 2006, 05:32:00 pm »

I have this happen periodically. I find that switching to another window, then switching back will cure it.
Logged

isitanos

  • Bay Watcher
  • Seasonal river flood nostalgic
    • View Profile
Re: Permanent scrolling
« Reply #6 on: October 07, 2007, 07:39:00 pm »

Same bug here. I have yet to test the difference between Numlock key on and off.

Usually I solve the bug by hitting very shortly the same direction key that got stuck again, or together with the shift key. After a few tries it usually works.

Another wierd thing that I noticed is that shift works after you already started scrolling with the arrow keys. If shift works like a modifier key, when you start holding it shouldn't matter, isn't it?

Logged

Turgid Bolk

  • Bay Watcher
  • Tacticus Grandmaster
    • View Profile
    • http://...
Re: Permanent scrolling
« Reply #7 on: October 07, 2007, 09:14:00 pm »

What I've observed is this: It works normally if you let go in reverse order of how you pressed it. For instance, if you press [direction] then [shift], you have to let go of [shift] first.

Otherwise it gets stuck. To fix it, press the same key combination that it's stuck in. Either [direction], or [direction] and [shift] should fix it.

This is reliable, so you can do it on purpose if you want to keep scrolling for some reason. You can make it get stuck going slow or fast, depending on the order you press the keys.

Logged
"This is an engraving of a Dwarf and a Mandrill Leather Skirt. The Dwarf is raising the skirt."
Multiplayer Adventure Mode, the (now defunct) DF roleplaying game.

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Permanent scrolling
« Reply #8 on: October 07, 2007, 09:23:00 pm »

That doesn't get the bug to reproduce for me.  No matter what combination of pressing a direction key or shift, and no matter how long I hold them or which order I lift them, it works fine.  I can get the bug to happen (unreliably) by pressing several direction keys at once.  The Kobold Quest source is basically the same if anybody wanted to take a look at it, but it is a huge mess -- partially because of attempts to fix this sort of behavior piling on top of each other.  Keyboard input is annoying.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Savok

  • Bay Watcher
    • View Profile
Re: Permanent scrolling
« Reply #9 on: October 07, 2007, 09:56:00 pm »

quote:
Originally posted by daveybaby:
<STRONG>Didnt want to save and risk it coming back, so killed the task. When i reloaded everything was fine.</STRONG>

Always, always restore from a backup when you ctrlaltdel! It will crash your game if you don't!
Logged
So sayeth the Wiki Loremaster!

Pacho

  • Bay Watcher
    • View Profile
Re: Permanent scrolling
« Reply #10 on: October 07, 2007, 10:35:00 pm »

quote:
Originally posted by Savok:
<STRONG>
Always, always restore from a backup when you ctrlaltdel! It will crash your game if you don't!</STRONG>

Eventually that is.  Chances are, something is out of place in your data files.  It will probably show up much much later.

Logged

Poil

  • Bay Watcher
    • View Profile
Re: Permanent scrolling
« Reply #11 on: October 08, 2007, 04:43:00 am »

Scrolling in the direction you are scrolling at usually helps in most games where you get that bug. Camera stuck scrolling left, hit the left arrow key and it should stop. "I can get the bug to happen (unreliably) by pressing several direction keys at once." seems to be the only cause as far as I can tell. But I'm no expert in the matter.
Logged
[DEMONLORD]

Vengeful Donut

  • Bay Watcher
    • View Profile
Re: Permanent scrolling
« Reply #12 on: October 08, 2007, 09:34:00 am »

I've seen this same behavior in many games. To reproduce it
-hold down shift
-press a direction
-release shift
-release the direction

To undo it, tap that direction a few times.

It may not be a DF bug, since this is pretty widespread.

Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Permanent scrolling
« Reply #13 on: October 08, 2007, 10:29:00 am »

Call it an undocumented feature. problem solved  :D
Logged
Eh?
Eh!

Seryntas

  • Bay Watcher
  • has created a masterpiece!
    • View Profile
    • RPGWW Forums
Re: Permanent scrolling
« Reply #14 on: October 08, 2007, 12:26:00 pm »

I get this problem a lot, but then again I play DF on a USB keypad, so my situation is automatically different from everyone else's; no one else here can accidentally hit one key while the same key is held down on another keyboard.
Logged
"Nectar and ambrosia are all the gods are allowed to eat in Greek mythology. In that way they're kind of like pandas. You know, in diet. From there the similarities break down." -my Greek Lit TA
Pages: [1] 2 3