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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-03-06, 03:51 PM   #1
GreyOctober
Sonar Guy
 
Join Date: Apr 2006
Location: Bucharest, Romania
Posts: 394
Downloads: 30
Uploads: 0
Default SHC question. Lets suppose...

Lets suppose i have 2 text files: x0 and x1. Both have identical content except that x1 has a different line of text. Lets suppose i have two message_en.txt files. Is it possible, using SHCommander to make x0 work when im in Atlantic and automatically switch to x1 when in Mediteranean without having to exit the game?

Thank you.
__________________
GreyOctober is offline   Reply With Quote
Old 05-03-06, 04:40 PM   #2
gouldjg
Grey Wolf
 
Join Date: Mar 2005
Location: Manchester UK
Posts: 881
Downloads: 4
Uploads: 0
Default

You can randomise text messages with sh3 commander which I think you already know but I do not think you can trigger area specific messages.

You can however set by year.

I have already done a sloppy job at some of mine but just wanted to see how it worked, I am thinking of adding lots of reasons why the men wont run the engines because they are tired etc etc.

[0_data\Menu\en_menu.txt]
ChooseFrom=13
RndMidPat=1

0_STRINGS|4198=Keep up the good work Kaleun!
1_STRINGS|4198=Great stuff Kaleun!
2_STRINGS|4198=Very impressive!
3_STRINGS|4198=Happy Hunting
4_STRINGS|4198=Look Forward to seeing you back at base!
5_STRINGS|4198=Great stuff Kaleun!
6_STRINGS|4198=Very impressive!
7_STRINGS|4198=Happy Hunting
8_STRINGS|4198=Keep up the good work Kaleun!
9_STRINGS|4198=Great stuff Kaleun!
10_STRINGS|4198=Very impressive!
11_STRINGS|4198=You are doing well

[1_data\Menu\en_menu.txt]
ChooseFrom=6
RndMidPat=1

0_STRINGS|514=I hope she holds!
1_STRINGS|514=Standbye for leaking!
2_STRINGS|514=The men are getting uneasy!
3_STRINGS|514=Do you want me to level off captain?
4_STRINGS|514=I don't think she will hold the pressure!

[2_data\Menu\en_menu.txt]
ChooseFrom=6
RndMidPat=1

0_STRINGS|515=We have never been this deep before!
1_STRINGS|515=Suggest we rise a little SIR!
2_STRINGS|515=The men are nervous Sir!
3_STRINGS|515=I think we should level off?
4_STRINGS|515=The pressure will get us soon!

[3_data\Menu\en_menu.txt]
ChooseFrom=3
RndMidPat=1

0_STRINGS|598=Enemy is pinging us, sir!
1_STRINGS|598=Those Bastards!
2_STRINGS|598=Were being pinged!

[4_data\Menu\en_menu.txt]
ChooseFrom=3
RndMidPat=1

0_STRINGS|599=Enemy ship engaging us, sir!
1_STRINGS|599=There comming for us!
2_STRINGS|599=What shall we do Sir?


[5_data\Menu\en_menu.txt]
ChooseFrom=3
RndMidPat=1

0_STRINGS|601=We may have been detected, sir!
1_STRINGS|601=Damn they have detected us, sir!
2_STRINGS|601=I think they have detected us!
__________________
My Mods

Gouldjg's Crew Ability Balancing Mod for SH5 1.2
http://www.subsim.com/radioroom/showthread.php?t=169630
gouldjg is offline   Reply With Quote
Old 05-03-06, 05:54 PM   #3
don1reed
Ace of the Deep
 
Join Date: Dec 2004
Location: Valhalla: Silent Generation
Posts: 1,149
Downloads: 910
Uploads: 0
Default

gouldig:

How many of these "[#_data....]" can you put into the Randomized events file?...and do they have to be numbered sequentially?
__________________
[SIGPIC][/SIGPIC]
During times of universal deceit, telling the truth becomes a revolutionary act.

~ George Orwell
don1reed is offline   Reply With Quote
Old 05-04-06, 03:12 AM   #4
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by don1reed
How many of these "[#_data....]" can you put into the Randomized events file?
Until you run out of memory...Maybe 100's, maybe 1000's. Definitely more than what we currently have though. For example, Zones.cfg has 203 sections.

Quote:
Originally Posted by don1reed
...and do they have to be numbered sequentially?
No, but they *must* be unique. This is not an SH3Cmdr requirement, it's a fundamental OS requirement. The easiest way to achieve distinctness, of course, is to prefix each repeated filename with an incrementing integer, ie:

[0_data\Menu\en_menu.txt]
[1_data\Menu\en_menu.txt]
[2_data\Menu\en_menu.txt]
[0_data\Menu\de_menu.txt]
[1_data\Menu\de_menu.txt]
[2_data\Menu\de_menu.txt]
JScones is offline   Reply With Quote
Old 05-04-06, 03:27 AM   #5
don1reed
Ace of the Deep
 
Join Date: Dec 2004
Location: Valhalla: Silent Generation
Posts: 1,149
Downloads: 910
Uploads: 0
Default

Tnx

...just had my first randomized diesel breakdown...

(didn't know whether to pass out cigars or not)
__________________
[SIGPIC][/SIGPIC]
During times of universal deceit, telling the truth becomes a revolutionary act.

~ George Orwell
don1reed is offline   Reply With Quote
Old 05-04-06, 03:31 AM   #6
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default Re: SHC question. Lets suppose...

Quote:
Originally Posted by GreyOctober
Lets suppose i have 2 text files: x0 and x1. Both have identical content except that x1 has a different line of text. Lets suppose i have two message_en.txt files. Is it possible, using SHCommander to make x0 work when im in Atlantic and automatically switch to x1 when in Mediteranean without having to exit the game?
Well, yes and no. Yes it can be done, but it's linked to Flotillas.

For example, we know that 29th Flotilla is our exclusive Med Flotilla. So if you want files/settings to be Med specific, simply add them to the '...\SH3 Commander\Flotilla\907\data' folder. Whenever you load up a 29th Flotilla career, these files will be copied into the game, otherwise nothing will (unless of course, you add your Atlantic files to the other Flotilla folders).

Likewise you can use this method to simulate Arctic settings (usually linked with 11th Flotilla).

You'll see that SH3Cmdr currently utilises this method to "force" the correct water textures for the Med and Arctic in careers (you may be aware that in careers SH3 always uses the Atlantic water textures).

BUT no it can't be done in the sense that files change automatically when you move between seas. Basically, once a set of files have loaded into SH3, they stay until you next load SH3 via SH3Cmdr. This is NOT an SH3Cmdr limitation, it is an SH3 limitation. All core game files are loaded at start up and stay in memory until the game is closed. So, this means that if you sail between the Atlantic and Med through Gibraltar, the water textures will NOT change, until you reload the game.

So, answering your question in this context, and considering the way SH3Cmdr runs, I'd include a copy of your Atlantic file under every Flotilla OTHER than 907 and your Med file under Flotilla 907.
JScones is offline   Reply With Quote
Old 05-04-06, 05:32 AM   #7
GreyOctober
Sonar Guy
 
Join Date: Apr 2006
Location: Bucharest, Romania
Posts: 394
Downloads: 30
Uploads: 0
Default

Thank you guys!

Cheers!
__________________
GreyOctober is offline   Reply With Quote
Reply


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 10:20 AM.


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.