FAQ  •  Register  •  Login

Keyboard layout probs

Moderator: MiRai

<<

Isetott

Posts: 4

Joined: Sat Aug 20, 2016 1:44 pm

Post Sat Aug 20, 2016 2:06 pm

Keyboard layout probs

Hi all!

I'm new and have a keyboard layout problem.

I run Windows 10 swedish with a swedish keyboard and layout. That is the only language that is installed.

I run the game Asheron's Call 2 through it's launcher fine with no problems with the swedish keyboard layout, all keys produce what it should. I have only begun using this and with Asheron's Call 2, but I don't believe this is a AC2 specific issue.

Now when I'm launching the game with Inner space and run isboxer (which makes my life much easier, thanks for a wonderful program) the keyboard layout seemed to change. It's not pure english but not swedish either, it's like a mix.

Some symbols as * is now on the same place as if it was a english keyboard layout, but I still have ä though on a different key. If I quit the game, Innerspace and ISBoxer and start the game through the normal launcher the keyboard is fine again.

This is my only problem that I bummed into and it bugs me quite a bit. I have tried to press (left) alt + shift to see if the layout change but no. I added english language and with that I can in the game (launched with Innerspace) change to english and it is a correct english layout, but when I switch back to swedish it's that weird mix between english and swedish again.

I would be so happy if someone could give a tip to fix so the swedish layout works with Inner space and ISBoxer.

Best Regards

Isetott
<<

Isetott

Posts: 4

Joined: Sat Aug 20, 2016 1:44 pm

Post Wed Aug 24, 2016 1:34 am

Re: Keyboard layout probs

If I have this problem solved before it expires I would get a subscription when my trial runs out tomorrow.
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Wed Aug 24, 2016 2:47 am

Re: Keyboard layout probs

You might be out of luck by tomorrow.

For older games which use Direct Input then keyboard layout mapping requires custom solutions. Inner Space does not have one implemented and thus uses Direct Inputs native (and only) keyboard mapping, which is USEnglish.

From a few other posts around the forum.
Lax wrote:The issue is related to the game's use of Direct Input for keyboard (which only supports US English ...), and will take some time yet to find the correct solution.



Now I've made an assumption that AC2 is using Direct Input, but the problem sounds pretty familiar.
So, how does your game do it? No idea, but it will be a mapping method somewhere.

/e
A bit of digging shows that AC2 should be creating a UserPreferences.ini and a .keymap file (I don't have the first part of the name), so it may be worth looking in the per character versions of these files can be set to do this mapping. If the .keymap file does not have a per character version, then it might be worth trying to create a virtual file for this (the Virtual File Wizard, select Other, the name of the original file, assign to all relevant characters, hit finish), and see if it makes a difference.
<<

Isetott

Posts: 4

Joined: Sat Aug 20, 2016 1:44 pm

Post Wed Aug 24, 2016 6:58 am

Re: Keyboard layout probs

Hi bob!

Thx for answering!

I'm a bit puzzled why the chat box input in the game works with my swedish layout when I run the game without Inner Space and ISBoxer if direct input and USEnglish layout is used?

With Inner space and ISBoxer it isn't completely USEnglish since I can type swedish letter like åäö though from other keys then they normally belongs to and some keys seems to have a USEnglish layout. This makes me think that there is a mapping before key events are passed on to the game. Another akward behaviour that showed up is: if I set focus to internet explorer or another program like notepad and try to type @ (which for me is alt gr + 2) no @ is shown but focus is switched to the game. I have to quit Inner space, ISBoxer and the game to be able to type @. Running the game launched from the normal launcher and not Inner Space I can type @ in any application without that it switches me to the game.

In the Preferences-charactername.ini it points out three .keymap files: Control.keymap, Shift.keymap and Main.keymap. In the Main.keymap I can see something like this:

"" [ QUEST_PANEL_KEY DIKEYBOARD_L ]

To open quest panel, target enemies, skill panel etc. that is no problem, but to just type text in the chat box is a problem, for an example if I'm to ask a question I don't find the ?

I understand these keymap files as a configuration on what key should do what action, like opening the inventory, use shortcut bar slot 1, 2 etc. but not to change the layout of the keyboard affecting chat input. The jobb of localizing the keyboard for different language layouts should be handled by the OS. Maybe my OS has became broken in some way.

Sorry if I missunderstood anything. I rest my playing of this game untill I can stand the idea of playing it without this nice program or that I find a solution :) Thanks again for your digging and tips!

I have tried to create virtual files as you described, but it unfortunately didn't change anything.
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Wed Aug 24, 2016 7:26 am

Re: Keyboard layout probs

Isetott wrote:I'm a bit puzzled why the chat box input in the game works with my swedish layout when I run the game without Inner Space and ISBoxer if direct input and USEnglish layout is used?
My understanding on why is a bit fuzzy, but if I have to guess, it is because the game is doing a MapVirtualKeyCode, after reading the direct input stream, and maybe Inner Space is not, so after Inner Space reads the input, it ends up sending the US layout equivalent value to the game, rather than the native layout value, because it does not do the MapVirtualKeyCode. I'm really just speculating a bit on information I have read when this issue has come up a few times and I've thought I could come up with a solution (without code) with a bit of help from google.

Isetott wrote:With Inner space and ISBoxer it isn't completely USEnglish since I can type swedish letter like åäö though from other keys then they normally belongs to and some keys seems to have a USEnglish layout.
Correct. That will be because those keys are sending a different DIK to Windows, and eventually the game, that cannot be misinterpreted. This issue will normally stem around those keys which require modifiers, or where they are assumed to be in a standard US Layout position, like SHIFT+2 in an UK layout is ", but in a US layout is @, or SHIFT+7 is & in a UK layout and \ in Norwegian, or even the Duestch with the Z and Y around the other way to a US layout, or the French with the AZERTY. This list goes on. Simply, the hardware is sending some kind of code (a DIK code?) and this is then interpreted somewhere in the stream via the Layout as a Key Code, which in turn might be mapped to a Virtual Key Code, which then determines something that might be turned into characters on the screen. Various libraries might skip some of the "standard" process, or in the case of Direct Input, read the DIK code directly and rely on custom programming to implement the remaining steps. It is all rather complicated for something that you think should be simple, and I am skipping over large amount of the process because I dont understand it. IMHO, it is because the original design of the modern computer came out of a think tank which never imagined that anyone outside of the US of A would ever get their grubby mitts on such a tool and thus there is a bunch of legacy, which has never really been totally reworked properly for a global setup. It also doesn't help that there is no one standard to identify character sets. If we ever meet nice aliens that want to send us emails, lets hope they know about ASCII.

Isetott wrote:This makes me think that there is a mapping before key events are passed on to the game.
Well, yes. Inner Space is reading your keyboard input before anything else, and then sending something to the game. What it sends depends on what it reads and how it reads it, and then will depend on which libraries are loaded and being replaced in the game (Inner Space substitutes certain API libraries with it's own ones).

Isetott wrote:Another akward behaviour that showed up is: if I set focus to internet explorer or another program like notepad and try to type @ (which for me is alt gr + 2) no @ is shown but focus is switched to the game. I have to quit Inner space, ISBoxer and the game to be able to type @.
This will be because during the Quick Setup Wizard, you missed the tickbox for the "I have an Alt Gr key". This option stops ISBoxer from assigning the default hotkeys of CTRL+ALT+[NUM] to each of the slots.
Image
Your choices from here are either to set the hotkey to something else (select the Character Set in the top left, and the Slot Number in the lower left, and then in the lower right it will have a Hotkey to Switch to this Character option), untick the "make this hotkey global" option (although the problem will still exist within game windows, which will be annoying if you need to type in something like an email address), or remove the Character Set, run through the Quick Setup Wizard again, and tick the tick box. Unfortunately you cannot set this option to NONE or NOKEY, to remove any hotkey, outside of the Quick Setup Wizard and have it not use the default values of CTRL+ALT+[NUM]. This is a bug which will hopefully be fixed (actually it might have been already and I just don't remember it).


Isetott wrote:In the Preferences-charactername.ini it points out three .keymap files: Control.keymap, Shift.keymap and Main.keymap. In the Main.keymap I can see something like this:

"" [ QUEST_PANEL_KEY DIKEYBOARD_L ]

To open quest panel, target enemies, skill panel etc. that is no problem, but to just type text in the chat box is a problem, for an example if I'm to ask a question I don't find the ?

I understand these keymap files as a configuration on what key should do what action, like opening the inventory, use shortcut bar slot 1, 2 etc. but not to change the layout of the keyboard affecting chat input. The jobb of localizing the keyboard for different language layouts should be handled by the OS. Maybe my OS has became broken in some way.

Sorry if I missunderstood anything. I rest my playing of this game untill I can stand the idea of playing it without this nice program or that I find a solution :) Thanks again for your digging and tips!

I have tried to create virtual files as you described, but it unfortunately didn't change anything.
This stuff was more out of interest as to whether there was anything you could set in them to force a keyboard layout, and perhaps it was being set incorrectly when the files were virtualised, or in the case of any non-virtualised files, they were having "access" issues due to multiple instances of the games accessing them and falling back to other behaviours. It was speculation and I didn't really hold high hopes for it as I'm pretty sure the issue is in the use of DirectInput and how Inner Space is reading and then passing values on to the game.

This problem is mainly around older games (DoAC and EQ1 are common for this to come up in), as Microsoft don't recommend developers use DirectInput anymore. They have other API's which provide the input speed which DirectInput provided, and without the annoyances of the USEnglish thing (and a bunch of other foibles), although interestingly enough, pretty much all the methods to read input from HID's have a bunch of various idiosyncrasies, and there does not appear to be a single one which does not need special handling. It doesn't help matters that there are similar issues with the hardware side too (well, firmware in the devices).
<<

Isetott

Posts: 4

Joined: Sat Aug 20, 2016 1:44 pm

Post Wed Aug 24, 2016 9:12 am

Re: Keyboard layout probs

Thanks for the alt gr-tip I missed that one.

Thanks and Good Bye!

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests