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 05-23-12, 06:00 PM   #1
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Looking at the torpedo sim file with S3D i see there is wave heights that impact on duds chance , nice feature . Also no duds after a certain date .
THE_MASK is offline   Reply With Quote
Old 05-23-12, 06:05 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
Looking at the torpedo sim file with S3D i see there is wave heights that impact on duds chance , nice feature . Also no duds after a certain date .
Wave heights should only be influencing premature detonations. Where are you seeing wave heights influencing duds chance?
TheDarkWraith is offline   Reply With Quote
Old 05-23-12, 06:13 PM   #3
elanaiba
Ace of the Deep
 
Join Date: Mar 2005
Location: Bucharest, Romania
Posts: 1,056
Downloads: 3
Uploads: 3
Default

Just out of my head and I'm really really sleepy, I think the duds are influenced by some skills (maintenance of torpedoes etc) but also by the impact angle and torpedo speed.

Regarding magnetic premature detonation i think we took into account running depth, speed and wave state.

Also there was at least one torpedo speed ability supposed to simulate pre-heating the G7e-s, the electric ones.
__________________
With strength I burn...

elanaiba is offline   Reply With Quote
Old 05-24-12, 06:11 PM   #4
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

It would be good to have a random dud failure between 20% and 80% by campaign date 1\1\1938 - 24\12\1942
Every torpedo launch gives a possible random failure % in that range between those dates .

25\12\1942 - 31\12\1949
random dud failure between 10% and 40% for every torpedo launch .

or does this already work using the file torpedoes_g7a-e.sim
I will send you a file of the torpedoes_g7a-e.sim
I interpret some of the values diffrently than you .
It is the amun_torpedo Type 1

Last edited by THE_MASK; 05-24-12 at 08:07 PM.
THE_MASK is offline   Reply With Quote
Old 05-24-12, 07:54 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I amaze myself sometimes

New patcher app is almost complete. It now allows you to specify new sections to add to the file you are patching Adding a new section is as simple as:
- adding a [Section x] header
- adding a Name= and giviting it a name (8 characters max - limitation of PE format)
- adding a Size= and specifying the size (size needs to be SectionAlignment size as specified in PE header - use a tool like PEDumper to view PE header). This is a hex value
- adding a Characteristics= and specifying the characteristics (Read, Write, Executable, etc.). This is a hex value.

If you're not familiar with PE format you should read up on it

SHSim is getting two new sections - a code section and a data section. This will allow me to store my own data in my own section and place all my patch code in it's own code section

Last edited by TheDarkWraith; 05-24-12 at 09:10 PM.
TheDarkWraith is offline   Reply With Quote
Old 05-24-12, 08:48 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
It would be good to have a random dud failure between 20% and 80% by campaign date 1\1\1938 - 24\12\1942
Every torpedo launch gives a possible random failure % in that range between those dates .

25\12\1942 - 31\12\1949
random dud failure between 10% and 40% for every torpedo launch .

or does this already work using the file torpedoes_g7a-e.sim
I will send you a file of the torpedoes_g7a-e.sim
I interpret some of the values diffrently than you .
It is the amun_torpedo Type 1
You can define dates ranges for duds types. Click on Pistols. Add more entries to define the date ranges wanted (right click on Pistols and select add new entry)
TheDarkWraith is offline   Reply With Quote
Old 05-24-12, 10:51 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Patcher app got an overhaul. There is a new node, NT, which lists all the NT data read from the file. There is another new node, Sections, which lists all the sections found in the file. Each section has sub-nodes that tell about the section. And finally there is another new node, Patches, which has all the patches listed under it. You can now right click on Patches and select Enable all patches or Disable to patches. You can also right click on each patch under patches and select Enable all changes or Disable all changes. And finally you can right click on each change and select Enable change or Disable change. Makes it really easy to enable/disable now. I was getting sick and tired of having to click every single one to enable/disable Much easier now.

I don't have the new patch files ready but I will release the new version of the patcher app as it much more user friendly

Oh yeah, biggest change is it's target audience - it's now generic in nature. Thus you can write patch files for any file now (and with the new ability to add sections to a file it's a snap to create your own code/data sections in a file now!)
TheDarkWraith is offline   Reply With Quote
Old 05-24-12, 11:06 PM   #8
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Thanks for the sdk then
THE_MASK is offline   Reply With Quote
Old 05-23-12, 06:53 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I'm kinda sick and tired of these uber reliable torpedoes we have in SH5. I want to see more failures So some questions:
- how reliable were the torpedoes in regards to set speed? Did they maintain this speed all throughout it's run or did the speed vary a little bit? Any records of torpedoes not running at set speed when launched? I'm thinking of adding a small chance (say 1%) that the torpedo does not run at selected speed when launched.
- how reliable were the torpedoes in regards to maximum range at selected speed? Any record of some going farther/shorter? I'm thinking of adding a small chance (say 1%) that the torpedo's maximum range is shorter (maybe add longer also) than intended maximum range
- Any records of torpedoes guidance system freezing after making initial turn (like it's rudder jams)? I'm thinking about adding a small chance (say 1%) that the torpedo's rudder can jam after making initial turn
- Any records of just total failure in general during it's run (not accounting for premature detonations)? I'm thinking of adding a small chance (say 1%) that the torpedo's propulsion system fails at some point during it's run. Torpedo would then be a dud for game account.

What other possible failures could there be?
TheDarkWraith is offline   Reply With Quote
Old 05-23-12, 10:49 PM   #10
nynek
Swabbie
 
Join Date: Sep 2007
Location: East Van
Posts: 10
Downloads: 268
Uploads: 0
Default

I just found some pieces of information
in this link check description of G7a
http://www.navweaps.com/Weapons/WTGER_WWII.htm
next one is more about damage torpedo could cos
http://www.defence.gov.au/sydneyii/S...M.003.0042.pdf
influence of preheating here
http://www.uboat.net/technical/torpedoes.htm
yadda yadda about everything
http://www.uboataces.com/weapon-torpedo.shtml
real life account
http://books.google.ca/books?id=LJJe...ailure&f=false

If that's the case sorry for discovering wheel and gunpowder again

nynek
__________________



nynek is offline   Reply With Quote
Old 05-24-12, 12:36 AM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by nynek View Post
I just found some pieces of information
in this link check description of G7a
http://www.navweaps.com/Weapons/WTGER_WWII.htm
next one is more about damage torpedo could cos
http://www.defence.gov.au/sydneyii/S...M.003.0042.pdf
influence of preheating here
http://www.uboat.net/technical/torpedoes.htm
yadda yadda about everything
http://www.uboataces.com/weapon-torpedo.shtml
real life account
http://books.google.ca/books?id=LJJe...ailure&f=false

If that's the case sorry for discovering wheel and gunpowder again

nynek
I will give it a read

More patches coded in:
- removed the kiddy factor from the torpedo circle runner chance. Now you will have a chance of getting circle runners (game sometimes multiplies circle runner chance read from torpedoes .file with 0 - so you never got a circle runner. If it wasn't 0 it was some fractional value thus the value specified in torpedoes .sim file was never really used)
- added some cool code that gives a 5% chance of the torpedoe's rudder jamming as it is making it's initial turn. Once jammed it's effectively a circle runner. Torpedo has to have moved 100m before it can do it's initial turn (game design - I can change that value though ). This is checked once and then never checked again (so it's checked at the 100m point and no more)

All these patches have used up the available 'space' in the code (.text) section of the SHSim.act file. Thus I have to revise the patcher app so that it can add more free space to any section (.text, .bss, etc.) in a file it's patching (not free space in memory but physical free space in the file itself on your hard drive). Once the patcher app is updated I'll release the new version.

I'm planning on adding 3 torpedo failures to this upcoming next version:
- 3% chance that torpedoe's max range is less than actual (could be up to 25% less)
- 5% chance that torpedoe's speed is less than actual (could be up to 5% less)
- 2% chance that torpedo experiences propulsion failure and thus dies (comes to stop and sinks to bottom). When torpedo is initialized a random value will be asked for and scaled to 0-100. If this random value is <= 2 then another random value will be asked for scaled to 0.0-1.0. This 0.0-1.0 random scaled value will be multiplied by the torpedoes max range. The result will be stored as the new torpedo max range.

I'm also toying with the idea of adding some drift to the torpedo's ordered heading. I have a very hard time believing that the torpedo ran a perfectly straight line to the target. Wind, waves, and currents could cause it to drift. Thus a very very small amount of drift (a signed value + or -) could be added to the ordered heading every frame update or every 10 frame updates or more?

I have almost all the variables mapped out for the torpedo so I can do just about anything I want with them


Last edited by TheDarkWraith; 05-24-12 at 12:53 AM.
TheDarkWraith is offline   Reply With Quote
Old 05-24-12, 03:09 AM   #12
Sailor Steve
Eternal Patrol
 
Sailor Steve's Avatar
 
Join Date: Nov 2002
Location: High in the mountains of Utah
Posts: 44,456
Downloads: 745
Uploads: 249


Default

Quote:
Originally Posted by TheDarkWraith View Post
I want to see more failures So some questions:
The 1% chance of various failures sounds good to me, but as for accurate records of short/long runs and inaccurate speeds, how would anyone know? From inside the boat one couldn't tell how far the fish ran, or how fast. They would only know that it missed. I don't think anyone ever did the kind of extensive testing this would require.
__________________
“Never do anything you can't take back.”
—Rocky Russo
Sailor Steve is offline   Reply With Quote
Old 05-24-12, 02:37 PM   #13
nynek
Swabbie
 
Join Date: Sep 2007
Location: East Van
Posts: 10
Downloads: 268
Uploads: 0
Default

Quote:
Originally Posted by Sailor Steve View Post
The 1% chance of various failures sounds good to me, but as for accurate records of short/long runs and inaccurate speeds, how would anyone know? From inside the boat one couldn't tell how far the fish ran, or how fast. They would only know that it missed. I don't think anyone ever did the kind of extensive testing this would require.
With all due respect but it was done every time with device shown on every sub movie. In case of Germany it is called Junghans.

nynek
__________________



nynek 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 11:12 PM.


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.