Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: CrazyToast012 on March 26, 2010, 05:04:34 am

Title: Campaign editor noob needs help.
Post by: CrazyToast012 on March 26, 2010, 05:04:34 am
Okay, I've been working on some missions and have been trying to link them into a campaign (which I've not quite yet mastered) It seems I hit a weird error,

Mission "Mission01" Last branch isn't set to true  


This is what I have in the "branches"
--------------------------------------------
- Branches to Mission02.fs2
    + Is-Previous-Goal-True
        + Mission01.fs2
        + Objective 1

-Repeat Mission
   + Is-Previous-Goal-False
       +Mission01.fs2
       +Objective 1
------------------------------------------

Of course it looks the same for all the rest of the mission links, Is there something I am missing, maybe something in the missions themselves?  And is there some sort of Campaign editing help document or something like that lying around somewhere?  
Title: Re: Campaign editor noob needs help.
Post by: karajorma on March 26, 2010, 07:08:50 am
They pretty much tell you what to do in the error. The last entry in the list should always be true.

- Branches to Mission02.fs2
    + Is-Previous-Goal-True
        + Mission01.fs2
        + Objective 1

-Repeat Mission
  + True


The reason for this is simple. Although in your case the mission goal has to be either true or false if you aren't careful it's possible to end up with a situation where all entries evaluate to false and FS2 doesn't know what to do next. For this reason there is a warning if the last entry isn't set to true.
Title: Re: Campaign editor noob needs help.
Post by: CrazyToast012 on March 26, 2010, 07:13:41 am
Hot damn! Thank you

Edit:
I've been messing around with FRED for almost 10 years now and still things tend to fly over my head.
Title: Re: Campaign editor noob needs help.
Post by: karajorma on March 26, 2010, 01:18:49 pm
Well to be honest FS2 itself really doesn't care (in fact two of the retail campaign missions also trigger this warning) but it is generally a good idea to avoid error message whenever you can. :D