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 03-18-06, 07:39 AM   #31
HEMISENT
Ace of the Deep
 
Join Date: Feb 2003
Location: Northern Illinois
Posts: 1,052
Downloads: 135
Uploads: 0
Default

Quote:
Originally Posted by JScones
For instances where we want to choose one of a set of values.

[AI_SENSORS.DAT]
FileType=B
ChooseFrom=5
So in the "ChooseFrom=" line we can enter our own value? This will enable the player to choose his/her own ratios? Commander knows there are 5 loaded files and by choosing say =10 now Commander will determine that it needs to include 5 default files to achieve the desired ratio set by player?


Quote:
Originally Posted by JScones
Hemisent, gouldjg and others, can you pls map this approach to how you may do things now to see if it covers most bases?
Please forgive me but it's early here and I'm a bit dense this morning after a late night. What do you mean by "map this approach". Right now after reading this latest idea of yours I'm simply amazed and willing to do whatever I can to assist.
__________________
Nuke 'em till they glow!
HEMISENT is offline   Reply With Quote
Old 03-18-06, 07:53 AM   #32
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by HEMISENT
So in the "ChooseFrom=" line we can enter our own value? This will enable the player to choose his/her own ratios? Commander knows there are 5 loaded files and by choosing say =10 now Commander will determine that it needs to include 5 default files to achieve the desired ratio set by player?
ChooseFrom can be any value you like. SH3Cmdr will read it and will create a random number between 0 and the ChooseFrom value - 1 inclusive. So, if ChooseFrom=5, then the random number generated will be 0, 1, 2, 3 or 4.

Let's say the random number chosen is 4, SH3Cmdr will then look for entries prefixed with 4_ and will insert the corresponding values into SH3. If there are no 4_ entries, then SH3Cmdr does nothing.

So, with your Thermal Layer mod, to maintain your ratio you would set the ChooseFrom value to 10, but only include 5 different sets of values (0_ through 4_). Just think of the ChooseFrom value as the number of random folders you'd want.

Quote:
Originally Posted by HEMISENT
Please forgive me but it's early here and I'm a bit dense this morning after a late night. What do you mean by "map this approach". Right now after reading this latest idea of yours I'm simply amazed and willing to do whatever I can to assist.
Basically take what I've proposed above and apply it to your current mod(s) to see whether it would work as currently specced.
JScones is offline   Reply With Quote
Old 03-18-06, 08:09 AM   #33
HEMISENT
Ace of the Deep
 
Join Date: Feb 2003
Location: Northern Illinois
Posts: 1,052
Downloads: 135
Uploads: 0
Default

Going off on a tangent here, I just checked the "Sabotage" mod folders
TypeVIIC 8 files
TypeIXB 9 files
TypeIXC 9 files
TypeIXD2 9 files
Periscope 1 file
Schnorkel 2 files

38 single files total which can affect subsystems. I envision this to have a ratio of perhaps 4:1 starting June 1944 with the ratio increasing to 2:1 by war's end. Is this something that may be within Commanders scope.

Plus to throw a wrench into the works I have thought of possibly combining
a couple files for added suspense
__________________
Nuke 'em till they glow!
HEMISENT 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 06:33 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.