SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Potential SH3Cmdr Randomisation module - f'back needed! (https://www.subsim.com/radioroom/showthread.php?t=90738)

HEMISENT 03-18-06 07:39 AM

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.

JScones 03-18-06 07:53 AM

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.

HEMISENT 03-18-06 08:09 AM

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


All times are GMT -5. The time now is 07:33 AM.

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.