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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-13-15, 09:04 AM   #1
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
I never managed understanding how TDW's wind speed patch is interacts with the rest of SH5's weather setting.

I once asked TDW for clarifications, but I never received an answer to my doubts.
I'll try to describe what will happen with the game when 60m/s patch is enabled...

The game will randomly shift wind speeds between 0 and 60 m/s, pretty much the same like before between 0 and 15m/s. So, if you use stock separameters.cfg file you will always look in 15m/s waves because most of the time game will give you something like 20,35,48 ect m/s winds...

Someone will say "great, we only have to set waves parameters in their cfg file to match 60 m/s hurricane winds" ...Wrong, because it just cant be done. If you try to set waves to higher and more extreme than what we have now with stock 15m/s waves, it will just look ridiculous and unrealistic and our sub will act really funny...

Basically, TDW gave us tool to increase wind speed but it is not possible to set corresponding waves for resoulting wind speeds...
vdr1981 is offline   Reply With Quote
Old 06-13-15, 01:27 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
I'll try to describe what will happen with the game when 60m/s patch is enabled...
That's odd.

I start thinking that what TDW's patch actually does, is multiplying game-generated wind speeds by a fixed factor. The game engine will still think of wind speeds using the stock 1-15 values though. If, for instance, a certain weather zone/season combination has 5-15 m/s set as its windspeed range, the game will still throw the dices and pull a random number from the said range. Let's say it is a 10. At this point the code modified by TDW comes into the picture, multiplying 10 by a 4x factor, so that when we ask for a weather report, reported wind speed will be 40 and not 10 m/s. The game will still retain the 10 m/s figure though, and it will look for it in seaparameters.cfg file. When parameters for 10 m/s are read/interpolated from the said file, again TDW's code pops in, and multiplies some or all of the sea parameters in memory by a fixed factor (could be 4 again, or something else). These new parameters are the ones sent to SH5's graphic/phyisics engine to generate current waves.

Does it sound plausible? This is the only way (that I can think of) TDW's patch could generate/handle wind speeds higher than 15 m/s with no need of updates in cfg files from our part. If you are into it, I could device a set of cfg files aimed at testing my theory.

For a start: by any chance, are the wind speeds reported by navigator all multiple of four after enabling the 60 m/s wind speed patch?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 06-13-15, 01:45 PM   #3
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
That's odd.

I start thinking that what TDW's patch actually does, is multiplying game-generated wind speeds by a fixed factor. The game engine will still think of wind speeds using the stock 1-15 values though. If, for instance, a certain weather zone/season combination has 5-15 m/s set as its windspeed range, the game will still throw the dices and pull a random number from the said range. Let's say it is a 10. At this point the code modified by TDW comes into the picture, multiplying 10 by a 4x factor, so that when we ask for a weather report, reported wind speed will be 40 and not 10 m/s. The game will still retain the 10 m/s figure though, and it will look for it in seaparameters.cfg file. When parameters for 10 m/s are read/interpolated from the said file, again TDW's code pops in, and multiplies some or all of the sea parameters in memory by a fixed factor (could be 4 again, or something else). These new parameters are the ones sent to SH5's graphic/phyisics engine to generate current waves.

Does it sound plausible? This is the only way (that I can think of) TDW's patch could generate/handle wind speeds higher than 15 m/s with no need of updates in cfg files from our part. If you are into it, I could device a set of cfg files aimed at testing my theory.

For a start: by any chance, are the wind speeds reported by navigator all multiple of four after enabling the 60 m/s wind speed patch?
Not so sure, but I could add also that when patch is enabled clouds and smoke will hurtle over the sky like crazy...
I think that 60m/s patch doesn't interfere with wind speeds set in your env files but I cant be 100% sure.
All in all, the patch isn't really useful so you shouldn't bothering your self with it...
vdr1981 is offline   Reply With Quote
Old 06-13-15, 02:03 PM   #4
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

Offtopic and really sorry vdr1981

@gap
heya m8 can u tell me how i can edit the map 4320_2160.raw file i wanna add time zone for real navigation

on topic now i remember about and old discussion about with speed 60/s in fifi's tweak but i can not find that thread anymore
Sjizzle is offline   Reply With Quote
Old 06-13-15, 06:51 PM   #5
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

I don't enable the zero waves patch either . I can never get them to look ok .
http://www.subsim.com/radioroom/show...6&postcount=12
THE_MASK is offline   Reply With Quote
Old 06-13-15, 08:06 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
gear

Quote:
Originally Posted by vdr1981 View Post
Not so sure, but I could add also that when patch is enabled clouds and smoke will hurtle over the sky like crazy...

...

All in all, the patch isn't really useful so you shouldn't bothering your self with it...
Indeed a 60 m/s wind speed is a (very) rare occurrence in real world, and no doubt it is way too much to be handled in game, but supposed that we manage understanding how TDW's patch works, I would be content enough if we could limit maximum wind speed to something like 25-30 m/s, i.e. Beaufort 10-11 (storm to violent storm), or even a bit lesser if need be. Just for reference, consider that stock 15 m/s wind speed limit is equivalent to Beaufort 7 (moderate gale), though most wave mods tend to exagerrate its waves, compensating for such a low limit. Real world full-scale is Beaufort 12 (hurricane) for wind speeds exceeding 32.6 m/s.

Some theoretical considerations now; look at the following link:

The Probability Distribution of Sea Surface Wind Speeds. Part I: Theory and SeaWinds Observations.

Ignore the complicated calculations and skip to the graphs at p. 6. The first graph is representig average annual wind speeds at the sea level. As you can see, there are just a few spots on the world map where it exceeds 12 m/s. The second graph shows the annual deviation from mean wind speed, which on turn never exceeds ca. 5 m/s. By coupling this information with some basic statistics, we get that in the most extreme case (i.e. a theoretical spot on the map where the highest mean and highest standard deviation are coinciding), 84% of the times maximum wind speed won't exceed 17 m/s (= max. mean + 1 max. standard deviation), and 97.75% of the times it won't exceed 22 m/s (= max. mean + 2 max. standard deviations). Indeed this is ignoring skewness and kurtosis (3rd and 4th graphs) which are a measure of how asymmetrical a probability distribution is. Those factors can be simulated only partly in game, by setting different min-max wind speed ranges for each climate area based on season. Doing so would result in a slight increase of the maximum "likely" wind speed estimated above (i.e. not more than 22 m/s in 97.75% of the cases) for some seasons/areas; whence my proposed value of 25-30 m/s which, I repeat, would only apply to the windiest season of a few spots on the world map. A similar approach (it is: simulating asymmetrical wind speed distributions by introducing different max-min ranges for the same area, based on season) is already used in Dynamic Environment, within the 15 m/s limit imposed by the stock game, but increasing it reasonably would allow us to create more variability where needed/possible.

Quote:
Originally Posted by vdr1981 View Post
I think that 60m/s patch doesn't interfere with wind speeds set in your env files but I cant be 100% sure.
This is the worst possible scenery indeed, but there are easy ways to discard/confirm your hypothesis, and this is exactly what I was proposing to test. In order to do it, I only need a couple of volunteers ready to embark themselves on a few weather report patrols with TDW's patch and my upcoming patch enabled. Similar duties were part of the u-boat war after all. What is needed is just a bit of pacience and a good dose of imagination, required for replacing oncle Karl with me as B.d.U...

Quote:
Originally Posted by Sjizzle View Post
Offtopic and really sorry vdr1981

@gap
heya m8 can u tell me how i can edit the map 4320_2160.raw file i wanna add time zone for real navigation
What photo editing program are you using? For sure photoshop is capable of opening/editing/saving raw files.

Quote:
Originally Posted by Sjizzle View Post
on topic now i remember about and old discussion about with speed 60/s in fifi's tweak but i can not find that thread anymore
Thank you for the information Sjizzle, let me know if you manage tracking down that thread.

gap off
__________________
_____________________
|May the Force be with you!|
...\/

Last edited by gap; 06-13-15 at 09:05 PM.
gap is offline   Reply With Quote
Old 06-13-15, 10:41 PM   #7
kevinsue
Der Einzelgänger
 
kevinsue's Avatar
 
Join Date: Apr 2013
Location: Cairns, Australia
Posts: 579
Downloads: 363
Uploads: 3
Default

Quote:
Originally Posted by gap View Post
Indeed a 60 m/s wind speed is a (very) rare occurrence in real world, and no doubt it is way too much to be handled in game, but supposed that we manage understanding how TDW's patch works, I would be content enough if we could limit maximum wind speed to something like 25-30 m/s, i.e. Beaufort 10-11 (storm to violent storm), or even a bit lesser if need be. Just for reference, consider that stock 15 m/s wind speed limit is equivalent to Beaufort 7 (moderate gale), though most wave mods tend to exagerrate its waves, compensating for such a low limit. Real world full-scale is Beaufort 12 (hurricane) for wind speeds exceeding 32.6 m/s.


This is the worst possible scenery indeed, but there are easy ways to discard/confirm your hypothesis, and this is exactly what I was proposing to test. In order to do it, I only need a couple of volunteers ready to embark themselves on a few weather report patrols with TDW's patch and my upcoming patch enabled. Similar duties were part of the u-boat war after all. What is needed is just a bit of pacience and a good dose of imagination, required for replacing oncle Karl with me as B.d.U...
Had a few instances of strong winds around where I live this decade....Category 5 cyclone Larry! Since reading these posts regarding the 60m/s patch, my curiosity has been piqued. After trawling through the files, I was beginning to think along the same lines insofar as the max value of "15" m/s is an arbitrary value for Maximum and the "60" m/s become the new arbitrary value i.e the old values require factoring by 4. I was thinking of experimenting when I get my head around the EnvSim.act with a max value of 30 m/s and see what happens.

I've been looking for where the Generic Patcher inserts the new values into the EnvSim.act but could not find the position offset, Offset=0x3BED8 and just realised why while writing this...because I'm an idiot! I don't have the patch enabled! From initial observations, it appears that the EnvSim.act contains the min and max values but calls up the various .cfg files and uses those values to assemble and present the overall environmental conditions for that particular scenario. This appears to be the same with .exe and .dll files as there appears to be no variable values in the assembly call ups.

As Vdr was saying, to make this patch useable to it's full capability, the SeaParameters.cfg would have to be extensively reworked to make the waves etc look realistic as well as the m/s values for weather reports etc to name just a few.

Off topic while looking through the SH5.exe searching for weather related entries, I came across the CO2 rate of change entry ~ the CO2 level increases 10x faster than is should on the analogue gauge in the control room. I'll find the controlling value one of these days and factor it by 10

CPU Disasm
Address Hex dump Command Comments
0145AAF4 . 43 4F 32 4C 65 76 65 6C 49 6E 63 72 65 61 73 65 ASCII "CO2LevelIncrease" ; ASCII "CO2LevelIncreaseRate"
CPU Disasm
Address Hex dump Command Comments
0145AB04 . 52 61 74 65 00 ASCII "Rate",0
__________________
Best Regards....Kev*

"The finest Captain I ever crossed swords and set sail with"

Last edited by kevinsue; 06-13-15 at 10:59 PM.
kevinsue is offline   Reply With Quote
Old 06-14-15, 01:12 AM   #8
Sjizzle
Count Dracula
 
Sjizzle's Avatar
 
Join Date: Aug 2012
Location: 46°13′N, 24°47′E
Posts: 1,807
Downloads: 405
Uploads: 0


Default

@gap only found this picture about wind speed at 0/ms and 60/ms in your dynamic env. thread and now some of my memories came back and all the discussion was DynEnv v2.9 - Wave Mechanics - Gale (Improved) now i am on page 1k on tdw's patcher hope that today i will find or read all pages from the patcher thread
Sjizzle is offline   Reply With Quote
Reply

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 02:15 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.