lundi 11 juillet 2011

恵美の女猫のスーパーストリートファイターIVアーケードエディションのローカル選択スクリプト

In the previous version of SFIV for PC there were a few options to modify the interface language.
  1. Renaming folders to swap your current language folder name with the desired one.
  2. Change your Windows session locale.
When I got SFIV I tried them in that order but the first one gives much more to do. I may have written a script but I didn't wish to bother with it. Then I discovered that it has dependence on your sessions locale so you can change the language quite easily but as far as I remember you have to logout from your session and login again. Notice that it may affect most of your software such as GIMP for instance but it works fine.
I remember having asked about language selection in the SSFIV Japanese blog a while ago. I was thinking about a setting in the options but so far I didn't see anything. I was looking for a method to change the language as it obviously wasn't session locale dependent but on the language which have been chosen at installation. Anyway the new method for changing the game language is much simpler, faster and convenient. It is defined in the registry and all you have to do is modify a String value.. It seems its location depends on your system architecture according to KrossSPOT who is a member of the Game.FAQS Forum. As soon as I knew this, I wished to write a script and I hope it may become handy to you.

With that provided information I coded a script that changes that specific keys. I have tested it on my 64 bit edition of Windows 7 so I needed privilege. Indeed the script tries to modify a registry key so you may need the privilege too.
By default you cannot launch a script in administrator mode from context menu. I found you a page who explains how to add or remove this option on VBS files so you can take advantage of my script easily.

In the idea to prevent dead links I care to copy the source of these registry files here.
Add the "Open as administrator" context menu option registry script :

Remove the "Open as administrator" context menu option registry script :

This is what it looks like after you apply the registry file (very convenient sometimes) :

This will give you some system information by the way after what you will be displayed a dialog which prompts you for a valid locale number, some values are displayed and if you want a complete list please refer to Microsoft website. You should also checkout if the destination language you would like to display is installed in the SSFIVAE directory but the main values are displayed on the dialog.
I show you a few sample screen-shots of the result.




You can download the script on Megaupload and the code is displayed bellow :