SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
09-28-19, 08:36 PM | #1 |
XO
Join Date: Jan 2002
Posts: 409
Downloads: 28
Uploads: 0
|
how to change torpedo firing key
I had to reload SHIV on an old computer because I could not get it to run with
win 10. I managed to find all the custom sounds and graphics that I had installed but I want to de-activate the "enter" or "return" key that fires the torpedoes, so that torpedoes can only be fired by pressing the red button on the torpedo panel. Can anyone tell me how to do it? thanks! Joe s |
09-29-19, 12:25 AM | #2 |
Loader
Join Date: Feb 2014
Posts: 81
Downloads: 78
Uploads: 0
|
Try using this:
https://www.subsim.com/radioroom/dow...o=file&id=4715 Using this you can make a mod that you then throw into \Silent Hunter Wolves of the Pacific\Mods like you would any other mod, and activate with JSGME. It's how I made the <enter> key be for returning to 1x time compression, like in SH3. |
09-29-19, 04:46 AM | #3 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
To Deactivate Enter Key
Quote:
Depending on the SH4 version and mega mod you're using, I'd suggest you first locate the "Commands" file under the Data/cfg/ pathway. Copy and paste this file (which is a microsoft write file) to another area of your computer so that you can save and work on it without accidentally messing up the original file. Using the search feature in MS Write, type in "fire_torpedo" and hit "find next" to search. In my "Commands" file, I find [Cmd313] Name=Fire_torpedo and [Cmd345] Name=WP_Fire_torpedo. You'll probably find the same ones since they're a holdover from SH3. Notice, on one of the [Cmds], you'll see a "Keystroke" line included which looks like this: [Cmd313] Name=Fire_torpedo Ctxt=1 Key0=0x0D,,"Enter" This command fires torpedoes with the Enter key. I've not tried this but it should work if you wish to completely delete the Enter button from firing torpedoes. Simply delete the keystroke line from the above example or easier & better yet, place a ";" (semicolon) in front of the keystroke command line as follows. [Cmd313] Name=Fire_torpedo Ctxt=1 ;Key0=0x0D,,"Enter" Save your edited Commands file and rename it Commands v2 or what ever you want to call it. Next, you'll need to replace the original Commands file in the game with your new Commands v2 file. There are several ways to do this: (1) edit the original file within SH4 as we've done above, (2) rename the original commands file and leave it within the Cfg folder and then paste the newly created Commands file into Cfg and then rename it by removing the v2 notation or (3) create a new Mod, assuming you have other mods and use the Generic Mod Enabler. If you want to create a new Mod for your new Commands file. First, create a new folder and name it "Commands Menu Mod v2". Under Commands Menu Mod v2, create a new folder called "Data" then under Data, create a new folder called "Cfg" Then paste your new Commands v2 file into the Cfg folder. Next, in the Cfg folder, remove the v2 from the Commands file name: Commands v2 becomes just Commands because your new mod will not work with v2 notation. Next, copy and paste your new Mod into the Mods folder within SH4 and enable with the Generic Mod Enabler. All that remains is testing to see if it all works. Note, I changed my [Cmd313] to fire torpedo with shift+Enter key as follows. [Cmd313] Name=Fire_torpedo Ctxt=1 Key0=0x0D,s,"shift+Enter" Previously, I used ctrl+Enter until I accidentally fired a torpedo by mistake. The following edit is for CTRL+Enter: [Cmd313] Name=Fire_torpedo Ctxt=1 Key0=0x0D,c,"ctrl+Enter" Also note, you can still use the red button to fire even if you use CTRL+ENTER or SHIFT+ENTER Long winded I know, but I hope this is helpful. |
|
09-29-19, 07:16 AM | #4 |
XO
Join Date: Jan 2002
Posts: 409
Downloads: 28
Uploads: 0
|
Thanks everyone for your help!
I do not have any "mega" mods, only some sound effects and the bearing indicator, nor do I have the JSGME mod. Will try to change the "enter" command manually. I remember doing it many years ago when SH IV and the mod first came out, but that was a long long time ago! I will back up the folder, just in case I screw something up! Joe S |
09-29-19, 09:20 AM | #5 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Changing Additional Keystrokes
Joe,
Adding and/or editing keystrokes in the Commands file is very simple. Using a keystroke is much faster than using several movements and clicks of the mouse. Let me list some that I added or edited in addition to fire torpedo: Attack Map Navigation Map Toggle Radar Antenna (up or down) Follow Sound Contact Report Sound Contact Cycle Bow Tubes Cycle Aft Tubes Report Weather Report Depth under Keel Toggle TDC on/off Toggle Torpedo Auto Load Toggle Damage Team Toggle Recharge Radar Depth Target ID Report Range to end Report Time to end Man AA Guns Man Deck Guns Fire at Will Plot Course on Navigation Map Return to Course Toggle Battle Stations Report Nearest Visual Contact Let me know if you're interested in adding any of the above; I can guide you to the correct Cmd #'s. Last edited by von Zelda; 09-29-19 at 10:05 AM. |
09-29-19, 10:05 AM | #6 |
XO
Join Date: Jan 2002
Posts: 409
Downloads: 28
Uploads: 0
|
Thanks Von Zelda!
I appreciate your help with this. I did all this years ago but have no recollection as to how it was done. My first priority is to fix (deactivate) the Torpedo firing key. after that, I would like to explore whether there are dormant features in SHIV that can be activated, which we had in SH III. If I remember correctly, in SHIII we can direct the sonar operator to following a merchant ship or warship, and we can get a report of depth charges in the water. Target ID and range to end would be useful also. Thanks! Joe S |
09-29-19, 10:36 AM | #7 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
here are some Cmd #s
Quote:
Report Nearest Warship Contact is Cmd483 Follow Nearest Sound Contact is Cmd485 Follow Nearest Warship Contact is Cmd486 Estimated Range to Contact is Cmd487 Precise Range to Contact is Cmd488 I tried estimated range command but was not successful and gave up. In addition to hydrophone, needs the Sonar upgrade to be installed for sure. Range to Course End is Cmd259 Time to Course End is Cmd258 I'm not aware of any command to Report Depth Charges. Let me know when you need Key Codes and I'll try to provide help. I need Cmd codes for Toggling the Position Keeper Button On & Off; and for toggling torpedo speed or for torpedo speed from slow to fast; if anyone out there knows of these. |
|
|
|