You do NOT need to update your hax for 1.2 if you are using a version 1.1 input_preferences file, or using a keyboards xx_XX.txt change
Since apparently, there are no plans to allow players to change their controls, and the information is already floating around these forums but is quite hard to find, I thought I'd make a more difinitive post on how to change your controls.
There's 2 main reasons why you'd want to do this;
1) You have a "non standard" keyboard, like azerty or dvorak, and multiwinia refuses to auto reconfigure itself to work comfortably with these (Apparently a problem from belgian azerty keyboards; Poirot would be pleased they're not being confused with french)
2) You're finicky like I am and don't use "standard" WSAD keys, or you just want to mess around with the other controls in the game.
In both cases, you'd love a little change controls dialog to change your controls. Sadly, this apparently was decided to not be worth the what I can only assume would have been a few hours it would have taken to create. Therefore, you'll have to use the game's resource files to change the default controls.
Step 1)
Find multiwinia.exe, it's probably in c:/program files/multiwinia/, or wherever you installed it. In this folder make 3 subfolders, each within the former (unless you already have); data/input/keyboards, to match the following structure:
somefolder/multiwinia.exe
somefolder/data/input/keyboards/
To be clear, you WILL HAVE TO MAKE THESE FOLDERS. A lot of people don't realise this immidietly, so I shall strive to be clear.
Step 2)
Review this file: input_preferences.txt. This is a copy of the default keyboard controls from Multiwinia, as of 1.1.0. This file was provided curtosy of ME! Screw that Jelco guy, I've outgrown him! If you just want to simply change a few controls, then you should follow lorent's advice in this thread, which I shall repeat for you here. This is based chiefly on lorent's advice, until I note otherwise, so thank him for this:
Create a new text file in your newly created keyboards directory which corresponds to your keyboard's language, or the language you think it might be being detected as. In my case this was en_UK.txt. At this stage we're not sure what this will be for languages which fail to match up with the keyboard modification files that they probably should match up with, please post your experience in this regard. Alternatives are en_US.txt, fr_FR.txt and de_DE.txt (full list of currently implimented keyboard layouts at end of post). In my case, I now have this:
somefolder/multiwinia.exe
somefolder/data/input/keyboards/en_UK.txt
Step 3)
Into this file, paste in the lines you wish to change from the examples you can find in input_preferences.txt linked above, or from below using my file as a basis to work from. Here's an example of my en_UK.txt that I have in my keyboards folder, I wouldn't reccomend you use this directly and you almost definately want to change this;
Code: Select all
CameraLeft = key q pressed
CameraRight = key e pressed
CameraUp = key w pressed
CameraDown = key x pressed
CameraForwards = key a pressed
CameraBackwards = key s pressed
(that is, strafe left, strafe right, gain altitude, lose altitude, move forwards, move backwards, in that order)
(end of lorient advice)
There is a caveat to using this for more advanced control changes: These also unbind other controls, for example, typically D is CameraRight, but while it D isn't rebound in the lines specified above, if the above is used, D no longer performs CameraRight. If you're creating a complicated control scheme, this may cause problems for you. You may also only be able to have one of each binding in a keyboards file, for example, I had both my modified controls as well as the original cursor key assignments in my en_UK.txt (you can see them clumped together in input_preferences), and leaving the cursor assignments in overwrote my controls - removing those extra lines, so my file resembled the above, worked perfectly.
I imagine that 99% of people who want to change their controls will be satisfied with this!
Step 4) Skip this step if you are now happy with your control changes!
If your controls aren't working quite right using a text file in keyboards, or at all because you can't work out quite how to name it for your regionality, or you're having problems with unbinding, you'll need to forget the keyboards thing because it's too fiddly and limited in scope to fix your problems. Instead, save a copy of the input_preferences file linked above into the data/input directory that you created (not into the keyboards folder), and then edit this file in much the same way as detailed above with the keyboards text file. Input_preferences.txt is much more powerful, and should allow you to successfully change your controls. Remember that if you are in a regional area, any changes you do make to input_prefences may be overwrote by a file in keyboards, so if in doubt, create empty files called fr_FR.txt and de_DE.txt in the keyboards folder.
And you're done, you should have now successfully remapped your controls! Happy day! If you have any problems, please don't hesitate to post them, and any mistakes I've made will hopefully get corrected!
If IV DO create a means to change your controls in the future, you should delete all of these files and use the method they provide, unless it doesn't satisfy what you want to do. If this even does occur, I'll update this post to reflect that and detail what you can do.
FAQ:
Where did you get input_preferences.txt??
You can find it inside main.dat. All of Multiwinia's .dat files are actually .rar files in disguise. If you do extract main.dat, don't extract it directly into the multiwinia directory, as this will really mess up your map list. Always remember to rename your files back to what they should be afterwards if you do do this.
How do I bind to keys like - and = and '?
Short answer is, don't. A lot of these keys simply don't work due to some crazy input handler that Xwinia uses. Get the Darwinia Demo and this should let you work rebind your controls. Use the commands it thinks you're entering in input_preferences or your keyboards file to attach input to these keys. For example, it believes - is COMMA and = is COLON, ] is { and ` is }. , is =, . is -, and / is ., # is \ and other such insanity if you can find a key to check. Many other keys like these, like [, don't work at all and are referred to as unknown by pre 1.5 Darwinia (Darwinia shares its input handler with Multiwinia, apparently) - Darwinia 1.5.X refuses to acknowledge these keys at all, and they may be unusable.
They made the keyboard input stop hammertime working in the main menu? Can this functionality be added back in?
Yes it can! I was going to come and post about this but I was being totally lazy and gerph pretty much beat me to it, bar a few caveats. Pretty much you want to add;
Code: Select all
#don't try to be clever and change this to key enter down because bad things will happen >:(
MenuActivate = key space down
MenuLeft = key left down
MenuRight = key right down
MenuUp = key up down
MenuDown = key down down
to your keyboards/input preferences file and it all works pretty much as before except with space instead of enter. Why not go the whole hog and just use enter instead of space? Well, if you do, it seems like some wierd ass bug will make the game crash if you use enter to select a map in at least single player, crashing the game to desktop. I guess that might get fixed or something but in the mean time it's a bit of a barrier to use, so, I figure space is as good an alternative as we're going to get.
What are the currently available keyboard file names?
Taken from locales.txt, in the input folder,
Code: Select all
de_DE
en_US
fr_FR
en_UK
en_CA
Just add .txt. The names apparently correspond to OSlanguage_OSKeyboardLayout.txt, so if you have a UK keyboard with a US layout selected (and no UK layout installed), it'll probably try to use en_US.txt.
Presumably, http://www.cryer.co.uk/brian/windows/info_windows_locale_table.htm is the source of the locale codes the game uses and matches up in locals.txt in the input folder of main.dat, and you could add additional ones to locales.txt, but that's fairly advanced.
MOAR QUESTIONS?
Finally, please do post here if you found this useful. I genuinly have no idea how many people use different controls, I know I have for many years. I was really rather irked when the ability to change them wasn't included with the game, and I'd like to know if other people feel the same way.