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 01-13-14, 06:17 PM   #1
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 995
Downloads: 1078
Uploads: 6
Default

Quote:
Originally Posted by archer9 View Post
number is not referenced anywhere. Only the script file that it's inside uses it.
Dialog:AddRandomLine( "generic_exits", "gexit_1" );

So yeah... that number has no significance outside the file it's inside nor even outside its dialog block.

Also, to my understanding the phrase "NoCampaign" indicates that the dialog line will appear no matter the campaign (even in historical missions).


Where did you find those help files?
Thanks for the clarity.
Nice to know that the #s have no significant importance outside the scripts. Is "generic_exits" called out in some function in some other file elsewhere? Just one more of those things just used in these scripts?

Quick Start - CrewAI.docx and Crew Strategies Help.docx files in data\Scripts\AI\Crew folder.

If you make another version of this mod, it would be nice to move the prepare weather report back to the orders to navigator under the WO (watch officer). As long as you and others do not mind. It may give me flexibility for general dialogue of WO in the future.

If you are going to look into the **.aix files in data\Scripts\AI\Dialogs_Default someday, some changes need to be made.
DT_XO_all.aix
Search for "MC_TRF_LOAD01_58" and change to "MC_CR_SO_102"
DT_Radio_all.aix
Search for "MC_TRF_LOAD01_58" and change to "MC_RR_RADIO_80"

I can inform you of any other errors when I find them if you wish, let me know. I all ready made the changes to [wip] voices reloaded mod.

Additionally, dialogue for general sub commands are in the MC_YY_CHARACTER_xxx.og. General pleasantries like Jawohl Herr Kaleun and Yes Lieutenant are in the format CG_YY_CHARACTER_xxx.ogg.

General conversational dialogue for [wip] voices reloaded has formats of TM_YY_CHARACTER_xxx.ogg or TTM_YY_CHARACTER_xxx.ogg, too.

Last edited by Mikemike47; 01-13-14 at 06:38 PM.
Mikemike47 is offline   Reply With Quote
Old 01-13-14, 07:19 PM   #2
archer9
A-ganger
 
Join Date: Apr 2009
Posts: 80
Downloads: 90
Uploads: 2
Default

Quote:
Originally Posted by Mikemike47 View Post
Is "generic_exits" called out in some function in some other file elsewhere? Just one more of those things just used in these scripts?
I am not 100% sure about this one, but I think generic_exit entries somehow point to .aix files in data\Scripts\AI\Dialogs_Default_Exits. I'm guessing so because .aix files in \Dialogs_Default have no references to Text_Dialog_101 and 801 ("Nothing more to say." and "Keep up the good work!") from dialogs.tsr, while the ones in \Dialogs_Default_Exits have them.

I'm not sure about moving the weather report back, though. I did this for role-playing reasons - I don't want to ask a guy who sits below for weather. I'll think more about this after I get some sleep.

I will look into those changes for the .aix files.
archer9 is offline   Reply With Quote
Old 01-13-14, 08:52 PM   #3
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 995
Downloads: 1078
Uploads: 6
Default

Quote:
Originally Posted by archer9 View Post
I'm not sure about moving the weather report back, though. I did this for role-playing reasons - I don't want to ask a guy who sits below for weather.
Fine by me, as real as it gets.

variable intitialized in init.aix, x=2 in data\Scripts\AI\Dialogs_Default. Any ideas why?
Same goes for init.aix in data\Campaigns\CampaignProjects\<CampaignName>\Scr ipts\AI\Dialogs.
Mikemike47 is offline   Reply With Quote
Old 01-14-14, 05:47 AM   #4
archer9
A-ganger
 
Join Date: Apr 2009
Posts: 80
Downloads: 90
Uploads: 2
Default

Nope, no idea what that variable is for. But I have some big announcement - I managed to get Report nearest visual command working through dialog! This means I will probably add in a whole bunch of essential commands that didn't work previously in the next update.
archer9 is offline   Reply With Quote
Old 01-14-14, 06:27 AM   #5
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default



Quote:
Originally Posted by archer9 View Post
I have some big announcement - I managed to get Report nearest visual command working through dialog! This means I will probably add in a whole bunch of essential commands that didn't work previously in the next update.
tonschk is offline   Reply With Quote
Old 01-14-14, 02:06 PM   #6
archer9
A-ganger
 
Join Date: Apr 2009
Posts: 80
Downloads: 90
Uploads: 2
Default

Version 0.3 is out, please report if you find any problems. No idea if it's savegame compatible. I'm using crew_commands.txt from MifhtyFineCrew mod in this update, but if I'm correct it shouldn't cause any problems for those who don't use that mod.

Sorry, Mike, I wasn't able to move special abilities into a separate sub-menu. I don't know what's the problem, but it just doesn't work. I'm guessing there's some special rules with special abilities in the script. I'll give it a second try when I can. If I can't do it, we'll need a special compatibility version of EMCCD for your mod. Probably will have to put more stuff in the same sub-menus. Not a big problem.

I've included almost everything I wanted into dialogues. The only command from commands.cfg that for some mystical reason doesn't want to work for me is deploy_decoys. And another one is the Report fix (lat and long) from Real Navigation. I can't find the command in commands.cfg and thus I can't add it to the dialogs... If I could find a way to add these two commands, we'd be able to play with the officers panel fully disabled!!

Last edited by archer9; 01-14-14 at 02:20 PM.
archer9 is offline   Reply With Quote
Old 01-14-14, 03:04 PM   #7
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 995
Downloads: 1078
Uploads: 6
Default

Quote:
Originally Posted by archer9 View Post
Sorry, Mike, I wasn't able to move special abilities into a separate sub-menu. I don't know what's the problem, but it just doesn't work. I'm guessing there's some special rules with special abilities in the script. I'll give it a second try when I can. If I can't do it, we'll need a special compatibility version of EMCCD for your mod. Probably will have to put more stuff in the same sub-menus. Not a big problem.

The only command from commands.cfg that for some mystical reason doesn't want to work for me is deploy_decoys. And another one is the Report fix (lat and long) from Real Navigation.
How about contacting Rongel about special abilities with Reworked Morale and Abilities Mod?

Hopefully, the miscellaneous dialogue from [wip] voices reloaded will fit nicely with 9 entries allowed in the dialogue menu still.

I was thinking the same thing, sub-menus, subroutines. Just an example of an idea, gunner or watch officer vocalizes a general comment that is available in the **.ogg files to say immediately after the command "fire at will" is said, etc.

Deploy decoys makes a sound for me with mods I use. I will look later to see what I can find for this. I do not use real navigation to help with that.
Mikemike47 is offline   Reply With Quote
Old 01-14-14, 09:44 PM   #8
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 995
Downloads: 1078
Uploads: 6
Default

Quote:
Originally Posted by Mikemike47 View Post
If you are going to look into the **.aix files in data\Scripts\AI\Dialogs_Default someday, some changes need to be made.
DT_XO_all.aix
Search for "MC_TRF_LOAD01_58" and change to "MC_CR_SO_102"
DT_Radio_all.aix
Search for "MC_TRF_LOAD01_58" and change to "MC_RR_RADIO_80"
Whoops, sorry. I only tested the vocal yesterday. Did not actually test the dialog box then. Will be testing later tonight. Did I miss this detail for you and that is why it did not work in version 0.3?

Should be:
DT_XO_all.aix
Search for "TorpedoMan_slash_", "MC_TRF_LOAD01_58" and change to "ExecutiveOfficer_slash_", "MC_CR_SO_102"
Just in case you change this file in future:
DT_Radio_all.aix
Search for "TorpedoMan_slash_", "MC_TRF_LOAD01_58" and change to "RadioMan_slash_", "MC_RR_RADIO_80"
Mikemike47 is offline   Reply With Quote
Old 01-15-14, 03:08 AM   #9
archer9
A-ganger
 
Join Date: Apr 2009
Posts: 80
Downloads: 90
Uploads: 2
Default

Ups, sorry, totally forgot to edit those lines!
archer9 is offline   Reply With Quote
Old 01-15-14, 04:26 AM   #10
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

Is what your looking for in the
Silent Hunter 5\MODS\NewUIs_TDC_7_4_2_ByTheDarkWraith\data\Scrip ts\Menu\TheDarkWraithAutomation ?
I mean any hints in that file .
THE_MASK is offline   Reply With Quote
Old 01-15-14, 04:41 AM   #11
archer9
A-ganger
 
Join Date: Apr 2009
Posts: 80
Downloads: 90
Uploads: 2
Default

Yes, I was just looking through that same file and there is this line at the bottom of it:
,[ "Report_position_celestial", AutomationRealNavReportPositionCelestial ]

There is also this line in Data/Automation/TDW_Automation.txt:
; Report_position_celestial,0,0,0,0,0,0,t

But it is commented out for some reason, like the rest of the lines in that file.

Anyway, TDW apparently uses his own commands through his own scripting. I tried simply adding an entry of 'Report_position_celestial' into commands.cfg but it's obviously not that simple because it didn't work in the game. For now I'm stumped.
archer9 is offline   Reply With Quote
Reply

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 05:51 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.