[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Amusing story: Indian ocean SNAFU
Goto page ( Previous Page 1 | 2 | 3 | 4 )
Author Amusing story: Indian ocean SNAFU
jsteed


Joined: Apr 08, 2002
Posts: 253
Posted: 2002-10-09 15:30   
Hi Tom,
Strange! The tests I run, with one plane or one plane in the air and several on the runway, all result in the same effect. With a surfaced sub, the DC's are released and then the planes just circle the sub. The only way I could get them to attack with torps was to increase speed and maneuver. Then they would see me as a threat and attack.

Here is a doctrine that takes care of this problem. It is fairly mundane except for the last conditional. I found that if I drop the target as soon as I fire a weapon, the plane will immediately reaquire and begin the attack process again. I did quite a few tests both with subs submerged and surfaced and with all mission types. The doctrine seems to work well. For attacks against submerged targets it results in a slightly larger 'weapons delivered / unit time' than BomberEvade. Otherwise, I do not see any detrimental effects. Try it out and let me know if you find any problems.

I have begun looking at depth charges. One problem is using DetonationDepth as the variable for setting the depth the DC. Changing this to something else, reduces, but does not completely eliminate the floating DCs.

; ASWPlane

var Jamming
var SensorOff
var DoctrinePriority

IF INIT THEN {
DoctrinePriority = 200
Jamming = False
SensorOff = True
} ENDIF

; Plane is over the water, turn on sensors
if ( ( TerrainAlt <= 0 ) AND ( SensorOff ) ) then {
; Enable all sensors
Enable
PassiveEnable
SensorOff = False
} endif

; Set Tactic
IF NEWTRACK THEN {

IF NOT Jamming THEN {
SensorEnable "RadarJam" 1
SensorEnable "FCRadarJam" 1
Jamming = True
} ENDIF

; Missile?
IF ( TgtClass $= "MISSILE" ) AND ( ( TgtMissileClass "AAM" ) OR TgtMissileClass "SAM" ) THEN {
; Run away
SETTACTIC "AirEvadeMissile"
} ENDIF

; Enemy Plane?
IF ( TgtClass $= "AIR" ) AND ( ( TgtID $= "HOSTILE" ) OR ( TgtID $= "UAE" ) OR ( TgtID $= "UPD" ) ) THEN {
; Run away
SETTACTIC "AirEvadeAir"
} ENDIF

; Enemy Sub?
if TgtClass $= "SUB" then {
DebugOut "Submarine has been detected"
SetPriority DoctrinePriority
; Check out the sub
SetAlt 200
SteerTo
} endif
} ENDIF

if ( ( TgtClass $= "SUB" ) AND ( TgtID $= "HOSTILE" ) ) then {
DebugOut "Attacking hostile submarine"
AttackBest
; Go back to attack again
SteerTo
} endif

; This is necessary if the plane is to keep attacking
if WeaponAway then {
; Drop target. It will be picked up again immediately.
Drop
} endif


  View Profile of jsteed      Edit/Delete This Post   Reply with quote
jsteed


Joined: Apr 08, 2002
Posts: 253
Posted: 2002-10-09 15:45   
Hi Tom,
I forgot to mention that the plane attack functions in NavalSimEngine have quite a few memory leaks. I checked the running of the program with a monitoring program that records run-time errors. This particular piece of SC has a number of problems. That may explain the inconsistent behavior.

Cheers, John


  View Profile of jsteed      Edit/Delete This Post   Reply with quote
Deamon


Joined: May 10, 2002
Posts: 620
From: Germany
Posted: 2002-10-09 17:44   
Quote:

On 2002-10-09 15:45, jsteed wrote:
...I checked the running of the program with a monitoring program that records run-time errors...



Interesting,whitch programm is it?
_________________
IMPERIAL U-FLOTILLA 1914-1918
Current stage: Designing - 3D Modeling - Resurch.
Current activity: Designing sub AI and sonar engine
Status: 2%


  View Profile of Deamon      Edit/Delete This Post   Reply with quote
jsteed


Joined: Apr 08, 2002
Posts: 253
Posted: 2002-10-09 20:04   
Hi Deamon,
The program is called BoundsChecker from a company named Numega. SC is written in MS Visual C++.

Cheers, jsteed


  View Profile of jsteed      Edit/Delete This Post   Reply with quote
XabbaRus


Joined: Feb 28, 2002
Posts: 2792
Posted: 2002-10-10 03:54   
Good work jsteed,
Time to get on the horn to SA haven't e-mailed them in quite a while. would love to know the status of the patch they are working on.


  View Profile of XabbaRus   Goto the website of XabbaRus   ICQ status       Edit/Delete This Post   Reply with quote
Deamon


Joined: May 10, 2002
Posts: 620
From: Germany
Posted: 2002-10-10 04:35   
Quote:

On 2002-10-10 03:54, XabbaRus wrote:
...would love to know the status of the patch they are working on.



What they are working on a patch ? realy ??
_________________
IMPERIAL U-FLOTILLA 1914-1918
Current stage: Designing - 3D Modeling - Resurch.
Current activity: Designing sub AI and sonar engine
Status: 2%


  View Profile of Deamon      Edit/Delete This Post   Reply with quote
Goto page ( Previous Page 1 | 2 | 3 | 4 )
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.010627 seconds.