Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Help with disengage script
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DW Mission Designers' Forum
View previous topic :: View next topic  
Author Message
SquidB



Joined: 07 Apr 2005
Posts: 197
Location: Lytham UK

PostPosted: Sun Jan 29, 2006 3:15 pm    Post subject: Help with disengage script Reply with quote

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
Back to top
View user's profile Send private message
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Sun Jan 29, 2006 3:33 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
SquidB



Joined: 07 Apr 2005
Posts: 197
Location: Lytham UK

PostPosted: Sun Jan 29, 2006 4:09 pm    Post subject: Reply with quote

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 Thumbs Up
Back to top
View user's profile Send private message
Fish



Joined: 21 Sep 2001
Posts: 2412
Location: Netherlands

PostPosted: Sun Jan 29, 2006 4:45 pm    Post subject: Reply with quote

OKO wrote:
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.
Back to top
View user's profile Send private message Visit poster's website
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Sun Jan 29, 2006 6:04 pm    Post subject: Reply with quote

Fish wrote:

I think the sub must avoid after receiving a active ping, not giving a active ping.


that's exactly the purpose, Fish Razz

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

for your problem, SquidB, if only one platform is supposed to be avoided, using target mode "avoid" on a WPs work nicely.
Back to top
View user's profile Send private message Visit poster's website
SquidB



Joined: 07 Apr 2005
Posts: 197
Location: Lytham UK

PostPosted: Sun Jan 29, 2006 6:14 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Sun Jan 29, 2006 6:18 pm    Post subject: Reply with quote

objection : it's impossible to force a sub to ping Crying or Very sad
so you couldn't do this
Back to top
View user's profile Send private message Visit poster's website
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Sun Jan 29, 2006 6:22 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
SquidB



Joined: 07 Apr 2005
Posts: 197
Location: Lytham UK

PostPosted: Sun Jan 29, 2006 6:41 pm    Post subject: Reply with quote

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 :doh:
Back to top
View user's profile Send private message
LuftWolf



Joined: 09 May 2005
Posts: 1872
Location: Free New York

PostPosted: Mon Jan 30, 2006 3:33 pm    Post subject: Reply with quote

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. Neutral\
Back to top
View user's profile Send private message Visit poster's website AIM Address
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Mon Jan 30, 2006 3:55 pm    Post subject: Reply with quote

SquidB wrote:
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.
Back to top
View user's profile Send private message Visit poster's website
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Mon Jan 30, 2006 3:58 pm    Post subject: Reply with quote

LuftWolf wrote:
Sub 2 SetTactic Avoid Sub 1


unfortunatly, this is not possible on a trigger or a script :shifty:
only with target mode on a WP.
Back to top
View user's profile Send private message Visit poster's website
Fish



Joined: 21 Sep 2001
Posts: 2412
Location: Netherlands

PostPosted: Wed Feb 01, 2006 8:24 am    Post subject: Re: Help with disengage script Reply with quote

SquidB wrote:
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. Smile
Back to top
View user's profile Send private message Visit poster's website
OKO



Joined: 10 Jan 2002
Posts: 468
Location: Solar system, mainly on earth

PostPosted: Wed Feb 01, 2006 11:01 am    Post subject: Re: Help with disengage script Reply with quote

Fish wrote:

... 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.
Back to top
View user's profile Send private message Visit poster's website
Fish



Joined: 21 Sep 2001
Posts: 2412
Location: Netherlands

PostPosted: Wed Feb 01, 2006 11:03 am    Post subject: Reply with quote

Ehhh... Cool
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DW Mission Designers' Forum All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group