[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Torpedo ranges & fuel in SCX doctrines
Author Torpedo ranges & fuel in SCX doctrines
Torpex


Joined: Jul 06, 2002
Posts: 112
From: Turkiye - Istanbul
Posted: 2002-07-21 18:58   
Thomasew it says in the ai generic torpedo doctrine trange=75000 and fuel is derived from that value (trange). But this doctrine is default for all ai torpedos in the game with different weaponmaxranges in the editor. So is the weaponmaxrange in the db editor useless now?? that all ai torpedos will have ranges derived in the doctrine (be it Mk46, DM 2A4, SUT, F17, etc...) regardless of their wepmaxranges in the db???
_________________
http://denizalti.freewebspace.com


  View Profile of Torpex   Email Torpex   Goto the website of Torpex   ICQ status       Edit/Delete This Post   Reply with quote
Thomasew


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-07-22 00:16   
Hi Torpex

No .... that's not exactly how it works. The routine will look at 3 things ... Fuel Used, Range in the DB, and time the Torp has been in the game.

So, whatever range is set in the DB is still appropriate.

I set a generic fuel value for the other Torps in the game ... to take care of excessive searches, and circling manuevers. It is sufficient to cover the max range of any of the non-user Torps.

So, the Torp will 'Shutdown' if one of three things occur:-

1. It reaches it's maximum range .. as set in the DB.
2. It runs out of fuel ... as a result of excessive searching or circling.
3. It has been 'in game' too long.


It would seem , on the surface of it, that a shorter range Torp e.g. Mk 46 ; Range 6Nm, would suddenly have it's range increased, due to having more fuel ... but that wont happen, because it's Maximum range in the DB is still set at 6Nm. The Doctrine checks that, and will Shut it down at the correct time.

In the case of the Mk46, fuel usage isn't really an issue, because of it's short range.

I really didn't want to have a Doctrine file for every Torp in the game. Yikes!

Although, having said that ... I do foresee that each Torp will eventually have it's own doctrine. Although there are many more Torp Sensors now ... they all essentially have the same range ... i.e. they only serve to control washout speeds and detection sensitivity. I want to start adding specific sensors to the Torps ... that they would have in RL, which would include different detection range capabilities.

Cheers
Tom

_________________
He Who Will Not Risk Cannot Win



[ This Message was edited by: Thomasew on 2002-07-22 01:07 ]


  View Profile of Thomasew      Edit/Delete This Post   Reply with quote
Torpex


Joined: Jul 06, 2002
Posts: 112
From: Turkiye - Istanbul
Posted: 2002-07-22 02:38   
Great job you did on the dbases and doctrines. I most liked the sensor inputs.
As I changed the Sea Wolf into Type 209/1400s of the Turkish Navy and play that, I am now able to put individual real sensors of the mentioned submarines. For example FAS-3 Flank Array sonar and yes it is included. A question about it : Have you not been able to find TAS-3 Sub Towed Array??? (I need it in order the complete the suite) and the Racal Porpoise and Racal SeaLion ESM systems.

About the torpedo doctrine I tweaked with your fuel usage settings (devised a new system actualy but hey its your idea at first). I implemented time based on seconds past, that is every seconds passed it does a calculation based on the torpedo's speed.

var Rng (range as if representing fuel)
var lasttime (to check if a sec. has passed)

at INIT :
Rng = your torpedos max. range
lasttime = Time

---------------------------------------------

IF Time > lasttime THEN {
Rng = ( Rng - ( ( Time - lasttime ) * ( OwnSpd / 2 ) * ( ( 3 * ( OwnSpd / MinSpd ) ) - 2 ) ) )
lasttime = Time

} ENDIF

And the usual shutdown procedure

What it does is :
1 - Check if time has advanced 1 second
2 - Calculate the meter/sec. speed of current speed and multiply it by the result of an equation which calculates the fuel usage (max. range reduction / fuel needed for certain meters flow)(at hi speeds you burn more fuel so burn more meters) at current speed. Since at min. speeds (I set em up individually from the db also) the range is greatest, range reduction for that sec. is multiplied by 1. On higher speeds the equation is more than 1 so range reduction is more than you cover thus decreasig your range.

I tested it for DM2A4 (also made that playable) and it turned out quite nice. Since you have to set up range-reduction equations for every torpedo this way (as you said a huge task) I only tested with this torp.

With max. speed (48 kts.) it went 13 km. just as the same as it should be and with the MinSpd of 24 kts. it went all the way to 50 km. (Torpedo speed-range datas can be found on the net as you all know.)

Why did I need to do that? Well in your doctrine base fuel value (b4 you subtract the run and Sfuel) is multiplied by spddif which is calculated on "current speed". However I may travel all the way at slow speed and then go high speed, in that way I seem to lose lotsa fuel all of a sudden this and the realistic fuel usage values derived from speed-range stats. (At hi speed it may not always use 2 times of what the min. speed uses.) Of course my equation is a linear one : y = mx + c , it may be a curved one, parabolic etc... but how the hell can I know this is the best I can do.

Again congratulations for your great work. I hopw this thing I wrote here (if it pulls interest) may be usefull to you and other people also. And the Nuclear effect I mentiond a few posts back it may be useful also for some.

_________________
http://denizalti.freewebspace.com


  View Profile of Torpex   Email Torpex   Goto the website of Torpex   ICQ status       Edit/Delete This Post   Reply with quote
Thomasew


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-07-22 03:49   
Hi Torpex

I'll try and find some info on the Sensors you mentioned and put them into the Beta 1.1 DB, which I hope will get posted today.

I initially had some time calculations in my original doctrines ... but I removed them some time ago, for some reason, that escapes me at present. I'll most certainly have a look at your time calculation stuff, and perhaps incorporate it into the final release.

I was, in fact, going to remove the Fuel Calulation routines from the next Beta ... due to a problem I found with the way the Program handles 'Enable' ranges. I know how to get around it, but didn't want to implement it just yet.

Torpedoes work a lot differently now, and I don't want to 'cloud the waters', by chucking in more variables. Once I get enough feedback on their current performance ... and everyone seems happy ... then I'll implement some other stuff that I have in mind.

Of course, that may require having a seperate doctrine for each Torp in the game, but it may well be the only way to do all that I want to do.

Thanks for your great input .... I'm glad you are enjoying the Mods.

Cheers for now.
Tom
_________________
He Who Will Not Risk Cannot Win


  View Profile of Thomasew      Edit/Delete This Post   Reply with quote
Torpex


Joined: Jul 06, 2002
Posts: 112
From: Turkiye - Istanbul
Posted: 2002-07-22 05:16   
Good luck on your progress Thomas.

Editting all may be unnecessary for now as you said, in fact all the torpedos can still have fuel and have the same speed-range-fuel comparisons. i.e. like a torp uses 1 amount of fuel at min. speed and 2 amount at max. speed. You set up the torp_ai_gen this way and all torps use this equation. Unrealistic but not that much necessary, this way we can keep the cool thing that is torp fuel and still postpone the hard labor. Then the last digit in the doctrine I wrote above should be only *(OwnSpd / MinSpd) w/o the 3 and -2.
_________________
http://denizalti.freewebspace.com


  View Profile of Torpex   Email Torpex   Goto the website of Torpex   ICQ status       Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.012898 seconds.