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 > DW Mission Designers' Forum
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-29-06, 03:15 PM   #1
SquidB
Engineer
 
Join Date: Apr 2005
Location: Lytham UK
Posts: 217
Downloads: 167
Uploads: 0
Default Help with disengage script

Hi,

hope someone can help here.

Is there any way to create a script to change a ai units actions from track to avoid.

Idealy triggered by active sonar detection.

What im trying to create is a sub that leaves the area after receiving a sonar lashing.

thnx
SquidB is offline   Reply With Quote
Old 01-29-06, 03:33 PM   #2
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

you can force the course/speed/depth of the sub once he have received a ping.but you need to chose a specific direction, you can't change the doctrine to "avoid" during the game.

=>

trigger : subavoidping

event/automatic

use doctrine langage :
detect platform1 by sub with active intercept
detect platform2 by sub with active intercept
....
(all the platforms that could afraid the sub during the scenario)

action : run script subdetectactive

script : subdetectactive

set course of sub to 270 for 8000 seconds
set depth of sub to 850f for 8000 seconds
set speed of sub to 12 for 8000 seconds


but for this example, you have to know were your sub could escape.
OKO is offline   Reply With Quote
Old 01-29-06, 04:09 PM   #3
SquidB
Engineer
 
Join Date: Apr 2005
Location: Lytham UK
Posts: 217
Downloads: 167
Uploads: 0
Default

Thanks for the tip oko, its difficult to determine the excact location of the sub when it gets the ping, but with your advice i think i can come up with something useful.

thanks again
SquidB is offline   Reply With Quote
Old 01-29-06, 04:45 PM   #4
Fish
Eternal Patrol
 
Join Date: Sep 2001
Location: Netherlands
Posts: 1,923
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by OKO
you can force the course/speed/depth of the sub once he have received a ping.but you need to chose a specific direction, you can't change the doctrine to "avoid" during the game.

=>

trigger : subavoidping

event/automatic

use doctrine langage :
detect platform1 by sub with active intercept
detect platform2 by sub with active intercept
....
(all the platforms that could afraid the sub during the scenario)

action : run script subdetectactive

script : subdetectactive

set course of sub to 270 for 8000 seconds
set depth of sub to 850f for 8000 seconds
set speed of sub to 12 for 8000 seconds


but for this example, you have to know were your sub could escape.
I think the sub must avoid after receiving a active ping, not giving a active ping.
Fish is offline   Reply With Quote
Old 01-29-06, 06:04 PM   #5
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

Quote:
Originally Posted by Fish
I think the sub must avoid after receiving a active ping, not giving a active ping.
that's exactly the purpose, Fish :P

on this example, the sub flee on ping reception
Anyway I don't know how to force a sub to ping

for your problem, SquidB, if only one platform is supposed to be avoided, using target mode "avoid" on a WPs work nicely.
OKO is offline   Reply With Quote
Old 01-29-06, 06:14 PM   #6
SquidB
Engineer
 
Join Date: Apr 2005
Location: Lytham UK
Posts: 217
Downloads: 167
Uploads: 0
Default

Ok heres excatly what im trying to do.

I have a 688 on a track tactic, once he is detected by the sub he is tracking, it sends an active ping to scare him off.

so i want the 688 to change from tracking to getting out of the area.

I think that your first suggestion was nearest the mark...athough i cant get it to work with the active intercept command.

Am now trying with the detected by the tracking sub on active.
SquidB is offline   Reply With Quote
Old 01-29-06, 06:18 PM   #7
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

objection : it's impossible to force a sub to ping
so you couldn't do this
OKO is offline   Reply With Quote
Old 01-29-06, 06:22 PM   #8
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

but for the your scenario, without active ping emitted from 688i =>

remember before the 688i will try to avoid the other sub ... he have to detect him
so there is no problem at all to use "avoid" target mode
as soon as he will detect him he will avoid, exactly what you want.

except the emission of the active ping
just impossible ... for AI platform of course
OKO is offline   Reply With Quote
Old 01-29-06, 06:41 PM   #9
SquidB
Engineer
 
Join Date: Apr 2005
Location: Lytham UK
Posts: 217
Downloads: 167
Uploads: 0
Default

Lol this is getting complicated.

ok the 688 is tracking an akula. on track tactic. once the akula pings the 688 i want it to disengage. If i chose advoid tactic the 688 wont track the akula (ps the akula is a player sub)

For some reason the 688 wont disengage at all regardless pings...im confused
SquidB is offline   Reply With Quote
Old 01-30-06, 03:33 PM   #10
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

Can't you just put a trigger in that says "If Sub 1 detects Sub 2 then [either] Sub 2 SetTactic Avoid Sub 1 [or] Sub 2 Set Course ### Set Speed ## Duration xHrs" ?

Although all my missions are test scenarios, my impression is that you can usually get the platforms to act the way you want without the exact events happening, if you know exactly what you want to occur. :|\
__________________
LW
LuftWolf is offline   Reply With Quote
Old 01-30-06, 03:55 PM   #11
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

Quote:
Originally Posted by SquidB
once the akula pings the 688
remember you CAN'T manage to make a sub pinging.
so you description is still not clear : who is the human sub, who is the AI sub ?

If you want a solution, you must give us more details.
OKO is offline   Reply With Quote
Old 01-30-06, 03:58 PM   #12
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

Quote:
Originally Posted by LuftWolf
Sub 2 SetTactic Avoid Sub 1
unfortunatly, this is not possible on a trigger or a script
only with target mode on a WP.
OKO is offline   Reply With Quote
Old 02-01-06, 08:24 AM   #13
Fish
Eternal Patrol
 
Join Date: Sep 2001
Location: Netherlands
Posts: 1,923
Downloads: 0
Uploads: 0
Default Re: Help with disengage script

Quote:
Originally Posted by SquidB
Hi,

hope someone can help here.

Is there any way to create a script to change a ai units actions from track to avoid.

Idealy triggered by active sonar detection.

What im trying to create is a sub that leaves the area after receiving a sonar lashing.

thnx
I found a workable solution, not precisely what you want, but you can go on from there.
One ship is pinging the other, the other ship (supposed to track the first), is reversing course at ones.
The ping is not a elegant one, and not visible on the TBI though. Maybe you could do a better ping.
Fish is offline   Reply With Quote
Old 02-01-06, 11:01 AM   #14
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default Re: Help with disengage script

Quote:
Originally Posted by Fish
... One ship is pinging the other
how do you do that with AI subs ??
that is the main problem in what SquidB want to do.
OKO is offline   Reply With Quote
Old 02-01-06, 11:03 AM   #15
Fish
Eternal Patrol
 
Join Date: Sep 2001
Location: Netherlands
Posts: 1,923
Downloads: 0
Uploads: 0
Default

Ehhh...
Fish is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:51 AM.


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.