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 09-07-09, 07:40 AM   #1
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default Simple command.cfg edit...

Ive been trying to edit the command.cfg file to alter the S and D keys due to untimely accidental deaths of my crew (hitting D while at high time comprssion = death)

Anyhow I edited the following

Quote:
[Cmd192]
Name=Dive
Ctxt=1
Str=1030
Key0=0x44,C,"Ctrl+D"

[Cmd193]
Name=Surface
Ctxt=1
Str=1031
Key0=0x53,C,"Ctrl+S"
But the game continues to use the default keys

What am I missing

RFB_v1.51_062308
RSRDC_RFBv15_V395_RC5
RSRDC_V395_Patch4
TMOMapFinal
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 07:46 AM   #2
sharkbit
The Old Man
 
Join Date: Apr 2008
Location: Denver, CO
Posts: 1,529
Downloads: 334
Uploads: 0
Default

Have you tried the Set Keys program?

It was written for SH3 but the post below talks about how to use it in SH4. Check out post #4:
http://www.subsim.com/radioroom/show...highlight=keys

I've used it in SH3 and it works great. The program makes keyboard mapping a snap. I haven't tried it in SH4 yet. After finding that thread though, I want to give it a try as soon as I get my feet under me with SH4.

__________________
“Prejudice is blind. There will always be someone who says you aren’t welcome at the table. Stop apologizing for who you are and using all your energy trying to change their minds. Yes, you will lose friends, maybe even family. But you will gain your self-respect. You will know your worth. Once you have that, nothing can stop you.”
sharkbit is offline   Reply With Quote
Old 09-07-09, 07:52 AM   #3
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by sharkbit View Post
Have you tried the Set Keys program?

It was written for SH3 but the post below talks about how to use it in SH4. Check out post #4:
http://www.subsim.com/radioroom/show...highlight=keys

I've used it in SH3 and it works great. The program makes keyboard mapping a snap. I haven't tried it in SH4 yet. After finding that thread though, I want to give it a try as soon as I get my feet under me with SH4.

Thanks I knew about that but it should have been just a simple edit.

Evidently though the game is not looking at the Commands.cfg file I am altering because I tried some crazy key combos as well as deleting the keys altogether and nothing changes.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 08:03 AM   #4
sharkbit
The Old Man
 
Join Date: Apr 2008
Location: Denver, CO
Posts: 1,529
Downloads: 334
Uploads: 0
Default

Is there a commands.cfg file in your SH4 folder in the My Documents folder?(not the root SH4 folder)

If so, does that need to be changed?

I thought I've seen a seperate commands.cfg file in the My Documents folder.

__________________
“Prejudice is blind. There will always be someone who says you aren’t welcome at the table. Stop apologizing for who you are and using all your energy trying to change their minds. Yes, you will lose friends, maybe even family. But you will gain your self-respect. You will know your worth. Once you have that, nothing can stop you.”
sharkbit is offline   Reply With Quote
Old 09-07-09, 08:13 AM   #5
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

LOL I just ran a search on my drive for commands.cfg and there is like at least 4 or 5 of them

Some with same or similar names.

How in the hell do you know which one the game is looking at?
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 08:20 AM   #6
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Make a copy of the default Commands_en.cfg file (or the one from the main mod you are using) and create a JSGME ready file structure for it.

Make your changes and then enable that mod after everything else. This will make your edited file the active/master version.

Other mods are overwriting your changes.

NB - If you have a version in your SH4 folder in My Documents, that version is the 'live' version for your current career. The Commands cfg in the main Data folder is the default version for all subsequently created careers.
__________________
danlisa is offline   Reply With Quote
Old 09-07-09, 08:25 AM   #7
sharkbit
The Old Man
 
Join Date: Apr 2008
Location: Denver, CO
Posts: 1,529
Downloads: 334
Uploads: 0
Default

Quote:
Originally Posted by SteamWake View Post
How in the hell do you know which one the game is looking at?
That is a question that I would love to know as well.

I while back, I saw in the SH3 community manual that the way to change time compression was to change the values in the .cfg file that is in the My Documents folder. That kinda makes me wonder if the game is looking at that folder, but I definitely do not know. I just wonder if the same thing applies to keyboard changes.

I played around with that in the SH4 folder, but didn't have much luck with it but I added TMO before I could really check anything, so I can't say for sure if that changed anything.

All of this kinda makes me miss SH3Commander and adjusting TC there.

__________________
“Prejudice is blind. There will always be someone who says you aren’t welcome at the table. Stop apologizing for who you are and using all your energy trying to change their minds. Yes, you will lose friends, maybe even family. But you will gain your self-respect. You will know your worth. Once you have that, nothing can stop you.”
sharkbit is offline   Reply With Quote
Old 09-07-09, 08:27 AM   #8
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by danlisa View Post
Make a copy of the default Commands_en.cfg file (or the one from the main mod you are using) and create a JSGME ready file structure for it.

Make your changes and then enable that mod after everything else. This will make your edited file the active/master version.

Other mods are overwriting your changes.
Oh good lord uhhhh.. sure... Ill uhhh do that.. yea that... uhhh I guess Ill have to look up how.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 08:27 AM   #9
sharkbit
The Old Man
 
Join Date: Apr 2008
Location: Denver, CO
Posts: 1,529
Downloads: 334
Uploads: 0
Default

Thanks danlisa.

Quote:
...and create a JSGME ready file structure for it.
How do you do that?

__________________
“Prejudice is blind. There will always be someone who says you aren’t welcome at the table. Stop apologizing for who you are and using all your energy trying to change their minds. Yes, you will lose friends, maybe even family. But you will gain your self-respect. You will know your worth. Once you have that, nothing can stop you.”
sharkbit is offline   Reply With Quote
Old 09-07-09, 08:33 AM   #10
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

OMG!

Modding 101. LOL

@Steamwake.

Your MODs are arranged in JSGME by the order they were enabled. So find the corresponding folder for the MOD (by default in the MODS folder) and copy the Commands_en.cfg file. This file will be the last activated version of the commands cfg and therefore the active one.

@ Both of you.

A JSGME File structure is as follows:

Name of MOD > data > cfg > Command_en.cfg
Name of MOD > data > Textures > TNormal > SpaceStationMoon
Name of MOD > data > etc etc........

See the pattern, Name your MOD and then just replicate the folder structure (or path ) to the original files home. Pop your MOD into JSGME's MODS folder and enable.
__________________
danlisa is offline   Reply With Quote
Old 09-07-09, 09:00 AM   #11
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

As bizzare as this may sound but I searched the entire drive and found no instances of "Commands_en.cfg".

Ive manually looked in the folders and my documents as well.

The file aint there

Oh btw the mod list in the anchor post is the exact order that jsgme has them.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 09:03 AM   #12
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Then just search for Commands. You previously said that you found 4 or 5 instances of it. _en maybe me mixing SH3 with SH4. Dunno.

Either way, use windows search and have the display set to Details, this will give you the Path Locations of these file instances.
__________________
danlisa is offline   Reply With Quote
Old 09-07-09, 09:13 AM   #13
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by danlisa View Post
Then just search for Commands. You previously said that you found 4 or 5 instances of it. _en maybe me mixing SH3 with SH4. Dunno.

Either way, use windows search and have the display set to Details, this will give you the Path Locations of these file instances.
There are no instances of "commands_en.cfg" several of "commands.cfg".

But I understand now thanks.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 09:58 AM   #14
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

I found an old mod "Keyboard Mod" it was used to mod keystrokes to emulate SH3. Its a pretty old mod and was not in use.

I edited the controls.cfg file in that then installed the mod.

No change

Yes I checked the file structure.

JSGME even warns me that the commands.cfg was being modified from the map mod (last applied).

No change
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-07-09, 10:06 AM   #15
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

OK, cut me some slack, doing this from memory.

Where were the Command cfg file located when you did the search?

Was there a version in My Documents?

Are you trying to register changes to a file using a mid patrol save location? Have you tried a new patrol/career?
__________________
danlisa 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 11:51 AM.


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.