SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-13-17, 02:07 PM   #1
CptGlub
Mate
 
Join Date: Oct 2011
Posts: 59
Downloads: 76
Uploads: 0
Default Changes to Commands.cfg Have No Effect

SH4 Gold Edition. Using JSGME to swap in GFO(snorkel name change fix & New Orders Bar Menu that come with GFO) and Magnified Hud Dials for 1.5 Large.

Played TMO for so long that I can't get used to new keyboard layout. Especially when the action is on. No problem, I say, I'll just go in to the commands.cfg and make all the GFO keys just like the TMO keys. Tedious but it will be worth it, I think.

I have gone into every stinking commands.cfg in the silent hunter 4 and mods folders and made the same change to bind the attack peri to F3.

Game refuses to change. F3 is still nav map regardless of which commands.cfg I change and I've tried every combination with game restarts and even tried a system reboot.

Can someone please tell me the trick to changing the keyboard commands?

WHILE I HAVE YOUR ATTENTION

Why are the GFO and Snorkel name change mods greyed out in the "activated mods" box of JSGME while the New Orders Bar Menu and Magnified Hud Dials mods are in black?

I know GFO is working because the opening splash page has "gfo" on it.

my JSGME is version 2.6.0.157

Thanks for your help.
CptGlub is offline   Reply With Quote
Old 05-13-17, 04:59 PM   #2
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,103
Downloads: 451
Uploads: 2


Default

If I'm not forgetting my mind completely, seems to me that there is a TMO Keys for GFO... now, where to find it?...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 05-13-17, 10:12 PM   #3
CptGlub
Mate
 
Join Date: Oct 2011
Posts: 59
Downloads: 76
Uploads: 0
Default

I'm confused.

If the Commands.cfg controls what the keyboard keys do and the following code snippet is in that .cfg and "F3" isn't used for any other key, then why doesn't the F3 key take me to the attack periscope?

[Cmd16]
Name=Periscope_camera
Ctxt=1
MnID=0x3F020003
Key0=0x73,,"F3"
;Key0=0x72,,"F3"
Page=0x26000000,3702
GoBack=Conning_tower_camera
CptGlub is offline   Reply With Quote
Old 05-13-17, 11:24 PM   #4
Sniper297
The Old Man
 
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
Default

Starting with the easy one;

"Why are the GFO and Snorkel name change mods greyed out in the "activated mods" box of JSGME while the New Orders Bar Menu and Magnified Hud Dials mods are in black?"

JGSME is basically a sophisticated backup/copy/paste/overwrite utility. When you activate a mod it checks which files are in the mod, copies the same name files from the game's folders to a backup, then overwrites them with the files from the mod. So if the next mod you install overwrites one of those same files, it can't copy that file to the backup, because then it would lose the original file.

Example, activate Improved Stock Environment_v3. JGSME reads all the files in the mod, copies them to a backup, then overwrites all the game files including scene.dat. Now I go to activate Lite Fog, which overwrites the same scene.dat file. I get a warning;

Folder "Data" has already been added by the "Improved Stock Environment_v3" mod.
"scene.dat" has already been altered by the "Improved Stock Environment_v3" mod.


Say YES to overwrite, and it will gray out the Improved Stock Environment_v3 to let me know there's some other mod which I need to deactivate before this one. If I can't figure that out the simplest way is to deactivate all, then re-activate in whichever order doesn't cause conflicts.

As for the F3 key,

[Cmd32]
Name=Navigation_2D_map
Ctxt=1
MnID=0x3F020002
Key0=0x72,,"F3"
;Key0=0x74,,"F5"
Page=0x31000000,3740

Did you add the comment to disable this one?

[Cmd32]
Name=Navigation_2D_map
Ctxt=1
MnID=0x3F020002
;Key0=0x72,,"F3"
;Key0=0x74,,"F5"
Page=0x31000000,3740

It's possible the program is processing CMD32 before CMD16, going by whatever that MnID line is - in alphanumeric order MnID=0x3F020002 comes before MnID=0x3F020003. If that's the case it might be programmed to load the first instance of the command it comes to and ignore any duplicates it runs across later, since it's already set. To make this work you'd need to disable with a comment ( ; ) anything already using that keystroke.
Sniper297 is offline   Reply With Quote
Old 05-14-17, 09:39 AM   #5
CptGlub
Mate
 
Join Date: Oct 2011
Posts: 59
Downloads: 76
Uploads: 0
Default

Yes, I swapped keys between commands 32 and 16. F3 shows up again but it is way down at the bottom of the .cfg in what appears to be some multiplayer commands that I tend to ignore as they never seemed to cause a conflict.

Thank you, Sniper, for the explanation on JGSME. Very informative.
CptGlub is offline   Reply With Quote
Old 05-14-17, 10:32 AM   #6
CptGlub
Mate
 
Join Date: Oct 2011
Posts: 59
Downloads: 76
Uploads: 0
Default

Wow, just went in and knocked all mods out of JSGME.

Deleted the commands.cfg and backup copy of same from my SH4WOP file.

Copied in a clean commands.cfg from my original install backup files. So, basically, I have SH4WOP as installed. Clean.

Swapped the keys between commands 16 and 32.

Launched a new campaign.

F3 still takes me to the nav map.

here are copies of my commands 32 and 16:

[Cmd16]
Name=Periscope_camera
Ctxt=1
MnID=0x3F020003
Key0=0x73,,"F3"
;Key0=0x72,,"F3"
Page=0x26000000,3702
GoBack=Conning_tower_camera

[Cmd32]
Name=Navigation_2D_map
Ctxt=1
MnID=0x3F020002
Key0=0x72,,"F4"
;Key0=0x74,,"F5"
Page=0x31000000,3740

Guess I'll trash the entire SH4WOP folder and copy it again from my backup install to see if that does anything. If a no-go, I'll throw it all out and reinstall from the disc.
CptGlub is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.