| Author |
Help with mission editing? |
Martin
Joined: Feb 28, 2002 Posts: 76 From: Scotland
| Posted: 2002-03-04 06:53  
Hi.
I tried my hand at mission editing this
weekend, and got maybe a half of my first
mission complete, but I have a couple of
questions I was hoping someone could help
with:
(1) Attached approach goals?
I created a test mission with 3 objects.
The first object is ownship. The second
object is a sub with an attached approach
goal which reports "approach", and creates
a dynamic group. The third object is a sub
with an attched approach goal which reports
"approach 2". The third object was put into
a dynamic group with a probability of
inclusion of zero.
When I run the mission, the first sub is
there. I approach it, and the approach
goal triggers. The report "approach"
appears and the second sub is created.
However when I apporach the second sub,
its attached approach goal does not
trigger.
Is there any way to get the behaviour I
need, where an approach to an object which
was dynamically created and not present at
mission start can trigger a goal?
For now, I am making an exception of the
platforms which need approach goals, just
starting them from further out so that
by the time the other objects in the
dynamic group have been created, the
platform is in the right place in the
scenario.
(2) Deleting objects
I wanted to create sets of combatants for
each "phase" of the mission, and after
satisfying a phase, a goal would create a
new dynamic group of combatants.
This works well (except for the issue of
approach goals above).
However to keep the sim running nice and
fast, it would be nice to be able to delete
the platforms created in the previous
phase (which have usually just reached the
end of ther programmed waypoints and
crashed into a distant land mass).
I have tried adding attached destination
goals to the objects, with "Delete attached
oject" set, but changing the goal precedence
so that the attached delete goal cannot be
satisfied until another goal has been
satisfied.
However when the other goal is satisfied
the attached goal does not kick in (maybe
because it needs an overt action to
trigger it again).
Has anyone got any techniques for deleting
all the platforms created earlier in a
mission, once that phase of the mission
is complete?
The obvious answer I can think of is to
create separate single missions in the same
map region for each "phase", so that the
number of platforms being simulated does
not become excessive.
Thanks,
Martin.
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-03-04 07:25  
Hi Martin
Wow.....reading thru your post has given me a headache. Difficult to try and follow. I realise you know what you mean....but trying to get it across correctly is another story.
If I understand you correctly, what you need to ensure for your first point is that:-
All goals tied to dynamic groups must be in the group as well. So, not only are the objects in there...but any goals pertinent to them as well.
Second point....just be wary of goal precedence....it sort of works in reverse.
That is....a Child goal must be satisfied before a Parent Goal can be achieved. Quite a number of people seem to have a problem or get confused by/with this.
As I said...(maybe I'm having a bad day), but I couldn't quite follow completely. If you like...you could send the mission to me, and I could take a look see. Once I see what you are trying to accomplish, I would be in a far better position to help.
If not, and I know it's difficult, try and focus on one problem first...then we could look at the other.
Sorry.....maybe I need to come off my medication.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
Martin
Joined: Feb 28, 2002 Posts: 76 From: Scotland
| Posted: 2002-03-04 11:26  
Hi,
Clarification attempted
Okay, let me break down the first issue,
I will describe the mission I have set up,
the result I expected, and the actual result
I see.
I have 3 objects in my test mission.
The first object is own ship, with a transit
tactic to the west.
The second object is a sub, 2nm to the west
of own ship, with a transit tactic to the
east.
The third object is a sub, 2nm to the west
of the second object, with a transit tactic
to the east.
The third object was added to a dynamic group
named "test" with a probability of inclusion
of zero.
An attached goal of type approach was added
to the second object with a radius of 0.2nm
and with a rule to create dynamic group
"test". This goal was set to
report "approach".
An attached goal of type approach was added
to the third object with a radius of 0.2nm.
This goal was set to report "approach 2".
What I expected to happen:
I expected that own ship would travel
towards object 2 (a sub) then when it
got to within 0.2nm, the approach goal
would trigger, causing the word "approach"
to appear on the orders screen, and
object 3 (the other sub) to be
created.
Then own ship would approach within
0.2nm of object 3 (the sub just created)
triggering its approach goal and the
words "approach 2" would appear
on the orders screen.
What actually happened:
Own ship travelled towards object 2 (the
first sub). When it got to within 0.2nm
the word "approach" appeared and the
third object (the second sub) was created.
So far, as expected...
Own ship travelled towards object 3 (the
second sub newly created). It passed
directly underneath the sub, and the words
"approach 2" never appeared.
Thus, the approach goal attached to the
sub did not trigger.
Removing the sub from the dynamic group
so that both objects 2 & 3 exist at the
start of the mission, both approach goals
trigger fine.
So, I conclude that the reason the approach
goal on the third object failed to trigger
was due to the fact that this sub was
dynamically created and did not exist at
the beginning of the mission.
Now, I am wondering what I can do which
will have this behaviour.
The only solution I have yet found is to
start the platform which needs the approach
goal at the beginning of the mission and
start it further out, so that it takes
longer to transit and therfore does not
appear until later in the mission.
Martin.
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-03-04 12:33  
Hi Martin
Like I indicated in my first reply to you. The goal for the 2nd Sub must be in the Dynamic group with the Sub.
So, although you only have 1 Sub in the group, you will have 2 objects....i.e. the Sub and the Approach goal (message).
Put the goal in with the sub....and it will work.
Let me know.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
Monophonic
Joined: Feb 28, 2002 Posts: 279 From: Espoo, Finland
| Posted: 2002-03-04 12:36  
Goals attached to objects (like ships and subs) are not automatically created at the beginning of the mission if the ships they're attached to are not created at that time either.
You must place the goal "approach 2" in the same dynamic group with the third submarine (to which that goal is attached to). That way the game engine introduces that goal into play at the same time the sub appears. If it isn't in the dynamic group, it won't get created either and cannot be completed.
 
|
Martin
Joined: Feb 28, 2002 Posts: 76 From: Scotland
| Posted: 2002-03-04 13:15  
Hi, Tom.
I didn't read your reply carefully
enough! Put the goal into the dynamic
group. Got it! I'll give it a try
when I get back to the mission.
Thanks muchly!
Martin.
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-03-04 13:29  
Hi Martin
Great stuff. When you're ready, we'll tackle the second issue.
Give me a shout.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
Martin
Joined: Feb 28, 2002 Posts: 76 From: Scotland
| Posted: 2002-03-04 18:39  
Hi, Tom.
That advice worked a treat. With the
approach goal in the dynamic group it
worked okay.
So I must add this to my little black
book. Makes notes, ":-xIf you add an
airport to a dynamic group, the
editor automatically adds all aircraft
based at that airport, but when you add
an object with attached goals, it does not
add the attached goals automatically, so
don't forget to do that yourself. "
So have you any ideas about my other issue?
I would like to be able to delete a number
of objects when I trigger a destination
goal (eg. advise player to come to point
x, place destination goal there with radius
which deletes a bunch of objects which
have already been used).
Martin.
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-03-04 21:45  
Hi Martin
Just to correct some of your thinking there. Airports/Airbases will NOT automatically assign all aircraft based there. You have to assign them manually.
Aircraft Carriers will provide that. Surface Ships with Helos will also. Airports NOT.
Whilst we're on the subject of Aircraft etc.
If you are not yet aware, the function 'Aircraft with Launch Time' is NOT working in Version 1.05 of the game. Do not use it...use 'In Flight' aircraft. If you want an Aircraft only to appear at a certain time then use an 'Automatic (Time) Goal' to accomplish this.
I'll go read thru your 2nd problem again.
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
Martin
Joined: Feb 28, 2002 Posts: 76 From: Scotland
| Posted: 2002-03-05 09:17  
Hi.
Okay, I'll take care with aircraft
as well! But I was aware of the
aircraft with launch time issue,
thanks for the reminder.
Martin.
 
|
|