View Issue Details

IDProjectCategoryLast Update
0003713AI War 1 / ClassicGUIAug 8, 2011 11:00 pm
Reportermikeash Assigned ToChris_McElligottPark  
Status closedResolutionnot fixable 
Product Version5.014 
Summary0003713: [Mac] Incorrect keyboard layout used for in-game hotkeys when multiple layouts present
DescriptionI'm running 5.014 in trial mode on my Mac. I normally use the Dvorak keyboard layout, however I prefer to use QWERTY for games, as the default keyboard layout for games is always arranged with QWERTY in mind. Normally this is just a matter of switching the layout in the input menu before starting the game.

With AI War, this doesn't work. (I've seen this with some other games as well, and have never figured out what's going on, unfortunately.) It appears that at some point, AI War has decided that I'm using Dvorak, and it interprets keypresses according to that no matter which layout I have set currently.

In case this is unclear, let me illustrate with a quick example. The in-game pause key is P. When I use the Dvorak layout, the key labeled R on my physical keyboard produces P on the computer. AI War will only pause when I press R, even when switched to QWERTY, where that keypress actually produces R.

My guess is that AI War scanned the keyboard once when it first started and stashed that info away somewhere. Unfortunately, I can't find where that would be. I tried creating a new profile in the game and the problem persists. I've also tried deleting my inputbindings.dat and settings.dat with no success.

Ideally, AI War would use the current keyboard layout no matter what. But failing that, it would be nice to at least figure out where it's storing the layout info and reset it. Any hints?
TagsNo tags attached.
Internal Weight

Activities

Chris_McElligottPark

Aug 6, 2011 10:21 am

administrator   ~0012817

Unfortunately, this is at the level of the unity 3d engine and/or the OS -- so there's not anything we can directly do about this one.

What I can tell you is that we store the key bindings in a file called inputbindings.dat in your runtimedata folder under your game folder. I suggest renaming that and inputbindings.bak to have a 2 in them or similar and see if that fixes it. It will lose all custom key bindings you have, but nothing else.

Hope that helps!

mikeash

Aug 6, 2011 5:01 pm

reporter   ~0012818

Thank you for the response. Unfortunately, renaming that file doesn't have any effect on the problem. I'm sure this isn't an OS bug, as other apps don't have the problem, which implies Unity. Do you know what the best way would be to report the bug to Unity? Any pertinent info from you that I should pass along if I do so?

Chris_McElligottPark

Aug 6, 2011 7:16 pm

administrator   ~0012819

I don't think that Unity 3D has a way for end users to report bugs. However, if you have any added details that will help them, I can submit a bug report on your behalf. They don't tend to respond or give any indication of when or if they'll fix such things, just to warn you, but if it makes it into a future version of the engine then that would make it into our game, as well.

Although, I will say that they just came out with their 3.4 version and we're still on 3.3 because they introduced an audio bug that causes a crash within a few seconds for people loading sounds in the manner we do. It's a really awesome engine, but when it comes to smallish bugs of this nature they don't have the best track record. But it's definitely better to submit than not!

And if you want to raise the issue more directly in another fashion, you can also submit a topic here as well: http://feedback.unity3d.com/forums/15792-unity

Also not really intended for end users, but easy to submit something at.

Sorry for the trouble, I really hate it when this sort of thing happens!

mikeash

Aug 7, 2011 11:50 am

reporter   ~0012821

Thanks again for the info. The game is still entirely playable, it's just a little annoying.

As far as additional info for Unity goes, they'll probably want to know that I'm running Mac OS X 10.6.8, that I normally have Dvorak, QWERTY, and Pinyin - Simplified keyboard layouts available, and that the problem somehow persists even if I completely disable, not just switch away from, the Dvorak layout. That's about all I can think of, but I'll be happy to provide anything more if you or they want it.

Chris_McElligottPark

Aug 8, 2011 8:54 am

administrator   ~0012824

Hi Mike,

Okay, I've reported the issue to them, and hopefully they'll take a look at it. If it gets any sort of response I'll post a note about it, but they tend not to respond unless they have followup questions; they usually just silently fix the issue or ignore it, to my frustration.

Thanks for your patience!

mikeash

Aug 8, 2011 10:26 pm

reporter   ~0012836

Much appreciated, and thanks for the excellent support.

Chris_McElligottPark

Aug 8, 2011 11:00 pm

administrator   ~0012837

My pleasure, I just wish we could fix it ourselves!

Issue History

Date Modified Username Field Change
Aug 6, 2011 12:17 am mikeash New Issue
Aug 6, 2011 10:21 am Chris_McElligottPark Note Added: 0012817
Aug 6, 2011 10:21 am Chris_McElligottPark Status new => closed
Aug 6, 2011 10:21 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 6, 2011 10:21 am Chris_McElligottPark Resolution open => not fixable
Aug 6, 2011 5:01 pm mikeash Note Added: 0012818
Aug 6, 2011 7:16 pm Chris_McElligottPark Note Added: 0012819
Aug 7, 2011 11:50 am mikeash Note Added: 0012821
Aug 8, 2011 8:54 am Chris_McElligottPark Note Added: 0012824
Aug 8, 2011 10:26 pm mikeash Note Added: 0012836
Aug 8, 2011 11:00 pm Chris_McElligottPark Note Added: 0012837
Apr 14, 2014 9:28 am Chris_McElligottPark Category Bug - UI => GUI