Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Potential SH3Cmdr Randomisation module - f'back needed!
Goto page Previous  1, 2, 3
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
HEMISENT



Joined: 01 Feb 2003
Posts: 766
Location: Northern Illinois

PostPosted: Sat Mar 18, 2006 7:39 am    Post subject: Reply with quote

JScones wrote:
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?


JScones wrote:

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.
Back to top
View user's profile Send private message
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Sat Mar 18, 2006 7:53 am    Post subject: Reply with quote

HEMISENT wrote:
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.

HEMISENT wrote:
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.
Back to top
View user's profile Send private message Visit poster's website
HEMISENT



Joined: 01 Feb 2003
Posts: 766
Location: Northern Illinois

PostPosted: Sat Mar 18, 2006 8:09 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group