View Full Version : SHC question. Lets suppose...
GreyOctober
05-03-06, 03:51 PM
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.
gouldjg
05-03-06, 04:40 PM
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!
don1reed
05-03-06, 05:54 PM
gouldig:
How many of these "[#_data....]" can you put into the Randomized events file?...and do they have to be numbered sequentially?
JScones
05-04-06, 03:12 AM
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.
...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]
don1reed
05-04-06, 03:27 AM
Tnx
...just had my first randomized diesel breakdown... :up:
(didn't know whether to pass out cigars or not) :smug:
JScones
05-04-06, 03:31 AM
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.
GreyOctober
05-04-06, 05:32 AM
Thank you guys!
Cheers!
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.