[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Doctrine Errors in SCX 1.2B
Author Doctrine Errors in SCX 1.2B
jsteed


Joined: Apr 08, 2002
Posts: 253
Posted: 2002-09-08 17:20   
Hi Tom,
I found a few errors in the doctrine files.

1. Torp_AI_Captor: If's and EndIf's are not balanced. Remove the EndIf in line 98. This may explain why some people are having problems with Captors.

2. Torp_AI_Gen: line 98 IF TgtSource $= "TermWake" THEN { TermWake is not of Class TgtSource so this conditional will always be false. Replace TermWake with "Visual"?

Torp_AI: line 30 SensorTime = 0. This variable is not defined with a Var statement. It is never used in the program and therefore can be removed entirely. My experience with undefined variables has been that the weapon only moves at the same speed as the launcher.

CIWSAttack & GunsAttack: line 14 COUNTERMEASURE "ECMJammer" There are no ECM Jammer objects in the game. I don't know if calling an undefined object affects the game, but it would probably be best to comment out this line until one is created.

Other than these, it looks like you've created another fine enhancement to SC. This is starting to become a serious game!

Cheers, jsteed


[ This Message was edited by: jsteed on 2002-09-08 20:43 ]


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


Joined: Feb 28, 2002
Posts: 1697
From: Austria & Aotearoa
Posted: 2002-09-08 18:08   
System malfunction - need input!
_________________
Te Kaha's Missions

America's Cup 2003, Auckland, NZ; Alinghi - Team New Zealand 3-0


  View Profile of Te Kaha   ICQ status       Edit/Delete This Post   Reply with quote
Odin


Joined: May 24, 2002
Posts: 669
From: Scotland / Canada
Posted: 2002-09-08 19:12   
Quote:

On 2002-09-08 18:08, Te Kaha wrote:
System malfunction - need input!




_________________
"...Aww, don't worry about that sub, it's just a Russkie..." BOOM!!


  View Profile of Odin   Email Odin   ICQ status         Edit/Delete This Post   Reply with quote
Thomasew


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-09-08 22:41   
Hi JSteed

1. Firstly, that file would control the Torpedo!! ... NOT the CAPTOR. It would NOT affect the CAPTOR in any way whatsoever. The CAPTOR has it's own doctrine file i.e. Captor.txt

Secondly ... that file is not even used at all .. by anything. It was inadvertently included in SCX 1.2. I was going to give the Mk46 it' s own doctrine ... then decided that it wasn't necessary.

Thirdly ... I don't have any problems with the CAPTOR.

2. Like I said before ... currently not used, and therefore not a problem.

3. Suggest you check again ... Sensortime is defined in 'both' of the ADCAP doctrines (i.e. Torp_AI_Adcap & Torp_Adcap). The one in the Torpedo_AI file is to be used for something else. Launchers???? don't follow the relevance to Launchers ... Weapon moving at same speed as ????? Sorry, this doesn't make any sense.

4. ECMJammer does not need to be a defined object ... it exists within the Program Code.


Cheers
Tom



_________________
He Who Will Not Risk Cannot Win



[ This Message was edited by: Thomasew on 2002-09-09 00:44 ]


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


Joined: Apr 08, 2002
Posts: 253
Posted: 2002-09-09 10:53   
Hi Tom,
1 & 2. I agree, if these doctrines are not used in SC then they will have no effect. I did not check for their usage in the game. I was not implying that Captors did not work. I haven't tried using them. I was only referring to the several posts from people who were having problems with them and thought this might be an explanation. Obviously, I was in error here.

3. This effect IS real. In the doctrine I have, labelled Torpedo_AI.txt, (I misnamed it above), the variable SensorTime is not defined with a Var statement. If this is not done, then the effect I described, WILL take place. To see it for yourself, try the following: In Torp_Adcap.txt, comment out line 12, var SensorTime. Now start a scenerio, (any with a Seawolf or 688 should do), and fire an Adcap. The torpedo will have the same speed and course as the sub...forever. What I believe happens, is the interpreter reaches the line where an undefined variable appears and then terminates. Thus the parameters of the Adcap are never changed. Initially, the Adcap is given the same speed and course as the sub by the program. This effect holds true for almost all undefined variables.

4. I don't quite understand this. Does this mean that ANY ship that uses these two doctrines automatically have ECM jammers on board? That seems odd since all other CMs have defined objects in the database.

Cheers, jsteed


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


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-09-09 11:08   
Hi John

RE: 3 ... Yes, I agree. Sorry, I couldn't quite follow what you were trying to say.

When I saw 'Sensortime', I thought that you were referring to the ADCAP doctrines, as well as that other one. The Torpedo AI doctrine is not used either. Again, this is something I was playing around with ... sometimes I rename files, or start something then change my mind.

So, it 'also' got inadvertently zipped with SCX 1.2 .... but nothing calls it.

4. No ... only for the platforms that have got the ECMJammer flag set in the DB.


Cheers
Tom
_________________
He Who Will Not Risk Cannot Win


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


Joined: Apr 08, 2002
Posts: 253
Posted: 2002-09-09 12:42   
Hi Tom,
4. Ok now I understand, I think. Does this also hold true for the other flags in DBCMFlags?
For instance, the TICO has not only a ECM Jammer flag but also Chaff, IR Flares and Towed Acoustics flags set.
If true then do the objects, Chaff, TowedCM, etc. exist only so a 3d picture can be associated with the use of these CMs?
I notice that these objects have echo return values associated with them. Do you know if varying these numbers has any effect?

Cheers, jsteed


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


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-09-09 13:30   
Hi John

Yes .. but not just for the object and 3D data .. the return values have a marked effect on gameplay. So, they are, in essence, tangible items, ... whereas ECMJamming isn't.

The only one I haven't really checked, as yet, is the CIWS Flag. However, I don't think that this is a valid flag. I think that it's a mistake. Gonna have to experiment with that one. Only the 3 big Carriers have this flag set, so, whatever it is ... it's unique to them.


Cheers
Tom

_________________
He Who Will Not Risk Cannot Win



[ This Message was edited by: Thomasew on 2002-09-09 13:49 ]


  View Profile of Thomasew      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.037223 seconds.