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)

sharkbit 09-07-09 11:12 AM

Quote:

Originally Posted by danlisa (Post 1167763)
OMG!

Modding 101. LOL

We all have to start somewhere! :88)

Thanks!!! :salute:

:DL

SteamWake 09-07-09 11:51 AM

Quote:

Originally Posted by danlisa (Post 1167815)
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?

* The 'main' one is in /data/cfg/controls.cfg. The others are stored in mod folders and such.

* No version in my docs.

* Yes tried starting a new carrier.

now even more curious other edits got put back in the config as well as camera changes.

So I just copy / pasted my original controls.cfg (backup) and the camera and other commands are back to where they were so thats the file :yep:

It seems as if the dive and surface keys are bound to some internal code and cannot be changed.

donut 09-07-09 12:32 PM

Modding Mod's
 
Hi Mates,
Now I don't use RFB, but if RFB has a Commands.cfg, That is overwriting SH4 commands.cfg, in JSGME. You will need to disable RFB, Change Commands there, & renable RFB to see changes.
Otherwise; as Danlisa suggested, make your own Mod by creating,
Mod name file, Example: (.cfg changes) in that file create a Data folder. In the Data folder, create Commands.cfg folder with changes you want. When you install your new Mod it will overwrite any previous changes introduced by other JSGME changes.

Danlisa;
Quote:

Make a copy of the default Commands.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.

SteamWake 09-07-09 01:04 PM

Quote:

Originally Posted by donut (Post 1167875)
Hi Mates,
Now I don't use RFB, but if RFB has a Commands.cfg, That is overwriting SH4 commands.cfg, in JSGME. You will need to disable RFB, Change Commands there, & renable RFB to see changes.
Otherwise; as Danlisa suggested, make your own Mod by creating,
Mod name file, Example: (.cfg changes) in that file create a Data folder. In the Data folder, create Commands.cfg folder with changes you want. When you install your new Mod it will overwrite any previous changes introduced by other JSGME changes.

Danlisa;

See post #14 :salute:

danlisa 09-07-09 01:21 PM

Before I have to curse you for making me install SH4, how do yo know that Binary Key designations you have in your OP are correct for the CTRL + Key combinations? As far as I can see they are for the single Key orders i.e S = Surface & D = Dive

donut 09-07-09 01:38 PM

Work around
 
Steamy
Quote:

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 compression = death)
Quote:

See post #14 :salute:
Workaround; Use Depth meter to set/preset dive depth limit. All Crash Dive is, is crush depth + flank speed. Setting PD., Will prevent broaching, coming up in TC.

danlisa 09-07-09 01:47 PM

Try this - http://rapidshare.com/files/276924511/Commands_Mod.rar

Extract and check folder structure, ad to MODS folder and enable.

I disabled the default S & D keys and left only the CTRL combos.

Munchausen 09-07-09 02:02 PM

Quote:

Originally Posted by danlisa (Post 1167907)
...how do yo know that Binary Key designations you have in your OP are correct for the CTRL + Key combinations? As far as I can see they are for the single Key orders i.e S = Surface & D = Dive

:hmmm: That would be my question. Also, I don't remember what the "C" stands for in that line ... but it's worth investigating. Because the entire line must reflect your new binding.

However, if SW tested the file by deleting the command(s), and even that didn't work ... well, perhaps he needs to make the exact same change(s) to every version on the file on his computer. But I don't suggest deleting any command(s) ... it's better to just disable the command(s) with a semicolon.

SteamWake 09-07-09 04:01 PM

Quote:

Originally Posted by danlisa (Post 1167928)
Try this - http://rapidshare.com/files/276924511/Commands_Mod.rar

Extract and check folder structure, ad to MODS folder and enable.

I disabled the default S & D keys and left only the CTRL combos.

This disabled the default s and d keys thank you, however the ctrl comobos dont work.

I tried correcting the syntax from 'CTRL D' to 'Ctrl+D' still doesent work.

But its a step in the right direction thanks.

Anvart 09-08-09 06:27 AM

Quote:

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

danlisa 09-08-09 06:34 AM

Quote:

Originally Posted by Anvart (Post 1168310)
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 ...

:har: Something stupidly simple, I had to forget that.

SteamWake 09-08-09 09:42 AM

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.

SteamWake 09-08-09 05:27 PM

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.

Anvart 09-09-09 03:23 AM

Quote:

Originally Posted by SteamWake (Post 1168665)
...
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)"


SteamWake 09-09-09 03:13 PM

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

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.


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