Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Adi on August 17, 2012, 01:09:03 pm

Title: Mission objectives struggle... and some more questions.
Post by: Adi on August 17, 2012, 01:09:03 pm
Hi!

I was working on my first FRED mission in few years and I forgot a lot.
Overall plot is that you're on a mission to take down fighter escort of two NTF Aeolus class cruisers (10 Hercules fighters) in order to make room for 3 Erinyes to jump in and disable the cruisers. When they are disabled we have two transport ships coming in to dock to cruisers and board them. Until this moment all is fine except for the Erinyes orders to disable cruisers. They're equipped with correct weapons. But during the mission when I select one of them they have status "No orders"   :banghead: I tried few different ways to make it work: initial orders  :no:, event editor with add ai_goal  :no:
But mostly I'm struggling with mission objectives.
I've got three:
1. Destroy Fighter Escort (this one works fine)
2. Escort Boarding Ships (this one works well)
3. Capture the cruisers (doesn't work - doesn't even show in objectives)

So if someone could just in few sentences remind me how to make mission objectives, step by step, I'd be grateful  :cool:
Title: Re: Mission objectives struggle... and some more questions.
Post by: Scourge of Ages on August 17, 2012, 01:18:19 pm
I have a few questions:
The 3 Erinyes, what priority does the disable target order have? Do they actually carry out their orders, just it looks like they don't?
What sort of trigger are you using for the Capture the cruisers objective?
Title: Re: Mission objectives struggle... and some more questions.
Post by: Adi on August 17, 2012, 01:44:16 pm
I have a few questions:
The 3 Erinyes, what priority does the disable target order have? Do they actually carry out their orders, just it looks like they don't?
What sort of trigger are you using for the Capture the cruisers objective?
Order has top priority (89), and in the left bottom corner where you can see the targeted ship you also have it's current order listed. So they have "No order".
Regarding the capturing of the cruisers, I switch their iff status (after their engine is destroyed) for friendly. And capture completed should be when transport ships (or boarding ships) dock to the ship they're supposed to. I hope it's clear :P
Title: Re: Mission objectives struggle... and some more questions.
Post by: Scourge of Ages on August 17, 2012, 02:41:21 pm
Do the Erinyes' actually do the disabling thing though? If your first post, you made it sound like they disabled the Aeoluses, but just didn't say they were doing it.

Regarding the capture: Do you have two separate events, one for each Aeolus? Something like:
Code: [Select]
when
  has-docked-delay
     GTT Elysium 1
     GTC Aeolus 1
     1
     0
  change-iff
    Friendly
    GTC Aeolus 1
And assign a directive to that? Or do you have a separate event just for the directive?
Title: Re: Mission objectives struggle... and some more questions.
Post by: Adi on August 17, 2012, 03:02:46 pm
Do the Erinyes' actually do the disabling thing though? If your first post, you made it sound like they disabled the Aeoluses, but just didn't say they were doing it.
Uhm, no. I had to disable them by myself. Erinyes are  doing nothing  :banghead:

Regarding the capture: Do you have two separate events, one for each Aeolus? Something like:
Code: [Select]
when
  has-docked-delay
     GTT Elysium 1
     GTC Aeolus 1
     1
     0
  change-iff
    Friendly
    GTC Aeolus 1
And assign a directive to that? Or do you have a separate event just for the directive?

Yes, I have two separate events but with different directive. Which is "Guard Elysium 1 and 2". For capture i have a different one. When I get back home I'll post entire code line and order list.
Title: Re: Mission objectives struggle... and some more questions.
Post by: Scourge of Ages on August 17, 2012, 04:18:13 pm
For the disable orders thing, I have no idea what the deal is. I made a mock-up mission, and it works fine.

For the other thing, I think I confused myself. Are you speaking of Mission Objectives, or directives? I've been talking about directives, but you said objectives at first.

Posting the whole mission, or at least what you're comfortable with posting and strip the rest out, would definitely help solve both problems.
Title: Re: Mission objectives struggle... and some more questions.
Post by: karajorma on August 17, 2012, 08:19:07 pm
If he is indeed talking about Directives instead of Objectives, I suspect I know what's going on even before he posts it.

It's our old friend is-event-true-delay in Directives (http://www.fs2downloads.com/diaspora_freddocs/troubleshooting.html) again. Check the selection on Directives appearing too late for an explanation of what might be going on.
Title: Re: Mission objectives struggle... and some more questions.
Post by: Adi on August 18, 2012, 04:20:00 am
Posting the whole mission, or at least what you're comfortable with posting and strip the rest out, would definitely help solve both problems.

Well, it's not a-big-misterious-mission, so here it is :)
To be honest, I can't remember at all how in the hell one makes mission objectives...  :rolleyes:

[attachment removed and sold on the black market]
Title: Re: Mission objectives struggle... and some more questions.
Post by: Legate Damar on August 18, 2012, 04:49:37 am
Editors -> mission objectives
Title: Re: Mission objectives struggle... and some more questions.
Post by: Adi on August 18, 2012, 04:54:44 am
Editors -> mission objectives
:ick:
This one I know :) I don't remember the rules of creating them. Can someone upload to FRED2 tutorial that was in retail FS2 edition? I don't have this one.
Title: Re: Mission objectives struggle... and some more questions.
Post by: karajorma on August 18, 2012, 05:22:34 am
Why the hell have you marked all your goals invalid and then only validate them once they come true? I'm assuming you've confused an invalid goal and an unachieved one. My FAQ has info on the FRED page on how to use invalid goal correctly (http://homepage.ntlworld.com/karajorma/FAQ/fredretail.html#events).

I keep pimping this version (http://www.fs2downloads.com/diaspora_freddocs/index.html) of the FREDdocs as they're much more up to date than the standard ones (also available via my FAQ). I'd advise looking at both.
Title: Re: Mission objectives struggle... and some more questions.
Post by: Legate Damar on August 18, 2012, 05:23:40 am
Just use a sexp that becomes true when the objective is satisfied.

For example if your objective is. "destroy whatever" you use is destroyed delay -> whatever and it returns true when whatever is destroyed
Title: Re: Mission objectives struggle... and some more questions.
Post by: Adi on August 18, 2012, 07:56:55 am
Why the hell have you marked all your goals invalid and then only validate them once they come true? I'm assuming you've confused an invalid goal and an unachieved one.

I keep pimping this version (http://www.fs2downloads.com/diaspora_freddocs/index.html) of the FREDdocs as they're much more up to date than the standard ones (also available via my FAQ). I'd advise looking at both.

That's why I said at the beginning, I don't remember how you create those objectives in a proper way. Okay, I'll look at those docs. Thanks anyway.
Title: Re: Mission objectives struggle... and some more questions.
Post by: karajorma on August 18, 2012, 08:17:06 am
Basically it's what Damar said. I just explained the less used features. :)
Title: Re: Mission objectives struggle... and some more questions.
Post by: Adi on August 18, 2012, 08:24:57 am
Thanks  :nod: