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 06-15-10, 02:44 PM   #1
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

hi magic,

good luck. but be patient, my changes cause the Q-ship to appear not very often.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 06-15-10, 04:21 PM   #2
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-552 in North Atlantic
Posts: 4,429
Downloads: 783
Uploads: 0


Default

Quote:
Originally Posted by h.sie View Post
hi magic,

good luck. but be patient, my changes cause the Q-ship to appear not very often.

h.sie
Hello h.sie !

My new patrol during my career in LSH v5 starts with your MOD without any problems, it´s a good sign.......!

But can you please post me an setting that the Q-ships more often appear ? Many thanks for that help !!!

Best regards,
Magic
__________________
Magic1111 is offline   Reply With Quote
Old 06-16-10, 01:20 AM   #3
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Hi Magic,

If in the Campaign_RND.mis a ship Type=102 without Class is scripted, SH3 searches the Roster folder and the according nationality (British/American) for all ships available for the current time. Randomly, one of these ships is chosen and spawned. I think this mechanism can't be changed. The chance that the Q-Ship is spawned is about 5 - 10% depending on the total amount of type 102 ships aqvailable in the Roster/Nationality-Folder for the given time. If the Q-ship is spawned, the probability is 10% that it is armed and equipped with searchlights. This probabilty can be set to 100% by setting ChooseFrom=1 in the RandomisedEvents.cfg. Then the Q-ship is always armed.

For testing purposes I would create a single mission and dirctly script the Q-ship in it.

For my tests I created a whole testing campaign with a test convoy. if you like I can send it to you, but I cannot guarantee that it will work with LSH3.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 06-16-10, 05:42 AM   #4
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-552 in North Atlantic
Posts: 4,429
Downloads: 783
Uploads: 0


Default

Quote:
Originally Posted by h.sie View Post
Hi Magic,

If in the Campaign_RND.mis a ship Type=102 without Class is scripted, SH3 searches the Roster folder and the according nationality (British/American) for all ships available for the current time. Randomly, one of these ships is chosen and spawned. I think this mechanism can't be changed. The chance that the Q-Ship is spawned is about 5 - 10% depending on the total amount of type 102 ships aqvailable in the Roster/Nationality-Folder for the given time. If the Q-ship is spawned, the probability is 10% that it is armed and equipped with searchlights. This probabilty can be set to 100% by setting ChooseFrom=1 in the RandomisedEvents.cfg. Then the Q-ship is always armed.

For testing purposes I would create a single mission and dirctly script the Q-ship in it.

For my tests I created a whole testing campaign with a test convoy. if you like I can send it to you, but I cannot guarantee that it will work with LSH3.

h.sie

Hi h.sie !

Many thanks for your explain !

Do I understand you correctly, I have, that the Q-ship is 100% armed, at this point setting a "1", see the red entry:

; ----------------------------------------------------------------
; Reactivates Q-Ships searchlights & waepons by a chance of 10%
; (by moving them back to their original positions).
[0:data\Sea\NLOV\NLOV.dat]
ChooseFrom=1 <--------- here entry 1 for 100 % armed, is that right ?
.
.
.


And yes, please send me the Test Campaign ! Many thanks in forward !

Best regards,
Magic
__________________
Magic1111 is offline   Reply With Quote
Old 06-16-10, 06:01 AM   #5
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

yes, that is correct.

but if you plan to always have it 100% armed, you can alternatively use the NLOV.dat file from Jimbunas original mod. with that you don't need the entries in RandomizedEvents.cfg. but then there is no more randomisation.
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 06-16-10, 06:42 AM   #6
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-552 in North Atlantic
Posts: 4,429
Downloads: 783
Uploads: 0


Default

Quote:
Originally Posted by h.sie View Post
yes, that is correct.

but if you plan to always have it 100% armed, you can alternatively use the NLOV.dat file from Jimbunas original mod. with that you don't need the entries in RandomizedEvents.cfg. but then there is no more randomisation.
Aaah, okay, I understand !

Hmmm, I plan to play with randomisation 40% or 50% !

Are these then the correct entries:

ChooseFrom=40 (for 40%)
ChooseFrom=50 (for 50%)

Is this correct ?

Sorry for my dumb questions !

Best regards,
Magic
__________________
Magic1111 is offline   Reply With Quote
Old 06-16-10, 07:48 AM   #7
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Hi Magic, no this is not correct.

The probability that Q-Ship is armed is calculated as follows (see Readme.txt or first post):

Prob = 100% / ChooseFrom.

ChooseFrom=1 => Prob = 100%
ChooseFrom=2 => Prob = 50%
ChooseFrom=4 => Prob = 25%
ChooseFrom=10 => Prob = 10%
ChooseFrom=100 => Prob = 1%

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 06-16-10, 07:49 AM   #8
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,750
Downloads: 51
Uploads: 26
Default

Quote:
Originally Posted by Magic1111 View Post
Aaah, okay, I understand !

Hmmm, I plan to play with randomisation 40% or 50% !

Are these then the correct entries:

ChooseFrom=40 (for 40%)
ChooseFrom=50 (for 50%)

Is this correct ?

Sorry for my dumb questions !

Best regards,
Magic
Magic,

You need
ChooseFrom=4 for 25%
ChooseFrom=3 for 33%
ChooseFrom=2 for 50%
You need to use whole numbers - ChooseFrom=2.5 won't work.

RandomizedEvents.cfg tells SH3 Commander how many sets of variables to choose from (a bit like rolling a dice).

In my randomised intro messages there are 82 messages and I use ChooseFrom=82 to tell it to select one of the 82 variables. RandomizedEvents.cfg rolls an 82 sided dice and comes up with a number (lets call it 12) then looks for the line beginning 12_ and applies the information in that line.

h.sie has just one variable in his mod, so by setting ChooseFrom=3 a three sided dice is rolled, but only if the dice shows 0 will his mod be enabled. If it shows 1 or 2 nothing is applied, therefore you get a 33% chance of his mod enabling.

BTW, the dice goes from 0 therefore a three sided dice is 0, 1, 2. An 82 sided dice is 0, 1, 2... 80, 81. It's the way the mod was written and JScones kindly taught me how SH3 Commander worked when I got confused!
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown 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 07:28 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.