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  Next
 
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
AlanSmithee



Joined: 20 Apr 2005
Posts: 120
Location: Chicago Expatriate

PostPosted: Thu Mar 16, 2006 1:17 pm    Post subject: Reply with quote

The creativity of the modders on this forum amazes me. Woot! to all. Rock

Now to my question: would it be possible to add a flag to each random mod allowing it to be randomized only at the beginning of a patrol? For example, the Sabotage mod would only be randomized at the beginning of a patrol (so damaged equipment doesn't magically "fix" itself), while the thermal layers mod would be randomized every time someone launched using SH3 Commander?
Back to top
View user's profile Send private message
jcwolf



Joined: 23 Jan 2006
Posts: 667
Location: Spain

PostPosted: Thu Mar 16, 2006 3:00 pm    Post subject: Re: Potential SH3Cmdr Randomisation module - f'back needed! Reply with quote

Sorry my misstake...and posted absolutly the same post as the one it comes next! Rock Rock

Last edited by jcwolf on Thu Mar 16, 2006 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jcwolf



Joined: 23 Jan 2006
Posts: 667
Location: Spain

PostPosted: Thu Mar 16, 2006 3:01 pm    Post subject: Re: Potential SH3Cmdr Randomisation module - f'back needed! Reply with quote

JScones wrote:
With Hemisent's progress on the Thermal Layer and Sabotage mods, I got to thinking last night during the Commonwealth Games opening ceremony (did that actually make sense to *anyone*???) about creating a module for SH3Cmdr that will allow modders to add any randomisation events that they want. I envisaged the structure to be like:

[FILENAME]
FileType=[B for Binary or T for Text]
Section=[For text files, the section that the value sits under]
[KeyName if text file, offset if binary file]=[I for integer, Fx for float, where x is the number of decimal places|LowerBoundaryValue|UpperBoundaryValue]

So, using live examples:

[SIM.CFG]
FileType=T
NbSections=1
0_Section=AI Detection
0_Lost contact time=I|15|45 ;Randomises the time Escorts spend looking for U-Boats after losing contact

[SCENE.DAT]
FileType=B
691=I|256|480 ;Randomises wave height between 1 and 2 times. 691 is the MaxWaveHeight offset value - obtained from any TT tool - this is just an example and not a feature of SH3Cmdr
975=I|0|20 ;Randomises water density between 0 and 20. 975 is the UnderwaterFogEnd(Fog) offset value - again, just an example

This will remove the need to use the Random folders for (hopefully) everything other than graphics.

Anyway, these are just my initial thoughts - I'm sure the concept will expand as I (nay, we) think of more ways to use it, like allowing text/label randomisation...

To see whether this is worth it, would people see value with this approach? What other events could you see it being used for? Or what other events would you *like it* to be used for? My view is basically *any* value in *any* file could be randomised. The one limitation I see at the moment is that randomisation would be independant. That is, there'd be no connection between the randomisation of one value and another. Although, I'm sure I can come up with a solution if I actually think about it! Wink




Can i ask something Mate?! Confused


There is one thing that realy pisses me of on the SHIII options menu, in the sound options, if you take of the music,cause i realy don't like to play a simulation game with background music, not real, You also can't listen to the gramophone during the game play...

Is there anyway for you to had that option on the briliante
SH3Com. it can be a great adition on the ones that like me also don't like in game music....??? Thumbs Up Thumbs Up
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Sailor Steve



Joined: 22 Nov 2002
Posts: 5433
Location: Salt Lake City, Utah

PostPosted: Thu Mar 16, 2006 3:06 pm    Post subject: Reply with quote

WOW! Triple post!

Go into the Data/Sound/Music folder and delete everything except for the main Music file.

I did that the very first week I had the game. Also, the 1.4b patch lets you have the option of turning the music off.


Jaesen, I would also love to see easy randomization, if only to have different fanfare music each time I enter and leave port. I'm just too stupid to work the folders right.
Back to top
View user's profile Send private message Send e-mail
jcwolf



Joined: 23 Jan 2006
Posts: 667
Location: Spain

PostPosted: Thu Mar 16, 2006 4:51 pm    Post subject: Reply with quote

Sailor Steve wrote:
WOW! Triple post!

Go into the Data/Sound/Music folder and delete everything except for the main Music file.

I did that the very first week I had the game. Also, the 1.4b patch lets you have the option of turning the music off.


Jaesen, I would also love to see easy randomization, if only to have different fanfare music each time I enter and leave port. I'm just too stupid to work the folders right.



I explained me badlly , what i whant is having the option to ear the Gramophone music when i whont wothout leastening to the main background SHIII music, cause in game they seemed conected to the same option sound solution....

So right now, i can't ear to the gramophone cause i turned of music on options.... Thumbs Up
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Tikigod



Joined: 29 Mar 2005
Posts: 498
Location: United States

PostPosted: Fri Mar 17, 2006 12:55 am    Post subject: Reply with quote

I always wanted a randomizer for my loading screens:
http://www.subsim.com/phpBB/viewtopic.php?p=279024
Back to top
View user's profile Send private message Send e-mail
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Fri Mar 17, 2006 2:51 am    Post subject: Reply with quote

AlanSmithee wrote:
Now to my question: would it be possible to add a flag to each random mod allowing it to be randomized only at the beginning of a patrol? For example, the Sabotage mod would only be randomized at the beginning of a patrol (so damaged equipment doesn't magically "fix" itself), while the thermal layers mod would be randomized every time someone launched using SH3 Commander?

Yeah, I suppose just adding a Y/N at the end of the value string would work.
Back to top
View user's profile Send private message Visit poster's website
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Fri Mar 17, 2006 2:54 am    Post subject: Reply with quote

Tikigod wrote:
I always wanted a randomizer for my loading screens:
http://www.subsim.com/phpBB/viewtopic.php?p=279024

You can do it with SH3Cmdr now.

Note that my proposed fix does NOT cover graphics or sound files. They must still be randomised via the Random folder feature.
Back to top
View user's profile Send private message Visit poster's website
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Fri Mar 17, 2006 3:00 am    Post subject: Reply with quote

Just some expectation management here - I intend applying the Perato principle to this feature, so I expect that I'll only end up making 80% of you happy (hehe, no obvious responses from anyone else who has studied marketing Wink).

To begin with I'll be applying the basic function, and then I'll welcome some "real live examples" of randomisation to test. It's these real life examples that determine how complex or simple the function ends up.
Back to top
View user's profile Send private message Visit poster's website
VonHelsching



Joined: 16 Aug 2005
Posts: 666
Location: Athens, Greece

PostPosted: Fri Mar 17, 2006 3:10 am    Post subject: Reply with quote

It's called "Pareto", no offence. :sunny:
Back to top
View user's profile Send private message
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Fri Mar 17, 2006 4:11 am    Post subject: Reply with quote

VonHelsching wrote:
It's called "Pareto", no offence. :sunny:

Just for that you're not getting your "Export list" option. Razz

Rotfl
Back to top
View user's profile Send private message Visit poster's website
VonHelsching



Joined: 16 Aug 2005
Posts: 666
Location: Athens, Greece

PostPosted: Fri Mar 17, 2006 5:17 am    Post subject: Reply with quote

JScones wrote:
VonHelsching wrote:
It's called "Pareto", no offence. :sunny:

Just for that you're not getting your "Export list" option. Razz

Rotfl


Surprised
.
.
:huh:
.
.
Damn
Back to top
View user's profile Send private message
gouldjg



Joined: 17 Mar 2005
Posts: 959
Location: Manchester UK

PostPosted: Fri Mar 17, 2006 6:45 am    Post subject: Reply with quote

JScones wrote:
I'll welcome some "real live examples" of randomisation to test. It's these real life examples that determine how complex or simple the function ends up.


Can you expand on this a little more for me,

I was going to have a look at latest versions of the zone.cfg and I suppose I could apply some simple changes on equipment HP values for the sub i.e. make it possible for occasional complete destruction of certain pieces of equipment after first pass by DD.

I can just do equipment for now and leave flooding, etc till we know how it is going?

Is that what you mean?

That way it will probbly be a simple test to start,

Now lets say I want the engines to suffer disastrously but only have a chance of 1 in 1000 of it doing so.

Is your proposal going to allow this option or would it be best to go the folders way which would allow this type of stuff but take much much longer.
Back to top
View user's profile Send private message Send e-mail
HEMISENT



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

PostPosted: Fri Mar 17, 2006 7:20 am    Post subject: Reply with quote

Jscones
The TL values should be wrapped up for you by tonight. I'lll pm them to you. I think these would be a great test case as they're already working as advertized in the Commander's standard random function, the ratio is relatively small and your dealing with only 5 edited copies of 1 particular file, the AI_SEnsors.dat.

Still holding off on building the Sabotage random folder structure until we see how this works out-my fingers are crossed.
Back to top
View user's profile Send private message
JScones



Joined: 21 Apr 2005
Posts: 1129
Location: Australia

PostPosted: Sat Mar 18, 2006 2:21 am    Post subject: Reply with quote

OK, I'm gonna implement at this stage two dynamic approaches.

1. For instances where simple randomisation between two boundaries is sufficient:

[SIM.CFG]
FileType=T
ByYears=0
AI Detection|Lost contact time=I|15|45|Y ;Randomises the time Escorts spend looking for U-Boats after losing contact

If "ByYears" = 1, then SH3Cmdr will look for a match based on career year. For example:

[SIM.CFG]
FileType=T
ByYears=1
1939_AI Detection|Lost contact time=I|15|45|Y
1940_AI Detection|Lost contact time=I|20|45|Y
1941_AI Detection|Lost contact time=I|20|45|Y
1942_AI Detection|Lost contact time=I|20|45|Y
1943_AI Detection|Lost contact time=I|20|45|Y
1944_AI Detection|Lost contact time=I|20|45|Y
1945_AI Detection|Lost contact time=I|30|45|Y

**The ByYears is still a thought. Whilst it would be nice, it will be the first to go if it proves too cumbersome.

2. For instances where we want to choose one of a set of values.

[AI_SENSORS.DAT]
FileType=B
ChooseFrom=5
RndMidPatrol=1
0_<offset to label AI_Hydrophone MinHeight>=-105
0_<offset to label AI_Sonar>=-90
0_<offset to label QGAP>=-105
0_<offset to label QCIP>=-105
0_<offset to label QCeP>=-105
0_<offset to label Type144P>=-108
0_<offset to label Type138P>=-105
0_<offset to label Type128P>=-100
0_<offset to label Type123P>=-100
0_<offset to label QGAA>=-90
0_<offset to label QCIA>=-88
0_<offset to label QCeA>=-93
0_<offset to label Type147A>=-95
0_<offset to label Type144A>=-98
0_<offset to label Type128A>=-85
0_<offset to label Type123A>=-88
1_<repeat for each set of values>
2_<repeat for each set of values>
3_<repeat for each set of values>
4_<repeat for each set of values>

This method will also solve the "1 in 1000 chance" type changes. You'd simply set the "ChooseFrom" value to 1000 but only add one set of values.

Hemisent, gouldjg and others, can you pls map this approach to how you may do things now to see if it covers most bases?
Back to top
View user's profile Send private message Visit poster's website
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  Next
Page 2 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