View Single Post
Old 06-19-19, 08:55 AM   #8
von Zelda
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default Change or add keyboard commands

You can easily change or add keyboard commands in SH4. I previously did this in SH3 and since playing SH4, I have now changed or added keystrokes to SH4.

Locate the commands file (a MicroSoft Write file and can easily be edited) in the SH4 directory under Data, Cfg, commands. Copy this commands file and save it in another location to work on. Before working on it, make a copy of this file and rename it commands_original SH4 so you'll have a backup of the original file.

Then, create a mod file called "Commands Menu Mod" which will be your Mod for the JS Generic Mod Enabler. Under the mod file Commands Menu Mod, create a file called Data, then under Data, create a file called Cfg and then under Cfg, copy and paste the (original) commands file. This is the file you'll work on.

Then open the commands file with a double-click; a MS Write page will appear. Arrow down some 36-40 lines and you'll see the first command appear: [Cmd1] This is the first of 566 commands. You'll only need to edit a few as follows. These are the commands that I have added or changed:

[Cmd253]
Name=Return_to_course
Ctxt=1
MnID=0x3F060004
Key0=0x56,c,"CTRL V"

[Cmd261]
Name=Report_weather
Ctxt=1
MnID=0x3F250006
Key0=0x57,c,"CTRL W"

[Cmd313]
Name=Fire_torpedo
Ctxt=1
Key0=0x0D,c,"CTRL Enter"

[Cmd419]
Name=AAGuns_Fire_at_will
Ctxt=1
MnID=0x3F180006
Str=1063
Key0=0x5A,s,"SHIFT Z"

[Cmd430]
Name=Man_the_deck_gun
Ctxt=1
MnID=0x3F2D0002
Str=2944
Key0=0x58,c,"CTRL X"

[Cmd431]
Name=Man_the_flak_gun
Ctxt=1
MnID=0x3F2D0003
Str=2945
Key0=0x5A,c,"CTRL Z"

[Cmd434]
Name=Report_nearest_visual_contact
Ctxt=1
MnID=0x3F0A0008
Key0=0x47,c,"CTRL "G"

[Cmd436]
Name=Toggle_battle_stations
Ctxt=1
Key0=0x42,c,"CTRL B"

[Cmd437]
Name=Toggle_activate_damage_control_team
Ctxt=1
Key0=0x42,s,"SHIFT B"

[Cmd460]
Name=Radar_one_sweep
Ctxt=1
MnID=0x3F2B0002
Key0=0x52,,"R"

[Cmd461]
Name=Radar_continuous_sweep
Ctxt=1
MnID=0x3F2B0003
Key0=0x52,s,"SHIFT R"

[Cmd462]
Name=Radar_turn_off
Ctxt=1
MnID=0x3F2B0004
Key0=0x52,c,"CTRL R"

Notice that in each of the above commands, I've added or changed the line beginning with Key0=

Save this new commands file. So, to recap, you'll have a new commands file under the path: Command Menu Mod/Data/Cfg/commands

Assuming you use the JS Generic Mod Enabler, place this new mod into the MODS folder. If you don't, you'll need to manually replace the old, original commands file with your new file.


These are the keys we've changed:
R = sweep radar on
shift R = radar on
ctrl R = radar off


W = toggle tubes
ctrl W = report weather


Enter = now does nothing
ctrl Enter = fires torps


ctrl G = report nearest visual target


B = binocular view
shift B = toggles Damage Control
ctrl B = toggles Battle Stations


ctrl V = return to course


X = activate clock
ctrl X = man the deck gun


Z = toggle silent running
shift Z = fire AA guns at will
ctrl Z = man the flak gun



All that's left is testing. Hope this is helpful. Respond if you have any questions. Let me know, if you have any other needed keystrokes. I might want to add them too.
  Reply With Quote