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-08-09, 06:27 AM   #8
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by SteamWake View Post
...
Anyhow I edited the following
Quote:
[Cmd192]
Name=Dive
Ctxt=1
Str=1030
Key0=0x44,Cc,"Ctrl+D"

[Cmd193]
Name=Surface
Ctxt=1
Str=1031
Key0=0x53,Cc,"Ctrl+S"
...
All are very simply ... look above and below:

C - it's Crew Command (... ,C, ...);
c - it's additional key Ctrl (... ,c, ...) or (... ,Cc, ...);
s - it's additional key Shift (... ,s, ...) or (... ,Cs, ...);
R - to keep key of pressed (... ,R, ...) and so on ...

Quote:
I tried correcting the syntax from 'CTRL D' to 'Ctrl+D' still doesent work.
It's only comments for you ...
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 09-08-09, 06:34 AM   #9
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Quote:
Originally Posted by Anvart View Post
All are very simply:
C - it's Crew Command (... ,C, ...);
c - it's additional key Ctrl (... ,c, ...) or (... ,Cc, ...);
s - it's additional key Shift (... ,s, ...) or (... ,Cs, ...);
R - to keep key of pressed (... ,R, ...) and so on ...

It's only comments for you ...
Something stupidly simple, I had to forget that.
__________________
danlisa is offline   Reply With Quote
Old 09-08-09, 09:42 AM   #10
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Thanks for the help everyone.

Unfortunatly I'm back at work now. Ill give this edit a try when I get home.

Ill let you know.

Thanks again.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-08-09, 05:27 PM   #11
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

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

[Cmd193]
Name=Surface
Ctxt=1
Str=1031
Key0=0x53,Cc,"Ctrl+S"
This syntax does not work. I also tried

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

[Cmd193]
Name=Surface
Ctxt=1
Str=1031
Key0=0x53,cC,"Ctrl+S"
The D & S keys are still disabled but the ctrl+ does not work.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-09-09, 03:23 AM   #12
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by SteamWake View Post
...
Key0=0x44,Cc,"Ctrl+D"
...
This syntax does not work. I also tried
...
Key0=0x44,cC,"Ctrl+D"
...
The D & S keys are still disabled but the ctrl+ does not work.
:rotfl:
The order of the specified symbols is not important ...
...
Syntax is absolutely correct!
...
You have other problems... may be at you keys are duplicated ... may be something another ...
may be you have not enough numbers of commands ... in Commands.cfg ... look:
"[Commands]
CommandsNb=600
MaxKeyCommandsNb=190; Keys number shoud be smaller than this value (in order to accelerate the loading)"

__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 09-09-09, 03:13 PM   #13
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Again Im at work but Ill check it tonight...

I do know that the changes were applied as the fire torpedo button is back to the 'enter' key again

That I can fix :rotfl:

I dont think the keys are duplicated as S & D are the default keys. I just want to change that to ctrl+s like I did with the fire torpedo thing.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 09-09-09, 05:39 PM   #14
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Okay so I edited the

Quote:
"[Commands]
CommandsNb=600
MaxKeyCommandsNb=190; Keys number shoud be smaller than this value (in order to accelerate the loading)"
No change although I dont know why there would be cause Im not adding a key just modifying some. But whatever no change.

Now heres whats weird. I made an edit to the .cfg file to change fire torpedo from 'enter' to 'ctrl+enter' (had to add the C) and that worked.

So I tried to edit back the S & D keys back to their original values. They remained disabled

So then I replaced the commands.cfg with a back up and now the S & D keys are functional again however as before no edits effect them.

Now the file Danlisa posted does effect them. I compared the two and see no differences.

So Danlisa what did you do to disable the S & D keys. Maybe that bit of info will help me solve the ctrl problem.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake 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 07:18 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.