![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
10-30-05, 12:52 PM
|
#1 |
|
Sonar Guy
![]() Join Date: Nov 2002
Location: Poland
Posts: 399
Downloads: 4
Uploads: 0
|
Are you sure ? I added the space after ; (I have no spaces after the comment txt anywhere :hmm: ) and still showed errors. Will check again.
:hmm: LegCourse = ( TgtBrg + 100 + rnd 40 mod 360 ) ; LW edit to 100 to 140 *** Unknown word or variable present *** *** Unknown word or variable present *** *** Unknown word or variable present *** *** Unknown word or variable present *** But moving whole comment to next line helped too |
|
|
10-30-05, 12:53 PM
|
#2 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
I ran the SC checker on a some of the stock doctrines just for the heck of it, and it returns errors all over the place.
I think there are some things that have been modified and added in the DW interpretor that the SC checker doesn't account for.
__________________
LW ![]()
|
|
|
10-30-05, 12:58 PM
|
#3 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
Yeah, the doctrine checker doesn't like comments on the same line as commands, regardless of whitespace. the DWInterpretor seems fine with it however, or the doctrine changes I have made would cause a total failure of the doctrine in the tests I've done, and I tested every effect after I made changes.
So we are in the clear on that issue. Time for some football!
__________________
LW ![]()
|
|
|
10-30-05, 01:00 PM
|
#4 |
|
Sonar Guy
![]() Join Date: Nov 2002
Location: Poland
Posts: 399
Downloads: 4
Uploads: 0
|
Because it's SC checker, not DW
But when you learn first what errors are "legal" i.e. showed even on original DW doctrines (new keywords for example) then checker is VERY!!!! helpfull in finding new ones !! I usually check how many errors were before modifications and after, if number is the same then usually OK If my doctrine shows more errors, then I check if those are real errors or caused by checker/DW incompatibility. In 99% of cases it turns out to be my error (something unbalanced, no space, ect.). Couldn't work without this tool I hope jsteed will relase DW version.
|
|
|
10-30-05, 01:02 PM
|
#5 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
Doh! We are posting past each other.
__________________
LW ![]()
|
|
|
10-30-05, 01:24 PM
|
#6 | |
|
Captain
![]() Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
|
Quote:
In the stock SubAvoidWep doctrine Code:
; Set Depth Opposite Layer
IF TgtAlt < LAYER THEN {
SETALT ( -100 - RND 50 )
} ELSE {
SETALT ( LAYER - 100 ) ;set depth to 100 ft below layer
} ENDIF
But in the modded doctrince... Code:
; Set Depth Opposite Layer
IF TgtAlt < LAYER THEN {
SETALT ( -600 - RND 50 )
} ELSE {
SETALT ( LAYER - 400 )
; set depth to 400 ft below layer
} ENDIF
; Setalt ( ( MinAlt / 0.3048 ) + 100 )
; DebugOut "MinAlt + 100 feet set"
Perhaps another IF statement could remedy the problem... Code:
IF MinAlt > LAYER
Setalt ( (MinAlt / 0.3048) + 100)
ELSE
IF TgtAlt < LAYER THEN {
SETALT ( -600 - RND 50 )
} ELSE {
SETALT ( LAYER - 400 )
; set depth to 400 ft below layer
} ENDIF
ENDIF
Just guessing for now. |
|
|
|
10-30-05, 01:29 PM
|
#7 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
I've also not ruled out the possiblity that the combination of a hard-turn plus rapid acceleration might be making the subs drift deeper, just as happens with player subs as well.
To test whether it is a layer or not, you could set the environment type to be bottom limited, thus removing the layer entirely. I should test this.
__________________
LW ![]()
|
|
|
10-30-05, 01:29 PM
|
#8 |
|
Captain
![]() Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
|
One question. Is SETALT measured in feet where MinAlt is measured in meters? Trying to understand why the MinAlt is divided by 0.3048.
Oh, and does anyone know what "TgtSilos" controls? |
|
|
10-30-05, 01:33 PM
|
#9 | |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
Nope, its not the layer issue, because even in Bottom Limited environment the subs ground. :hmm:
Quote:
In terms of TgtSilos, I have *no* idea at all.
__________________
LW ![]()
|
|
|
|
10-30-05, 01:50 PM
|
#10 |
|
Captain
![]() Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
|
Just ran a test of the above missoin with bottom limited conditions (Layer = 0meters). The sub still ran aground.
Then again, it still might be a layer problem. Isn't the default evasion depth set at 400 ft below the layer? So in a bottom limited sea, (layer =0 ) would that make the AI got to 400ft no mater what? More testing coming. |
|
|
10-30-05, 02:03 PM
|
#11 |
|
Captain
![]() Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
|
Ran more testing with a default depth shallower. Sub still bottomed out. I agree, it just might be that that subs can't make the turn without loosing that much depth.... :hmm:
Maybe the solution is to change the mass the AI subs, so that they won't dip when turning... Makes it hard to simulate a littoral combat environment when the AI captains don't even know how to drive their boats.
|
|
|
10-30-05, 02:11 PM
|
#12 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
Or the mission designers could set the depth of their AI subs shallower... perhaps no less than 30-40ft off of the bottom, except when absolutely necessary.
__________________
LW ![]()
|
|
|
10-30-05, 02:52 PM
|
#13 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
Hey guys, we can change the acceleration of the subs and FFG by altering the drag value for each platform.
What do you guys think?
__________________
LW ![]()
|
|
|
10-30-05, 03:02 PM
|
#14 |
|
Captain
![]() Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
|
I always thought that the acceleration/deceleration curves in the game were a bit too steep. Sounds like a good idea to me.
Only thing to worry is if the drag increase will make the ships stop even quicker than they do now. It would be asymetrical if the ships took 2minutes to reach speed, but only 20seconds to go from top speed to standstill. What about prop efficiency in the thrust dialog menu... does that influence acceleration? |
|
|
10-30-05, 03:28 PM
|
#15 |
|
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
None of the thrust values seem to effect acceleration and deceleration... but we can do it with the object masses, I believe.
__________________
LW ![]()
|
|
|
![]() |
|
|
