View Single Post
Old 03-15-21, 05:00 PM   #14
John Pancoast
Ocean Warrior
 
Join Date: Apr 2002
Location: Minnysoda
Posts: 3,189
Downloads: 490
Uploads: 4


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.
__________________
"Realistic" is not always GAME-GOOD." - Wave Skipper

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