Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Run-away Cursors  (Read 1981 times)

Parhelion

  • Bay Watcher
    • View Profile
Run-away Cursors
« on: May 30, 2012, 11:20:22 pm »

Every so often while playing Dwarf Fortress, I get a run-away cursor.

Basically, the little X on the screen decides to pick a direction and begins moving in that direction very quickly.  It's very difficult to get it to stop, so it prevents me from using the cursor to do.. well.. anything.  It seems to be most often triggered randomly on SHIFT + [some key] key presses.  Sometimees, I can get it to stop by pressing the directional key that corresponds to the direction the cursor is moving in, but this does not always work.  When this happens, I must completely shut down DF and restart (unloading and reloading the save does NOT work).

This has been happening more and more recently and has even "infected" a savegame so that even reloading the save does not appear to work.

Does anyone have any suggestions on how to fix this glitch?
Logged

zombie urist

  • Bay Watcher
  • [NOT_LIVING]
    • View Profile
Re: Run-away Cursors
« Reply #1 on: May 31, 2012, 12:50:19 am »

Do you use a touchpad-type mouse? I believe there is a init setting that lets you disable the mouse. 
Logged
The worst part of all of this is that Shakerag won.

Finn

  • Bay Watcher
    • View Profile
Re: Run-away Cursors
« Reply #2 on: May 31, 2012, 01:30:39 am »

I agree with the previous poster that this seems like a hardware problem, or at least a system problem and not a df problem.  I would check for stuck keys first.
Logged
I thought 'complained about the draft lately' meant they didn't have a door to their room.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Run-away Cursors
« Reply #3 on: May 31, 2012, 01:44:50 am »

Have you changed any keybindings? Sometimes the game doesn't accept certain keybindings so it gets "stuck" on the invalid ones. As a result it just presses them over and over again and could result in what you have happening.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Beach Bum

  • Bay Watcher
    • View Profile
Re: Run-away Cursors
« Reply #4 on: May 31, 2012, 02:41:22 am »

I've had this happen too. Always with me doing Shift+directional key to start it, never noticed it with Shift+letter. Tapping the directional key it is going in (99% of the time this is the up key for me) stops it until I do the shift+directional key again. It is pretty rare, though once it starts I have to quit DF and reload it to fix it or it just keeps happening. Only happens in DF too and no amount of effort has gotten it to happen anywhere else and the key definitely isn't stuck down because I've taken it off before tapping Shift+right arrow and it still does it.

I always figured it was something to do with a mod myself since I have pretty much always been running through Lazy Newb or Masterwork whenever I play. Plus I've fixed the key bindings so I don't have to use < or > to go up down z-levels using the alternate ones provided with LNP instead since hitting shift is annoying when I want to move quickly.
Logged

Parhelion

  • Bay Watcher
    • View Profile
Re: Run-away Cursors
« Reply #5 on: May 31, 2012, 03:01:14 am »

I really do believe its an issue with DF -- like the above poster, it ONLY happens in DF.  Stuck keys are always checked for first.  Also, I do believe it's SHIFT + Direction, but it happens so quickly sometimes I just don't notice.  It's most noticeable when using 'k' to look around.  And it is rare, so it's not something that you can really reproduce.

I also use Masterworks.  The problem has also occurred when I used LNP.

In this particular instance, I finally fixed it by rage-quittingly hitting every single key on my keyboard.  One of them apparently fixed it.  XD

Logged

Scelly9

  • Bay Watcher
  • That crazy long-haired queer liberal communist
    • View Profile
Re: Run-away Cursors
« Reply #6 on: May 31, 2012, 03:14:57 am »

Just press the directional key that you hit to start it to stop it. It can sometimes stick when you hit two or more keys on certain keyboards at the same time, it happens to me in minecraft all the time. Just hit the arrow in the direction the cursor is going to stop it.
Logged
You taste the jug! It is ceramic.
Quote from: Loud Whispers
SUPPORT THE COMMUNIST GAY MOVEMENT!

Garath

  • Bay Watcher
  • Helping to deforest the world
    • View Profile
Re: Run-away Cursors
« Reply #7 on: May 31, 2012, 03:48:50 am »

had it happen a few times when I was pressing shift - key - cursor or some other strange combination with a cursor.

leaving the df screen and reopening it again seems to solve the problem
Logged
Quote from: Urist Imiknorris
Jam a door with its corpse and let all the goblins in. Hey, nobody said it had to be a weapon against your enemies.
Quote from: Frogwarrior
And then everyone melted.

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Run-away Cursors
« Reply #8 on: May 31, 2012, 04:05:34 am »

This happens to me too.

Shift+direction key. It can usually be resolved by mashing shift and directional keys randomly. Once, I had to restart DF.

It only happens on my notebooks, desktop was okay. No other application is affected, I did no keymap customization.

edit:

Seems like it was reported and marked as resolved for version 0.31.04: http://www.bay12games.com/dwarves/mantisbt/view.php?id=1454
« Last Edit: May 31, 2012, 04:11:46 am by zwei »
Logged

GhostDwemer

  • Bay Watcher
    • View Profile
Re: Run-away Cursors
« Reply #9 on: May 31, 2012, 10:33:57 am »

I have had this problem as well, and only in dwarf fortress. For example, if I tab out to notepad, the cursor behaves fine while in that window, but go back to DF and BAM! it's off and running to the right. Zwei is right, mashing shift and direction keys seems to help, but once it gets messed up once, I can fix it but it WILL happen again. Except it hasn't happened in a while, so maybe it is fixed in the newer versions.
Logged

ab9rf

  • Bay Watcher
    • View Profile
    • ab9rf@github
Re: Run-away Cursors
« Reply #10 on: May 31, 2012, 10:47:48 am »

DF seems to occasionally lose keystrokes on Windows.  This gets worse the more loaded/laggy the game is. The stuck arrow key problem described above occurs when DF misses the key release event and so thinks the key is still down. 
Logged