PDA

View Full Version : SH3 Command Chains - how to do it!



Mittelwaechter
05-06-2008, 03:40 PM
Get you some command chains!

"Shift+A" to man the Flakguns, order aiming at any incoming aircraft and open fire over long distance?

Here we go:

Add < Key0=0x41,Cs,"shift+A";FlakCombo > to the following commands in (C:\Programs)\Ubisoft\SilentHunterIII\data\Cfg\Com mands_en.cfg:

[Cmd419], [Cmd423], [Cmd426], [Cmd427], [Cmd431]

Now change text of [Cmd419] with text of [Cmd431] to start the command chain with manning the Flakguns and to end it with "Fire at will!"

Looks like this: ( the < ; > tells the game to ignore the line!)

[Cmd419]
Name=Man_the_flak_gun
Ctxt=1
MnID=0x3F2D0003
Str=2945
Key0=0x41,Cs,"shift+A";FlakCombo

;Name=AAGuns_Fire_at_will
;Ctxt=1
;MnID=0x3F180006
;Str=1063
;Key0=0x41,Cs,"shift+A";FlakCombo

[Cmd423]
Name=AAGuns_Long_range
Ctxt=1
MnID=0x3F18000A
Str=1067
Key0=0x41,Cs,"shift+A";FlakCombo

[Cmd426]
Name=AAGuns_Aim_any
Ctxt=1
MnID=0x3F18000D
Str=1070
Key0=0x41,Cs,"shift+A";FlakCombo

[Cmd427]
Name=AAGuns_Closing_targets
Ctxt=1
MnID=0x3F18000E
Str=1071
Key0=0x41,Cs,"shift+A";FlakCombo

[Cmd431]
Name=AAGuns_Fire_at_will
Ctxt=1
MnID=0x3F180006
Str=1063
Key0=0x41,Cs,"shift+A";FlakCombo

;Name=Man_the_flak_gun
;Ctxt=1
;MnID=0x3F2D0003
;Str=2945
;Key0=0x41,Cs,"shift+A";FlakCombo

A watchofficer on duty may unleash hell with a "Shift+A" to answer an "Aircraft spotted!"

Now get you some command chains, my dotcomrades!

Enjoy!

tuddley3
05-08-2008, 04:06 AM
This is absolute genius http://forums.ubi.com/images/smilies/25.gif

I have a question for you. Can we just copy & paste the commands above to the Commands_en. ? Sorry for the stupid question http://forums.ubi.com/images/smilies/blush.gif

Mittelwaechter
05-08-2008, 04:42 AM
There are no stupid questions - only stupid answers.

You may copy and paste - but make sure to overwrite the correct commands.

Better you copy this:

Key0=0x41,Cs,"shift+A";FlakCombo

and insert under the shown commands.
The virtual key (0x41 for A) is identical on german and english keyboards.

I downloaded Set Keys yesterday and checked it is capable to do the trick for you. Simply search the commands you wish to chain and map a identical key or a keycombination to them. Set Keys supports up to six keys per command!

You may want to add (copy and paste) this line to [Cmd5]

Key1=0x6A,R,"NPad *";maxTC

It gives you the 1024/2048 time compression with a single press of "NumPad *" http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

Well - this Set Keys can't do for you!

Realjambo
05-08-2008, 05:25 AM
This is absolute genius

I can't agree more Tuddley!

Mittelwaechter - This is a superb contribution to our community - Thanks very much, I can't wait to give it a go! http://forums.ubi.com/images/smilies/25.gif

tuddley3
05-10-2008, 10:21 PM
Set Keys is a wonderful tool(Thanks Cavalier wherever you are), and it is also compatible with SH4. As long as you change the name of the Commands cfg to Commands_en, and then back again after modifying.

As far as this little AA Gun Command Chains mod goes, I still did everything manually(Without Set Keys). Then to make sure I didn't mess up the cfg file, I copied it somewhere else and then created JSGME compatible folders(Which I recommend for novice modders to do).

So now I am off on a new patrol to test this booger out.

Edit :
http://forums.ubi.com/images/smilies/11.gif Mittelwaechter, I cannot believe it, but I got it to work. Talk about instant gratification http://forums.ubi.com/images/smilies/25.gif

Mittelwaechter
05-11-2008, 06:24 AM
Yo man! Me does favour the manual tweaking too. http://forums.ubi.com/groupee_common/emoticons/icon_wink.gif Love to know how things work.

Great you got it running.

By the way, am I right to assume JSGME replaces complete files? Or is there a way to modify i.e. single commands but to keep other personalized settings?

Like this one maybe:

Goto "Menu" folder and open en_menu.txt.
Scroll down to 4528 and add line 4529=Closing tube again, Herr Kaleun!
(the tube number doesn't work here!)
Save!

Now goto commands_en.cfg and search for command [Cmd311] and add
Str=4529

Additionally insert a < C > between the commata. It shall look like this:

[Cmd311]
Name=Close_sel_torpedo_tube
Ctxt=1
Str=4529
Key0=0x57,C,"W"

Add the < C > to [Cmd310] - between the commata!

Save!

You'll get:
<<Q>> = "Jawohl, Herr Kaleun!" + Opening tube x!
<<W>> = "Jawohl, Herr Kaleun!" + Closing tube again, Herr Kaleun!

http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

bacdafucup!

Celeon999
05-11-2008, 06:49 AM
Nice http://forums.ubi.com/groupee_common/emoticons/icon_cool.gif

tuddley3
05-11-2008, 06:53 AM
Originally posted by Mittelwaechter:
By the way, am I right to assume JSGME replaces complete files? Or is there a way to modify i.e. single commands but to keep other personalized settings?

You got me curious, so I created a fake mod for a test. I took the original Commands_en, copied it to the desktop, opened it and deleted all the contents. Then I copied and pasted everything from above into the empty cfg file, created JSGME folders and enabled it. Unfortunately when I looked in Data/Cfg/Commands_en, it was just what I copied to the new file.

So to answer your question, no. I kind of figured this would happen, because a lot of Menu1024x768 mods would be easier to modify if this was possible.

The only reason I use JSGME is for precautionary reasons. Plus this way you don't end up with backup copies cluttering up the HD. Also, if you "break" a mod, you can reverse it just by disabling it.

Edit: http://forums.ubi.com/images/smilies/touche.gif
By the time I did my experiment, you added more to your post. So I am not sure how your little idea would work. Only way to find out is to try I guess http://forums.ubi.com/groupee_common/emoticons/icon_confused.gif

Mittelwaechter
05-11-2008, 09:11 AM
Thanks for your research, tuddley! I'm a total newbie to JSGME.

Whoever wants to use those modifications has to insert them manually, otherwise he would have to use my complete personalized commands.cfg + the corelated menu.txt. Additionally I run the german version...

Therefore I can't release them JSGME compatible.

tuddley3
05-12-2008, 11:40 PM
All I can say is even though it has to be done manually, it was worth it. I thank you again for sharing this tip with us, it has proven to be very useful.

Tudd's

VikingGrandad
05-18-2008, 07:14 AM
Excellent stuff Mittelwaechter http://forums.ubi.com/images/smilies/25.gif

I'll try your flak gun example out on my next patrol - very useful!