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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-23-10, 08:54 AM   #1
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

Well, hmmm...
Do me a favor and look in data\Submarine\NSS_UboatXX (the one that matches the boat you tested with), and pull up crew_commands.txt and tell me what the line beginning Set_depth says

*edit* and to clairify, this is what you did?
Quote:
[Cmd201]
Name=Crash_dive
Contexts=1
MnID=0x3F230002
StringID=1035
Key0=0x56,Cs,"V" <------- change to Key0=0x56,s,"V"
HasDelayedExecution=Yes
CommandClass=Depth
Sound_0=ELO_Helm,MC_CR_CHIEF_33
Sound_1=ELO_Helm,MC_QRF_WATCH_29

Last edited by Heretic; 03-23-10 at 09:05 AM. Reason: added stuff
Heretic is offline   Reply With Quote
Old 03-23-10, 09:04 AM   #2
blechritter
Watch
 
Join Date: Feb 2005
Location: Germany
Posts: 19
Downloads: 100
Uploads: 0
Default

@Heretic Ok, as soon as I am back home. Still in the office.

O, btw, I am living in Germany. UTC+1. So here it is 3 PM.
__________________
Perhaps it is better to be irresponsible and right than to be responsible and wrong - Sir Winston Churchill, 1950
blechritter is offline   Reply With Quote
Old 03-23-10, 09:06 AM   #3
blechritter
Watch
 
Join Date: Feb 2005
Location: Germany
Posts: 19
Downloads: 100
Uploads: 0
Default

Quote:
Originally Posted by Heretic View Post
Well, hmmm...
Do me a favor and look in data\Submarine\NSS_UboatXX (the one that matches the boat you tested with), and pull up crew_commands.txt and tell me what the line beginning Set_depth says

*edit* and to clairify, this is what you did?
Yes, exactly. I just reckoned that the 'C' would prevent the interpretation of separate script files.
__________________
Perhaps it is better to be irresponsible and right than to be responsible and wrong - Sir Winston Churchill, 1950
blechritter is offline   Reply With Quote
Old 03-23-10, 09:19 AM   #4
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

That's inconsistant with the other commands. The 'dive' command triggers its script and the command.cfg key entry for it is 'Key0=0x56,C,"V"'. I'll have to do more testing when I get home this evening.
Heretic is offline   Reply With Quote
Old 03-23-10, 10:50 AM   #5
Ragtag
Seasoned Skipper
 
Join Date: Jan 2002
Location: Oslo, Norway
Posts: 654
Downloads: 163
Uploads: 0
Default

Quote:
Originally Posted by Heretic View Post
Well, hmmm...
Do me a favor and look in data\Submarine\NSS_UboatXX (the one that matches the boat you tested with), and pull up crew_commands.txt and tell me what the line beginning Set_depth says

*edit* and to clairify, this is what you did?

I did the same change and it worked for my with VIIA
The set_depth command looks like this:

Set_depth 1 1 1 ( CR_CHIEF = setd_CHIEF )
__________________
Intel I7-7800x CPU.
16Gb G.skill DDR4 3600MHz.
Asrock Taichi X299 mb
Palit RTX 2080Ti.
Fortron 1000W PSU.
BenQ XR3501R LCD.
Ragtag is offline   Reply With Quote
Old 03-23-10, 11:08 AM   #6
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

Quote:
Originally Posted by Ragtag View Post
I did the same change and it worked for my with VIIA
The set_depth command looks like this:

Set_depth 1 1 1 ( CR_CHIEF = setd_CHIEF )
Thanks. That's definitely not the override version. I thought I might have screwed up and included it in the main mod. I wonder if I made the edit to command.cfg incorrectly when I tested it?

I'd love to get rid of the override option. The problem with including a custom commands.cfg is it'd conflict with all the other mods that use it, the UI mods and command key mods.
Heretic is offline   Reply With Quote
Old 03-23-10, 11:18 AM   #7
blechritter
Watch
 
Join Date: Feb 2005
Location: Germany
Posts: 19
Downloads: 100
Uploads: 0
Default Trigger of crash_dive script

Apologies everybody! There was a lack of precision in my testing...

Now what I did next, and that finally appears to work (please verify)

1. Dive and crash_dive and a couple of other depth changing commands are configured to belong to the CommandClass=Depth

According to the documentation, those commands would then override each other, so only the last in sequence would actually be triggering any scripts. Thats why I kept hearing the sounds provided in set_depth.aix

2. So I removed the CommandClass=Depth line for the crash_dive command, which becomes Generic and will not be overwritten by set_depth. And here we go!

If you can verify that observation, then we would have some breakthru I believe.

In commands.cfg
...
[Cmd201]
Name=Crash_dive
Contexts=1
MnID=0x3F230002
StringID=1035
Key0=0x56,Cs,"V"
HasDelayedExecution=Yes
Sound_0=ELO_Helm,MC_CR_CHIEF_33
Sound_1=ELO_Helm,MC_QRF_WATCH_29
...
__________________
Perhaps it is better to be irresponsible and right than to be responsible and wrong - Sir Winston Churchill, 1950

Last edited by blechritter; 03-23-10 at 11:56 AM.
blechritter is offline   Reply With Quote
Old 03-23-10, 11:35 AM   #8
johan_d
Samurai Navy
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 556
Downloads: 115
Uploads: 1
Default

Will this key detection conflict with other key mapping mods ?
johan_d is offline   Reply With Quote
Old 03-23-10, 11:40 AM   #9
blechritter
Watch
 
Join Date: Feb 2005
Location: Germany
Posts: 19
Downloads: 100
Uploads: 0
Default

Quote:
Originally Posted by johan_d View Post
Will this key detection conflict with other key mapping mods ?

As a matter of fact, if that finding proves to be valid, then a merge of mods appears to be necessary.
__________________
Perhaps it is better to be irresponsible and right than to be responsible and wrong - Sir Winston Churchill, 1950
blechritter is offline   Reply With Quote
Old 03-23-10, 12:06 PM   #10
Heretic
Commodore
 
Join Date: Mar 2005
Location: Nebraska
Posts: 617
Downloads: 240
Uploads: 2


Default

Set_depth always gets triggered after each of the depth commands. That's how my override worked. I had set_depth triggering the crash_dive scripts. If surfaced, you got the crash dive routine, otherwise just hydroplane orders.

So are you saying with the line CommandClass=Depth removed, the crash dive command triggers the crash_dive scripts?

The dive and crash dive scripts are very similar. The differences are the Chief uses the tension voice sounds in crash dive and the normal voice in dive. The men coming down the ladder have a jarring animation in crash dive. That's where one of the guys falls down. Regular dive, they come down in less of a hurry.
Heretic is offline   Reply With Quote
Reply

Tags
favorite

Thread Tools
Display Modes

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:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.