Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressing ` or Caps-Lock causes the error screen to pop up #184

Open
Hopson97 opened this issue Mar 26, 2020 · 2 comments
Open

Pressing ` or Caps-Lock causes the error screen to pop up #184

Hopson97 opened this issue Mar 26, 2020 · 2 comments
Labels
Bug Reporting or fixing something that is not working as intended

Comments

@Hopson97
Copy link
Owner

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Run the game
  2. Press caps lock or `
  3. See the error screen

Expected behavior

Nothing should happen

Screenshots

image

Desktop (please complete the following information):

Windows 10

Additional context

No idea

@Hopson97 Hopson97 added the Bug Reporting or fixing something that is not working as intended label Mar 26, 2020
@Hopson97 Hopson97 added this to To do in Open Builder via automation Mar 26, 2020
@gml16
Copy link
Contributor

gml16 commented Mar 27, 2020

Also caused by the print screen key, f11 and keys related to the sound.

@georgew79
Copy link
Contributor

So... I hope no one minds me commenting here, just thought I'd give it a shot.
I noticed the print screen issue while trying to take some screenshots of my progress on a different issue. I took a few minutes to just dig around in the debugger, and it seems as if e.key.code is unknown at -1, and thus causes an array bounds error.

...
Screenshot (24)

So, I played around with it a little more, and used some debug info to find this...
Screenshot (26)

The key takeaway here is at the bottom, where e.key.code is unknown (-1).
Just to test, I started printing e.key.code. I did a few test prints, and then tried prtScm, and got...
Screenshot (28)
The value of -1 then, of course, will cause an array out of bounds error.

I'm sure I'm just stating the obvious, but I thought it's better to have it set in stone than not at all. We might be able to deal with this by ignoring any unknown codes.

Thank you for all your time! Have a wonderful day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reporting or fixing something that is not working as intended
Projects
Open Builder
  
To do
Development

No branches or pull requests

3 participants