SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   Simple command.cfg edit... (https://www.subsim.com/radioroom/showthread.php?t=155922)

SteamWake 09-07-09 07:40 AM

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 :damn:

What am I missing

RFB_v1.51_062308
RSRDC_RFBv15_V395_RC5
RSRDC_V395_Patch4
TMOMapFinal

sharkbit 09-07-09 07:46 AM

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.

:)

SteamWake 09-07-09 07:52 AM

Quote:

Originally Posted by sharkbit (Post 1167739)
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.

sharkbit 09-07-09 08:03 AM

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.

:)

SteamWake 09-07-09 08:13 AM

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

Some with same or similar names.

How in the hell do you know which one the game is looking at?

danlisa 09-07-09 08:20 AM

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.

sharkbit 09-07-09 08:25 AM

Quote:

Originally Posted by SteamWake (Post 1167754)
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.:DL

:)

SteamWake 09-07-09 08:27 AM

Quote:

Originally Posted by danlisa (Post 1167756)
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 :doh: uhhhh.. sure... Ill uhhh do that.. yea that... uhhh I guess Ill have to look up how.

sharkbit 09-07-09 08:27 AM

Thanks danlisa. :yeah:

Quote:

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

:)

danlisa 09-07-09 08:33 AM

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.

SteamWake 09-07-09 09:00 AM

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 :doh:

Oh btw the mod list in the anchor post is the exact order that jsgme has them.

danlisa 09-07-09 09:03 AM

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.

SteamWake 09-07-09 09:13 AM

Quote:

Originally Posted by danlisa (Post 1167772)
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.

SteamWake 09-07-09 09:58 AM

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 :damn:

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 :damn:

danlisa 09-07-09 10:06 AM

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?


All times are GMT -5. The time now is 10:30 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.