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-22-12, 06:13 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I have to 'find' all these variables first...that's the hardest part! I like the idea but whether can be implemented or not depends on whether I can find all the variables needed

In the meantime I have a magnetic detonator defect check coded in. When the player launches the torpedo I added a hook into the torpedo initialization routine that will check for magnetic detonator defect. The current defect rate is set at 10%. This defect is a failure of the magnetic detonator to detect at the range specified. So if the game determines that this torpedo has a defect it will get a random number, scale it to between 0.0 and 1.0, and multiply that scaled random number by the magnetic detonator range specified in the torpedo .sim. This new value will be the torpedo's new magnetic detonator range
TheDarkWraith is offline   Reply With Quote
Old 05-22-12, 06:42 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I have to 'find' all these variables first...that's the hardest part! I like the idea but whether can be implemented or not depends on whether I can find all the variables needed
some of those variables can be read directly from ships cfg, others are stored in torpedo.sim, still others are user defined or context dependent. I hope (or better I trust) one day you will find their memory addresses, or whatever you need for giving the last touches to your excellent work.

Quote:
Originally Posted by TheDarkWraith View Post
In the meantime I have a magnetic detonator defect check coded in. When the player launches the torpedo I added a hook into the torpedo initialization routine that will check for magnetic detonator defect. The current defect rate is set at 10%. This defect is a failure of the magnetic detonator to detect at the range specified. So if the game determines that this torpedo has a defect it will get a random number, scale it to between 0.0 and 1.0, and multiply that scaled random number by the magnetic detonator range specified in the torpedo .sim. This new value will be the torpedo's new magnetic detonator range
yeah, this is the method you described in your previous post. Brilliant!

EDIT:

I've tested your sailboat test mission. Soon I will post my report in the relevant thread
gap is offline   Reply With Quote
Old 05-22-12, 07:05 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.27.0 released. See post #1.

This version adds support for magnetic detonator range defects. When enabled there is a 10% chance that the torpedo has a magnetic detonator defect that causes it's sensing range to be less than actual.

If the torpedo has a defect and does not detonate because of this defect when under a unit there will be NO reports from anyone saying torpedo is a dud or the likes The torpedo will just continue on it's merry way!

Looking into adding an impact angle calculator for the magnetic torpedoes.

Spoiler: if you have the round torpedo circles enabled, when the torpedo's head is right in the middle of the first circle (1) it has reached arming distance and is live....found that by accident today!

TheDarkWraith is offline   Reply With Quote
Old 05-22-12, 07:28 PM   #4
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

TDW you're just one man team.
I haven't time to manage the changes

EDIT:
Quote:
Looking into adding an impact angle calculator for the magnetic torpedoes.
Where to look?
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel

Last edited by volodya61; 05-22-12 at 08:16 PM.
volodya61 is offline   Reply With Quote
Old 05-23-12, 06:00 PM   #5
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   #6
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   #7
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   #8
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-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, 03:09 AM   #11
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
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 12:26 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.