SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters > DW Mod Workshop
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-30-05, 12:52 PM   #1
Amizaur
Sonar Guy
 
Join Date: Nov 2002
Location: Poland
Posts: 399
Downloads: 4
Uploads: 0
Default

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 I usually use them this way (in separate line)
Amizaur is offline   Reply With Quote
Old 10-30-05, 12:53 PM   #2
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

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
LuftWolf is offline   Reply With Quote
Old 10-30-05, 12:58 PM   #3
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

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
LuftWolf is offline   Reply With Quote
Old 10-30-05, 01:00 PM   #4
Amizaur
Sonar Guy
 
Join Date: Nov 2002
Location: Poland
Posts: 399
Downloads: 4
Uploads: 0
Default

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.
Amizaur is offline   Reply With Quote
Old 10-30-05, 01:02 PM   #5
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

Doh! We are posting past each other.
__________________
LW
LuftWolf is offline   Reply With Quote
Old 10-30-05, 01:24 PM   #6
Deathblow
Captain
 
Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by LuftWolf
Just to be sure it wasn't the anti-cavitation routine the Mod uses, I tested the stock SubAvoidWeap doctrine, and the same grounding problem exists, so it isn't anything we've done, just something we haven't fixed yet.
Hm.... how to fix this... :hmm: It might be with the subs preception of the layer in the SubAvoidWeap doctrine, or maybe the minalt settings.

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
It could be a layer problem. In the FFGatekeeper mission, the seafloor is at 200meters, but an XBT launch will report a layer depth of 300meters. Perhaps the AI is trying to set its evasion depth to an obtainable layer depth.

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"
Seems like it could be the same problem. The AI might be using a layer depth that is actually below the seafloor depth. It probably happens when part of the map is above the continental shelf and the other part in the open ocean.... The AI might be using a layer thats inappropriate.

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.
Deathblow is offline   Reply With Quote
Old 10-30-05, 01:29 PM   #7
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

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
LuftWolf is offline   Reply With Quote
Old 10-30-05, 01:29 PM   #8
Deathblow
Captain
 
Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
Default

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?
Deathblow is offline   Reply With Quote
Old 10-30-05, 01:33 PM   #9
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

Nope, its not the layer issue, because even in Bottom Limited environment the subs ground. :hmm:

Quote:
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?
The doctrine is fed information from the game engine in meters, but all doctrines are interpreted in feet, so...

In terms of TgtSilos, I have *no* idea at all.
__________________
LW
LuftWolf is offline   Reply With Quote
Old 10-30-05, 01:50 PM   #10
Deathblow
Captain
 
Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
Default

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.
Deathblow is offline   Reply With Quote
Old 10-30-05, 02:03 PM   #11
Deathblow
Captain
 
Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
Default

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.
Deathblow is offline   Reply With Quote
Old 10-30-05, 02:11 PM   #12
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

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
LuftWolf is offline   Reply With Quote
Old 10-30-05, 02:52 PM   #13
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

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
LuftWolf is offline   Reply With Quote
Old 10-30-05, 03:02 PM   #14
Deathblow
Captain
 
Join Date: Sep 2005
Posts: 517
Downloads: 0
Uploads: 0
Default

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?
Deathblow is offline   Reply With Quote
Old 10-30-05, 03:28 PM   #15
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

None of the thrust values seem to effect acceleration and deceleration... but we can do it with the object masses, I believe. :|\
__________________
LW
LuftWolf is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.