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 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-12-09, 02:52 PM   #1
trojanfoe
Watch
 
Join Date: Jun 2006
Posts: 29
Downloads: 3
Uploads: 0
Default Torpedo Algorithm Script File?

Can anyone tell me if the algorithms used by SH4 to calculate torpedo gyro angles (i.e. the TDC calculations) are coded using script files or are hard coded within the .exe/.dlls? If they are in script files, then which one(s)? I am interested in how they work.

Any help would be much appreciated.

Cheers,
Andy
__________________
Andy
trojanfoe is offline   Reply With Quote
Old 09-12-09, 05:23 PM   #2
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

they're hardcoded. But I guess they use pretty much the same maths as the historical system used.
__________________

DarkFish is offline   Reply With Quote
Old 09-13-09, 02:46 AM   #3
trojanfoe
Watch
 
Join Date: Jun 2006
Posts: 29
Downloads: 3
Uploads: 0
Default

Quote:
Originally Posted by DarkFish View Post
they're hardcoded. But I guess they use pretty much the same maths as the historical system used.

OK thanks - do you know where I'd find the historical algorithm? I've googled to no avail.

Cheers,
Andy
__________________
Andy
trojanfoe is offline   Reply With Quote
Old 09-13-09, 06:46 AM   #4
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,899
Downloads: 135
Uploads: 52


Default

If you want all the gory details, US Torpedo Data Computer, Mark 3. They have a whole chapter on underlying theory. Abandon hope all ye who enter there!
Rockin Robbins is offline   Reply With Quote
Old 09-13-09, 05:18 PM   #5
trojanfoe
Watch
 
Join Date: Jun 2006
Posts: 29
Downloads: 3
Uploads: 0
Default

Quote:
Originally Posted by Rockin Robbins View Post
If you want all the gory details, US Torpedo Data Computer, Mark 3. They have a whole chapter on underlying theory. Abandon hope all ye who enter there!

Many thanks - I'll give it a go

Edit - Just downloaded the first section - excellent stuff! Many thanks once again.
__________________
Andy

Last edited by trojanfoe; 09-13-09 at 05:37 PM.
trojanfoe is offline   Reply With Quote
Old 10-05-09, 11:31 AM   #6
othr
Mate
 
Join Date: Jul 2009
Posts: 54
Downloads: 83
Uploads: 0
Default

Pythagorean theorem with a mix of very basic physics:

http://en.wikipedia.org/wiki/Pythagorean_theorem

velocity = distance/time

Known: AoB, target speed, torpedo speed from all those you just calculate the time at which to launch your torpedo.
othr is offline   Reply With Quote
Reply


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:54 AM.


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