what's a delphi program?...... Anyway, I know I was the one how started this thread because I was unable to shoot correctly those torps in my sub, now it's been 5 month I've being playing the game, and I can tell you those formulas in real time action are useless. Still it's a good a approch to learn how to guestimate your firing angle.
enigma!:
Briefing Room
Post a replyHow To Use Torpedoes
113 posts
Real time? Press P for pause and you have all the time you need 
Delphi Torpedo Data Computer is finished:
http://tarpoon.gmxhome.de/enigmahomepage/d...ta_computer.exe
(ignore the link next to the copyright, it is there just in case I ever manage to finish the design of my page
)
I have no idea if it works, hadn't had chance to make any tests yet, though it delivers the same results as I get when using Panzers formulas with my calculator.
-edit-
well, 2 of 2 ingame tests didn't work
I even missed the not moving Wren
However the program still delivers the same angles as the formulas suggest, my guess would be that something in the formulas is wrong
Delphi Torpedo Data Computer is finished:
http://tarpoon.gmxhome.de/enigmahomepage/d...ta_computer.exe
(ignore the link next to the copyright, it is there just in case I ever manage to finish the design of my page
I have no idea if it works, hadn't had chance to make any tests yet, though it delivers the same results as I get when using Panzers formulas with my calculator.
-edit-
well, 2 of 2 ingame tests didn't work
I even missed the not moving Wren
However the program still delivers the same angles as the formulas suggest, my guess would be that something in the formulas is wrong
Source code:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var a, b:real;
const k = pi/180; g = 180/pi;
begin
a := strtofloat (trg_bearing.text) + strtofloat (your_heading.text);
if a >= 360
then a := a - 360;
a := a + 180;
if a >= 360
then a := a - 360;
b := a - strtofloat (trg_heading.text);
if b > 180
then b := strtofloat (trg_heading.text) + 360 - a;
if b < -180
then b := a + 360 - strtofloat (trg_heading.text);
if b < 0
then b := b * (-1);
a := g*arcsin(sin(b*k)*strtofloat(trg_speed.text)/strtofloat(trp_speed.text));
gyroangle.text := floattostr(round(a)) + '?';
end;Which program did you use to program your delphi? Because I know my program works only in some particular cases, which are the most commun but still time to time it gives you a wrong angle. And what speed did you use for torps?
BTW what I meant by real time action, I was refering to the futur multiplayer action comming up...
BTW what I meant by real time action, I was refering to the futur multiplayer action comming up...
I used Delphi 5.0.
k and g are constants needed because Delphi only uses RAD for the Angles but we need DEG.
k and g are constants needed because Delphi only uses RAD for the Angles but we need DEG.
Hail fellow Delphi programmer.
When you provide the gyro setting, be sure and indicate port or starboard. I use
"-" for port.
You could use the DegToRad and RadToDeg functions in the Math unit btw.
--East
When you provide the gyro setting, be sure and indicate port or starboard. I use
"-" for port.
You could use the DegToRad and RadToDeg functions in the Math unit btw.
--East
Well, deleting the line
if b < 0
then b := b * (-1);
would have that effect, but like I said, I simply copied panzers formulas for now, drawing myself a triangle now trying to figure out my mistake
if b < 0
then b := b * (-1);
would have that effect, but like I said, I simply copied panzers formulas for now, drawing myself a triangle now trying to figure out my mistake
ok, two questions:
why do we bother with the "if > 360" stuff? it doesn't matter at all because the sin of 90 is the same as the sin of 450 which is also the same as the sin of 810.
second question:
why don't we get the Angle on Bow (Bearing to Sub Relative to Target Heading) in one formula?
angle on bow = A
A = rel. bearing + 180? - target heading
this doesn't solve the not being able to figure out the correct angle problem though
why do we bother with the "if > 360" stuff? it doesn't matter at all because the sin of 90 is the same as the sin of 450 which is also the same as the sin of 810.
second question:
why don't we get the Angle on Bow (Bearing to Sub Relative to Target Heading) in one formula?
angle on bow = A
A = rel. bearing + 180? - target heading
this doesn't solve the not being able to figure out the correct angle problem though
Hello guys,
i read this entire post yesterday. I was trying to get a more simple approach and did some transformations, so you don't need the a and b angles but can use more absolute values. My base formula is this one:
sin(e-c) = sin(d-c) * vt / vs
or
e=arcsin( sin(d-c) * vt / vs ) + c
where
c: direction in which you see the target's center (your heading plus any relative turn with the binocs)
d: target heading from tac
e: direction in which to fire the torpedo (your heading plus gyro)
vt: target speed from tac
vs: torpedo speed (I use 38)
Just trying that one now. Got some 2000m hits with it but the torpedos tend to hit at the stern... Still not sure if they really go as fast as 38 as they also tend to need longer than what I computed from the distance (still stuck to the unpatched version).
Tarpoon, if you want to try that in Delphi, don't bother with converting the angles before applying the formula. Adding 360 doesn't change anything. If you want to make double sure that the result is in 0..359 range just do
Result:=(360+Result) mod 360.
Happy hunting,
Uwe
i read this entire post yesterday. I was trying to get a more simple approach and did some transformations, so you don't need the a and b angles but can use more absolute values. My base formula is this one:
sin(e-c) = sin(d-c) * vt / vs
or
e=arcsin( sin(d-c) * vt / vs ) + c
where
c: direction in which you see the target's center (your heading plus any relative turn with the binocs)
d: target heading from tac
e: direction in which to fire the torpedo (your heading plus gyro)
vt: target speed from tac
vs: torpedo speed (I use 38)
Just trying that one now. Got some 2000m hits with it but the torpedos tend to hit at the stern... Still not sure if they really go as fast as 38 as they also tend to need longer than what I computed from the distance (still stuck to the unpatched version).
Tarpoon, if you want to try that in Delphi, don't bother with converting the angles before applying the formula. Adding 360 doesn't change anything. If you want to make double sure that the result is in 0..359 range just do
Result:=(360+Result) mod 360.
Happy hunting,
Uwe
I just fininshed reading a submariner's book about his time on a variety of subs, and one thing apparently they do is the "speed plus 3" rule, where you always add 3 knots to the target's indicated speed.Just trying that one now. Got some 2000m hits with it but the torpedos tend to hit at the stern... Still not sure if they really go as fast as 38 as they also tend to need longer than what I computed from the distance (still stuck to the unpatched version).
Jump to
- Tides Community
- ↳ All About Tides
- ↳ Announcements
- ↳ ToW Web Site and Services
- ↳ Help, Feedback & Inquiry
- ↳ Soda & Coffee Shop
- ↳ ToW Entertainment
- ↳ TowNet Publications
- ↳ Media and Print
- ↳ Book Shelf
- ↳ Movies
- ↳ Short Stories by Tides Members
- ↳ Short War Stories by Vets.
- ↳ Music and Sound
- ↳ Soldier's Perls
- ↳ ToW Hobby Shop
- ↳ Internet / Multi-Media
- ↳ Youtube Gallery
- ↳ Game Modders Work Shop
- ↳ ToW Club
- ↳ ToW Club - About
- ↳ ToW Club Room
- ↳ FLH
- ↳ FLH Announcements
- ↳ GI JOE's Cantina
- by Land
- ↳ ToW:Army - Recruiting Station
- ↳ ToW Army Talk
- ↳ World of Tanks ( WoT )
- ↳ Lets talk World of Tanks (Public)
- ↳ ToW:WoT Battle Group Garage
- ↳ ToW:WoT HQ
- ↳ by Land Clubs
- by Sea
- ↳ Admiral of Seas
- ↳ ToW Sea Talk
- ↳ Naval Action
- ↳ Naval Action - Lobby
- ↳ [Flot] Randolph's Raiders
- ↳ Randolph's Raiders - Quarter Deck
- ↳ by Sea Clubs
- ↳ The Central Isles Hotel
- ↳ Slippery Sam's Bar and Grill
- ↳ Front Desk and Lobby
- ↳ News Stand
- ↳ Red Tide/Wolfpack Information
- ↳ WolfPack Reunion
- by Air
- ↳ ToW Air-Talk
- ↳ DCS
- ↳ DCS - General Discussion
- ↳ [Sqn] 360th Fighter Squadron
- ↳ IL2:Battle of Stalingrad
- ↳ IL2:BoS - General Discussion
- ↳ IL2:BoS - Hangar
- ↳ [Sqn] 12.OIAE
- ↳ 12.OIAE Mess
- ↳ 12.OIAE Ops
- ↳ IL2:Cliffs of Dover
- ↳ IL2:CloD - General Discussions
- ↳ IL2:CloD - Hangar
- ↳ [Sqn] No. 616 Squadron
- ↳ 616 - Dispersal Hut
- ↳ War Thunder
- ↳ War Thunder Lobby
- ↳ [Sqn] ToW:Air Assassins Inc
- ↳ ToW:Air Assassins Inc Welcome Room - Public
- ↳ ToW:Air Assassins Inc Members Room
- ↳ ToW:Air Assassins Inc Officers Room
- ↳ [Sqn] ToW:Black Sheep Squadron
- ↳ ToW:Black Sheep Squadron - Welcome
- ↳ ToW:Black Sheep Squadron - Officers Mess
- ↳ [Sqn] =Brood=
- ↳ =Brood= Welcome Lobby
- ↳ IL2:1946
- ↳ IL2:1946 - General Discussions
- ↳ IL2:1946 - Hangar
- ↳ IL2:1946 - Flight Training
- ↳ IL2:1946 - Mission Workshop
- ↳ [Sqn] VF-10
- ↳ VF-10 Ready Room (Sala de Pilots)
- ↳ VF-10 Operations Room (Sala de Operaciones)
- ↳ VF-10 Hangar (Hangar)
- ↳ 01 SNATF - Announcements
- ↳ 02 SNATF - Gen Discussion Forum
- ↳ 03 SNATF - Event Results
- ↳ 04 SNATF Registration
- ↳ 05 SNATF OPS
- ↳ 06 SNATF WEB SITE
- ↳ The Tin Man
- ↳ MCVG-2 Command Room
- ↳ MCVG-2 Training Room
- ↳ MCVG-2 Air Ops
- ↳ MCVG-2 Web Site
- ↳ MCVG-2 Recruiting Office
- ↳ IL2 Hangar
- ↳ MCVG-2 CiC
- ↳ CVG-12 Manuals
- ↳ Ground Training
- ↳ Old Training Forum
- ↳ Recognition Training
- ↳ Pilots Notes
- ↳ Radio Telephony Manual
- ↳ Flying Training
- ↳ Combat Training
- ↳ 1stAVBG - California Club
- ↳ 1stAVBG - Recruiting Office
- ↳ 1stAVBG Website
- ↳ 1stAVBG HQ
- ↳ 1stAVBG - HQ
- ↳ 1stAVBG - Rank and Awards
- ↳ 1stAVBG - Training
- ↳ 1stAVBG - Missions Briefing
- ↳ 1stAVBG - Recon
- ↳ 1stAVBG - Mods
- ↳ 117th Open Topic
- ↳ 117th HQ
- ↳ 117th Sortie Schedule
- ↳ 117th After Action Reports
- ↳ by Air Clubs
- ↳ [Sqn] No. 85 Squadron
- ↳ 85 - Mess
- ↳ 85 - Operations
- by Space
- ↳ -- SPACE TALK --
- ↳ Voice Commands
- ↳ Star Trek Online - STO
- ↳ Star Trek Online - General Discussion
- ↳ [Fleet] Tides of War
- ↳ STO - ToW Data Bank
- ↳ STO - ToW Federation Fleet HQ
- ↳ STO - ToW Klingon Fleet HQ
- ↳ STO - ToW Fleet Command Center
- ↳ STO - Klingon Operations Center
- ↳ STO - Federation Operation Center
- ↳ Star Citizen
- ↳ SC - General Information
- ↳ SC - Vids
- ↳ SC - Discussion Forum
- ↳ SC - Squadron 42
- ↳ SC - We Want You...
- ↳ Eve Online
- ↳ General
- ↳ [Corp] Metacrania Corp
- ↳ Lobby
- ↳ Metacrania Corp ViP's
- ↳ Elite: Dangerous
- ↳ by Space Clubs
- by Fantasy
- ↳ World of Warcraft
- ↳ Feral Muffins
- ↳ Raiding
- ↳ Archive
- ↳ Dark Venom
- ↳ News
- ↳ The Broken Keel
- ↳ Silent Killers
- ↳ The Blood Blades
- ↳ The Ingos
- ↳ Horde on Tour
- ↳ Tribes of War Coalition
- ↳ Tribes Raiding
- ↳ Death Angels
- ↳ CoD5 WaW
- ↳ TEST by Tbar
- Tides of War Archive
- ↳ by Land
- ↳ Armored Warfare
- ↳ Call of Duty Series
- ↳ Call Of Duty games 1-6
- ↳ Call of Duty 7: Black Ops
- ↳ BattleField Series
- ↳ BattleField Chat
- ↳ by Sea
- ↳ Steel Waves
- ↳ Deepolis
- ↳ Deepolis Fan Site
- ↳ Deepolis Fan Site Forums
- ↳ by Air
- ↳ Air Marshal
- ↳ Rise of Flight
- ↳ RoF - General
- ↳ RoF - Hangar
- ↳ RoF ToW Fighter Wing
- ↳ [Sqn] = I R F C =
- ↳ Air Attack Game v1.0
- ↳ Air Attack Lobby
- ↳ ToW League Air Attack
- ↳ 1x1 League
- ↳ 2x2
- ↳ 4 Squad Sim
- ↳ AA - Flight School
- ↳ [Sqn] VMF-214 Black Sheep Squadron
- ↳ BSS Pilots Lounge
- ↳ BSS Sortie Schedule
- ↳ BSS: Off Duty
- ↳ BSS Archives
- ↳ BSS CO/XO Board
- ↳ SNL-KTF Tactical
- ↳ [Sqn] Air Assassins
- ↳ The Air Pirates Lounge
- ↳ Air Ops
- ↳ [Sqn] The Empire Aces
- ↳ TEA Public Lounge
- ↳ TEA Private
- ↳ [Sqn] USAAC - Air Attack - Archive
- ↳ USAAC - AA Pilot Lounge
- ↳ USAAC - AA Pilot Operations Forum
- ↳ USAAC Leagues & Events
- ↳ Leagues
- ↳ Fun Events
- ↳ USAAC - AA FAQ
- ↳ USAAC - Flight School
- ↳ USAAC - Squad Forums
- ↳ AA Squads/Teams/Links
- ↳ USAAC - CO/XO and STAFF Board
- ↳ USAAC League and Events Mgmt
- ↳ USAAC Fun Events Mgmt
- ↳ USAAC League Mgmt
- ↳ USAAC Refs Board
- ↳ USAAC Web Works Dept
- ↳ USAAC ** CITY HALL **
- ↳ Great Hall
- ↳ USAAC Archives
- ↳ by Space
- ↳ Mission Control
- ↳ Space Engineers
- ↳ by Fantasy
- ↳ -- FANTASY GAMES --
- ↳ Fire Fall
- ↳ ToW Army Group HQ
- ↳ Shroud of the Avatar
- ↳ Left 4 Dead
- ↳ Halo
- ↳ Halo 1
- ↳ Halo 2
- ↳ Federation - II
- ↳ Phantasy Star Universe
- ↳ Table Top
- ↳ Abbeywood Irregulars
- ↳ Brigade Office
- ↳ Operations
- ↳ Deployments
- ↳ Afterwind - Browser Turn Based
- ↳ Enigma - Rising Tide - Archive
- ↳ Fleet Headquarters
- ↳ Captains Quarters
- ↳ General Topics
- ↳ Roll Call
- ↳ Screenshots
- ↳ War Stories
- ↳ The Raid on Scapa Flow
- ↳ General Topics
- ↳ Briefing Room
- ↳ Briefing Room Imperial Germany
- ↳ Briefing Room Royal Navy in Exile
- ↳ Briefing Room United States of America
- ↳ Engineroom
- ↳ Sink The Hood
- ↳ Future Suggestions
- ↳ Community Modding
- ↳ Custom Missions
- ↳ Game Modding
- ↳ Voice Packs
- ↳ Massive Multiplayer