![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Ace of the Deep
![]() |
![]()
I want to add .ogg files, which I will record myself, to the commands to fully raise and/or lower the attack and observation scopes.
I need to know how to connect the keystroke to the audio file in game. I've located the proper keystrokes in commands_en, but am unsure what, if anything, to edit there. Could someone please point this novice in the right direction?
__________________
In the month of July of the year 1348, between the feasts of St. Benedict and of St. Swithin, a strange thing came upon England... My U297 build thread |
![]() |
![]() |
![]() |
#2 |
Ace of the Deep
![]() |
![]()
That's what I was afraid of.
![]() Evidently it is more difficult than I had hoped.
__________________
In the month of July of the year 1348, between the feasts of St. Benedict and of St. Swithin, a strange thing came upon England... My U297 build thread |
![]() |
![]() |
![]() |
#3 |
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
|
![]()
In SH5 the commands can have a line with a sound in the commands.cfg itself...an absent feature on sh3...but I guess that niobody have tried it yet.
So go on! Here an example: [Cmd66] Name=Toggle_radio_messages Contexts=1,15 Key0=0x4d,,"M" Sound_0=ELO_Weapon,Mission_order <== seems that the sound needs to be on the sound\speech folder. You need to figure out the syntax first. here another example with various sounds: [Cmd192] Name=Dive Contexts=1 StringID=1030 Key0=0x44,,"D" HasDelayedExecution=Yes CommandClass=Depth Sound_0=ELO_Helm,MC_CR_CHIEF_32,1030;Dive Sound_1=ELO_Helm,MC_CR_CHIEF_34_A,7646;Deeper! Sound_2=ELO_Helm,MC_CR_CHIEF_34_B,7647;Take Her Deeper Sound_3=ELO_Helm,MC_CR_CHIEF_35,7648;Deeper Goddamit
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
![]() |
![]() |
![]() |
#4 |
Seasoned Skipper
![]() Join Date: Oct 2010
Location: Westun New Yahk
Posts: 748
Downloads: 131
Uploads: 0
|
![]()
My tinkering efforts have been for naught as well.
That's an actual line?
__________________
Largest target sunk with deck gun: Japanese auxiliary cruiser, 15000 tons
Largest engaged: HMS Nelson. Results inconclusive. ![]() Read Brag's stuff ![]() |
![]() |
![]() |
![]() |
#5 |
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
|
![]()
From SH5 commands.cfg. As some new mod addtions on sh3 comes from sh4/sh5 i guess that could be a good idea to see if this also works on sh3.
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
![]() |
![]() |
![]() |
#6 |
Ace of the Deep
![]() |
![]()
Here's a sample of an SH3 command from command_en.
The example has a sound associate with it. [Cmd432] Name=Man_the_deck_and_flak_guns Ctxt=1 MnID=0x3F2D0004 Str=2946 As you can see, there is no obvious sound file associated with it, but we all hear the command when the guns are manned. Ctxt=1 means the command onlyexecutes within the unpaused game itself, not in the museum, for example. Str=2946 is the text displayed when the command executes. Found in Data/Menu/en_menu file. Which leaves MnID=0x3F2D0004. MnID = menu item ID associated with this command. Unfortunately, I cannot find the menu file/folder to which the command points. I've located the .DAT files which sync voices with the animations, but that is it. The number looks like a hex address, but I am unable to even find that string anywhere. I know I'm missing something obvious, but am currently lost. ![]()
__________________
In the month of July of the year 1348, between the feasts of St. Benedict and of St. Swithin, a strange thing came upon England... My U297 build thread |
![]() |
![]() |
![]() |
|
|