2025-07-18 00:06 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004455Spring engineGeneralpublic2014-11-16 11:47
ReporterGoogle_Frog 
Assigned Tocleanrock 
PrioritynormalSeverityminorReproducibilityrandom
StatusresolvedResolutionfixed 
Product Version97.0.1+git 
Target Version99.0Fixed in Version 
Summary0004455: Stuck in drawing mode
DescriptionOccasionally I get stuck in drawing and marker placement mode as if my backquote key is stuck down. I can tell because clicking on the map causes lines to appear. Pressing the key again fixes this. Other people report this as well.

ZK has a widget which displays a tooltip for drawing mode. It uses Spring.GetKeyState(KEYSYMS.BACKQUOTE) so I can say that GetKeyState correctly gets the state of the backquote key because when I am stuck in drawing mode the tooltip does not appear.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
has duplicate 0004577resolvedabma players frequently get stuck in "drawing" mode 
+Relationships

-Notes

~0013349

cleanrock (reporter)

I get stuck in draw mode doing the following:
1. hold down draw key
2. press enter to open chat line
3. release draw key

~0013354

jK (developer)

won't fix too complicated, and too rare (` + enter key are far away, you need 2 hands to do so)

~0013400

Jools (reporter)

` + enter key are not far away. They are right next to each other. Only backspace is in between.

~0013401

Google_Frog (reporter)

cleanrocks method for reproducing this works for me. I also sometimes get stuck in draw mode without touching the ` key.

~0013430

abma (administrator)

pressing ^ and enter at the same time already "enables" this mode for me. doesn't matter what is released first. even after pressing enter a second time drawmode is still enabled without having ^ pressed.

~0013722

Google_Frog (reporter)

I should reiterate that cleanrock's method of reproducing the issue does not accurately present the problem. It is NOT to do with accidentally hitting the ` key. The problem randomly occurs without touching that key at all.

~0013723

abma (administrator)

i'm pretty sure its not random... maybe some other key-combination triggers it?

~0013724

silentwings (reporter)

Last edited: 2014-10-09 14:43

View 3 revisions

> won't fix too complicated, and too rare (` + enter key are far away, you need 2 hands to do so)

They are far away but in normal usage of SPring you can press them accidentally together very easily. E.g. when you set a mapmark but dont write any words into it you would press ` and then enter in quick succession.

This is affecting many players with 98.0.

~0013726

abma (administrator)

Last edited: 2014-10-09 14:48

View 2 revisions

` and enter are not far away:

https://en.wikipedia.org/wiki/German_keyboard_layout#mediaviewer/File:KB_Germany.svg

~0013729

Google_Frog (reporter)

` is on the top left of my keyboard.

silentwings since you are playing a lot you could try a few different things:
 * Unbind drawinmap.
 * Bind something else to `.
 * Bind drawinmap to a different key.

~0013730

silentwings (reporter)

Last edited: 2014-10-11 03:34

View 5 revisions

Afaics it's clear that this is an easily reproducible bad bug, so I don't think anymore testing is needed (?).

If I come up with a game-side workaround (I didn't look, as yet) I'll put it on the forums for all.

~0013746

jamerlan (reporter)

in BA 8.02 I pressed 't' and it stuck in this mode. Onlt /trackoff helped me
not ESC, not 't' again and even "enter" - nothing can help to get out of this mode

~0013752

silentwings (reporter)

Last edited: 2014-10-26 01:40

View 5 revisions

workaround (not 100% successful but does cover many cases):

include('keysym.h.lua')
local BACKQUOTE = KEYSYMS.BACKQUOTE
local BACKSLASH = KEYSYMS.BACKSLASH
local PAR = KEYSYMS.WORLD_23
local RETURN = KEYSYMS.RETURN
function widget:KeyPress(key, mods, isRepeat)
    if key==RETURN and (Spring.GetKeyState(BACKQUOTE) or Spring.GetKeyState(BACKSLASH) or Spring.GetKeyState(PAR)) then
        return true
    end
end

There are definately other rarer combinations of keys that cause it, but so far I have failed to find out what they are.

~0013792

Google_Frog (reporter)

Last edited: 2014-11-01 11:53

View 2 revisions

This still occurs frequently in 98.0-113 with the above code from silentwings. By 'frequently' I mean that I know it happened at least twice in this game: http://zero-k.info/Battles/Detail/305430 (one for dark_gf and one for me).

For me it occurred just after sending a chat message with a ? at the end. I know I did not touch any marker drawing hotkey.

+Notes

-Issue History
Date Modified Username Field Change
2014-06-25 08:26 Google_Frog New Issue
2014-06-25 09:47 cleanrock Note Added: 0013349
2014-06-26 08:02 jK Note Added: 0013354
2014-07-01 10:36 Jools Note Added: 0013400
2014-07-01 12:41 Google_Frog Note Added: 0013401
2014-07-17 10:37 abma Note Added: 0013430
2014-10-09 14:12 Google_Frog Note Added: 0013722
2014-10-09 14:33 abma Note Added: 0013723
2014-10-09 14:42 silentwings Note Added: 0013724
2014-10-09 14:42 silentwings Note Edited: 0013724 View Revisions
2014-10-09 14:43 silentwings Note Edited: 0013724 View Revisions
2014-10-09 14:45 abma Relationship added has duplicate 0004577
2014-10-09 14:48 abma Note Added: 0013726
2014-10-09 14:48 abma Note Edited: 0013726 View Revisions
2014-10-09 15:28 Google_Frog Note Added: 0013729
2014-10-09 15:52 silentwings Note Added: 0013730
2014-10-09 16:23 silentwings Note Edited: 0013730 View Revisions
2014-10-09 16:38 silentwings Note Edited: 0013730 View Revisions
2014-10-09 22:29 silentwings Note Edited: 0013730 View Revisions
2014-10-10 15:20 jamerlan Note Added: 0013746
2014-10-10 15:28 abma Target Version => 99.0
2014-10-11 03:34 silentwings Note Edited: 0013730 View Revisions
2014-10-11 03:34 silentwings Note Added: 0013752
2014-10-11 03:34 silentwings Note Edited: 0013752 View Revisions
2014-10-11 03:36 silentwings Note Edited: 0013752 View Revisions
2014-10-20 23:44 silentwings Note Edited: 0013752 View Revisions
2014-10-26 01:40 silentwings Note Edited: 0013752 View Revisions
2014-11-01 11:48 Google_Frog Note Added: 0013792
2014-11-01 11:53 Google_Frog Note Edited: 0013792 View Revisions
2014-11-16 11:47 cleanrock Changeset attached => spring develop 6d98087a
2014-11-16 11:47 cleanrock Assigned To => cleanrock
2014-11-16 11:47 cleanrock Status new => resolved
2014-11-16 11:47 cleanrock Resolution open => fixed
+Issue History