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 04-13-07, 07:35 AM   #1
lancer
Swabbie
 
Join Date: Apr 2006
Posts: 10
Downloads: 0
Uploads: 0
Default Doctrine Language

Goodaye,

Having read the Sonalyst Doctrine_spec.txt and examined the doctrine files provided with the game I have a question that someone knowledgeable may be able to help me with.

My aim is to create a target sub platform that exhibits randomised behaviour using for example, the RND command and the setcourse and depth commands. My question is not how to write the doctrine file, as this appears pretty straightforward, but in how to attach the file to the target sub so that once the mission starts the target sub starts changing depth/speed at randomised intervals as directed by the file.

I'm unsure if I have to use a trigger or can I somehow attach it directly to the platform? I understand the use of the doctrine language for fine tuning goals but how to use it to monitor and change a target platforms behaviour throughout a mission is currently beyond me. Any help would be appreciated.

Cheers,
Lancer
lancer is offline   Reply With Quote
Old 04-14-07, 11:08 AM   #2
Eagle1_Division
Bosun
 
Join Date: Oct 2006
Posts: 66
Downloads: 15
Uploads: 0
Default

you have to use DW edit, and in the box labeled: 'Doctrine' put the name of ur doctrine file without the .txt

thats how I'd do it anyways...
Eagle1_Division is offline   Reply With Quote
Old 04-14-07, 11:17 PM   #3
lancer
Swabbie
 
Join Date: Apr 2006
Posts: 10
Downloads: 0
Uploads: 0
Default

Goodaye,

Fair enough but if I place a target sub on the map in the editor I don't get any option (on any of the 3 pages related to that sub) for 'doctrine'. Specifically where are you referring to?

Cheers,
Lancer
lancer is offline   Reply With Quote
Old 04-15-07, 12:24 AM   #4
Molon Labe
Silent Hunter
 
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
Default

You're confusing DW edit with the scenario editor. DW edit is a separate program.
__________________
Molon Labe is offline   Reply With Quote
Old 04-15-07, 03:12 AM   #5
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

User-created doctrines cannot be loaded in the mission editor.

The only way to make this doctrine available to platforms is to edit the SubDef doctrine or replace the SubDef doctrine.

Keep in mind, the doctrine system ALWAYS works in the following manner: the doctrine assigned in the Database to the platform is called the Platform Doctrine.

The Platform Doctrine is always running for the platform, evaluated each game cycle. This doctrine tells the platform what to do under various circumstances, with or without any other input from the sim or sensor contacts.

The other type of doctrine is the Target Doctrine. This is the doctrine that is called by the Platform Doctrine whenever a new sensor or link contact is detected by the platform AND the NewTrack variable is evaluated as True by the sim. The NewTrack variable will be evaluated as True in the Platform Doctrine exactly ONCE for each NEW sensor contact, and at this time there is the opportunity to call the target doctrine using the SETTACTIC "xxx" command.

Also, ALL platforms of the same object type in the database MUST use the same platform doctrine.

So, I'm not sure what kind of behavior your are trying to get from the submarines exactly, but getting them to do what you want and keep a functional AI takes a bit of trial and error work.

I hope this helps, feel free to get specific if you want further assistance.

Cheers,
David
__________________
LW
LuftWolf is offline   Reply With Quote
Old 04-16-07, 12:45 AM   #6
lancer
Swabbie
 
Join Date: Apr 2006
Posts: 10
Downloads: 0
Uploads: 0
Default

Goodaye,

Yep, that helps. I'll dig around a bit based on what you've both mentioned and see how I go.

Thanks for the info.

Cheers,
Lancer
lancer 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 01:44 PM.


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