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 > Silent Hunter III
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-15-21, 05:00 PM   #12
John Pancoast
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Professor M View Post
Good evening from Blighty.


Thanks for the speedy reply, John.



I use jsgme for most mods and Commander to set time in base and time compression etc. I fancy using Commander to 'tweak' the sensitivity of the sonar occasionally but would rather not alter the sim.cfg file directly. In the same way that jsgme can be used to make changes to the basic.cfg file without having to make alterations to the basic.cfg file directly. Assuming that I have understood what you are suggesting, being able to tweak via Commander will do this, no?


I will not pick this up before tomorrow pm GMT.


Cheers for now.


Prof'

Ok, what you want to work with is the Randomized Events.cfg file found in path SH3 Commander\cfg.
You add whatever you want to happen to this file. I.e., here is my entry for the noise level setting of the GWX sim.cfg file. "Stock" GWX setting for this aspect is 0.5:


;----------------------------------------------------------------------------------RANDOMIZED HYDROPHONE NOISE LEVEL
[0:data\cfg\sim.cfg]
;lower number equals more noise can be heard by the escort.
ChooseFrom=5
RndMidPat=1

0_Hydrophone|Noise factor=0.4

1_Hydrophone|Noise factor=0.3

2_Hydrophone|Noise factor=0.2


***See this section repeated below for explanation of various parts of it.***



;----------------------------------------------------------------------------------RANDOMIZED HYDROPHONE NOISE LEVEL < - this is just the title of the Randomized events section.
[0:data\cfg\sim.cfg] < - this is the path to the file you want to work with.
;lower number equals more noise can be heard by the escort. < - this is just a comment line explaining what is being done.
ChooseFrom=5 < - this tells Commander to choose from one of five entries; the three I added below and then the "stock" GWX value for the other two choices. Since the last two choices are just using the "stock" GWX value there is no need to list them here; they're already listed in the sim.cfg file, i.e. Only need to add values NOT in the file you're working with.
Since the setting here is 5, Commander chooses from 5 possibilities. Since I added three other options, that means there is a 60% chance of Commander using ONE of the lines below (3 divided by 5) and a 40% chance it used the "stock" GWX value (2 divided by 5, 100% - 60%, etc.) If say i.e., this number was 15 vs. 5, then there would be a 20% chance of one of the three values below being chosen; 3 is 1/5 of 15 = 20%. You can use whatever value you want.
RndMidPat=1< - this tells Commander to choose a value each time the game starts. So if you're on patrol, save and exit, the next time you start the game it chooses a value again. It may be the same, may be not. Without this option, upon restarting Commander would always just use the "stock" value of 0.5

0_Hydrophone|Noise factor=0.4 < - this line and the next two lines are the changed values I want to use for the section "Hydrophone" line "Noise factor" in the sim.cfg file.

1_Hydrophone|Noise factor=0.3

2_Hydrophone|Noise factor=0.2


Hope this helps/makes sense. Much of what I wrote is explained at the top of the Randomized events file.
Let me know of any questions you have.

Last edited by John Pancoast; 03-15-21 at 08:23 PM.
  Reply With Quote
 

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 10:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.