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

Reply
 
Thread Tools Display Modes
Old 11-01-06, 11:47 AM   #1
Church SUBSIM
Weps
 
Join Date: Feb 2004
Posts: 353
Downloads: 121
Uploads: 4
Default Question RE: Sub Commander Randomization commands...

Ok, now that I am completely sucked back into SHIII after taking a break, I have a few questions about tweaking. /evil grin.

First, in the Sub Commander Randomization file (which is an amazing tool btw)...
What I am trying to do is make the Message that I get when I send a Patrol report be random *and* relative to my U-Boat number. For example, in the NYGM 2.2 en_menu.txt the following line is called on when ever I receive a response to my patrol report when I have torpedos remaining:

4197=Acknowledged.

Now in the Randomization folder I should be able to add the following to make that line random each time I receive a message I get a diffrent response by doing the following (as per Gouldjg's Hollywood example):

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

0_STRINGS|4197=Message Acknowledged. Excellent Work.
1_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid NORTH.
2_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid SOUTH.
3_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid WEST.
4_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid EAST.
5_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID NORTH.
6_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID SOUTH.
7_STRINGS|4197=Message Acknowledged. Good Hunting Kaleun!
8_STRINGS|4197=Message Acknowledged. Keep up the good work Kaleun!
9_STRINGS|4197=Message Acknowledged. Excellent Results.
10_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID EAST.
11_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID WEST.

What I would like to do is incorporate the U Boat Number I have been assigned so it would read like the following (using one line as an example):

0_STRINGS|4197=Message Acknowledged U-97. Excellent Work. (but have the Uboat number match my boat each time it changes)

Is this possible?

Thanks in advance,
Church
__________________


Last edited by Church SUBSIM; 11-01-06 at 12:00 PM.
Church SUBSIM is offline   Reply With Quote
Old 11-01-06, 01:17 PM   #2
Samwolf
Seasoned Skipper
 
Join Date: Jan 2006
Location: South Carolina, CSA
Posts: 684
Downloads: 37
Uploads: 0
Default

Quote:
Originally Posted by Church SUBSIM
Ok, now that I am completely sucked back into SHIII after taking a break, I have a few questions about tweaking. /evil grin.

First, in the Sub Commander Randomization file (which is an amazing tool btw)...
What I am trying to do is make the Message that I get when I send a Patrol report be random *and* relative to my U-Boat number. For example, in the NYGM 2.2 en_menu.txt the following line is called on when ever I receive a response to my patrol report when I have torpedos remaining:

4197=Acknowledged.

Now in the Randomization folder I should be able to add the following to make that line random each time I receive a message I get a diffrent response by doing the following (as per Gouldjg's Hollywood example):

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

0_STRINGS|4197=Message Acknowledged. Excellent Work.
1_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid NORTH.
2_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid SOUTH.
3_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid WEST.
4_STRINGS|4197=Message Acknowledged. Increase Patrol One Grid EAST.
5_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID NORTH.
6_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID SOUTH.
7_STRINGS|4197=Message Acknowledged. Good Hunting Kaleun!
8_STRINGS|4197=Message Acknowledged. Keep up the good work Kaleun!
9_STRINGS|4197=Message Acknowledged. Excellent Results.
10_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID EAST.
11_STRINGS|4197=Message Acknowledged. REPOSITION ONE GRID WEST.

What I would like to do is incorporate the U Boat Number I have been assigned so it would read like the following (using one line as an example):

0_STRINGS|4197=Message Acknowledged U-97. Excellent Work. (but have the Uboat number match my boat each time it changes)

Is this possible?

Thanks in advance,
Church

Don't know for sure about the "personalized" U-boat number But you could try :

0_STRINGS|4197=Message Acknowledged. Excellent Work. %s and see what happens.

I used Gouldjg's Hollywood example also. I randomised my messages but I had a problem with it working, it finally worked when I changed

[0_data\Menu\en_menu.txt]

to

[MT0:data\Menu\en_menu.txt]

If the %s works let me know please.

Btw.

I believe 4197 is the response you get when you send a Patrol Report that does not include a new sinking.

4198 is the one you get when you report a new sinking.
__________________


GWX 3, JSGME 2.3, Sh3 Commander 3.2 SH3 Gen 8.1, Water Stream for U-boats, LRT LITE 2.0, Lifeboats for SH3


Last edited by Samwolf; 11-01-06 at 01:21 PM.
Samwolf is offline   Reply With Quote
Old 11-01-06, 01:43 PM   #3
Church SUBSIM
Weps
 
Join Date: Feb 2004
Posts: 353
Downloads: 121
Uploads: 4
Default

Thanks for the great response.

Like you, I was having problems getting the messages to work at all but have now incorporated you fix. I will see how it goes. I added the %s and will let you know if it works.

She is loading right now.

One thing that I wanted to ask you .... given the issues with the text in the Hollywood example needing tweaking, do I need to change the 0_ to MT:0 (as an example) for the sensors as well? Once I noticed the text was not working, I could not be sure the sensor randomization was working as well. Any feedback on that?

Thanks again,
Church

** UPDATE **

Ok, I managed to get the deck officers response to update but not the patrol report responses, so I suspect because they have the %s included in the line, they are defaulting to the original. Will advise once I tweak it again.
__________________


Last edited by Church SUBSIM; 11-01-06 at 02:02 PM.
Church SUBSIM is offline   Reply With Quote
Old 11-01-06, 02:12 PM   #4
Samwolf
Seasoned Skipper
 
Join Date: Jan 2006
Location: South Carolina, CSA
Posts: 684
Downloads: 37
Uploads: 0
Default

Quote:
Originally Posted by Church SUBSIM
Thanks for the great response.

Like you, I was having problems getting the messages to work at all but have now incorporated you fix. I will see how it goes. I added the %s and will let you know if it works.

She is loading right now.

One thing that I wanted to ask you .... given the issues with the text in the Hollywood example needing tweaking, do I need to change the 0_ to MT:0 (as an example) for the sensors as well? Once I noticed the text was not working, I could not be sure the sensor randomization was working as well. Any feedback on that?

Thanks again,
Church

** UPDATE **

Ok, I managed to get the deck officers response to update but not the patrol report responses, so I suspect because they have the %s included in the line, they are defaulting to the original. Will advise once I tweak it again.
Not sure about the 0_, I think the problem was that the program was looking for the : I just changed the 0 to MT0 to ensure the entry was unique.

Sorry to hear that the %s didn't work, hopefully someone else knows the answer.

As for the sensors and effects all I did was make sure that the #_ at the beginning was changed to #: The effects seem to work but I haven't run into any DD's to know if the sensors work

I changed my Senors and effects to SE1: SE2: EF1: EF2: etc. The letters don't matter as long as they're unique for each section, I think the : is the important thing.
__________________


GWX 3, JSGME 2.3, Sh3 Commander 3.2 SH3 Gen 8.1, Water Stream for U-boats, LRT LITE 2.0, Lifeboats for SH3


Last edited by Samwolf; 11-01-06 at 02:16 PM.
Samwolf is offline   Reply With Quote
Old 11-01-06, 02:59 PM   #5
Church SUBSIM
Weps
 
Join Date: Feb 2004
Posts: 353
Downloads: 121
Uploads: 4
Default

Quote:
Originally Posted by Samwolf
As for the sensors and effects all I did was make sure that the #_ at the beginning was changed to #: The effects seem to work but I haven't run into any DD's to know if the sensors work

I changed my Senors and effects to SE1: SE2: EF1: EF2: etc. The letters don't matter as long as they're unique for each section, I think the : is the important thing.
Good deal - I just went through and checked the file. I noticed that all the min height's (they end in 3's) had ; before the data. The first did not have that for the sensors, the remaining ones did. I corrected that as well.

Thanks again so much for the help. A perfect example of how great this community is here at Subsim!

Church
__________________

Church SUBSIM is offline   Reply With Quote
Old 11-01-06, 03:13 PM   #6
Samwolf
Seasoned Skipper
 
Join Date: Jan 2006
Location: South Carolina, CSA
Posts: 684
Downloads: 37
Uploads: 0
Default

Quote:
Originally Posted by Church SUBSIM

Thanks again so much for the help. A perfect example of how great this community is here at Subsim!

Church
No Problem. I like the idea of randomising the 4197 messages too. Never thought about that until you mentioned it.
__________________


GWX 3, JSGME 2.3, Sh3 Commander 3.2 SH3 Gen 8.1, Water Stream for U-boats, LRT LITE 2.0, Lifeboats for SH3

Samwolf 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 12:13 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.