Author Topic: Campaign editor problems  (Read 1415 times)

0 Members and 1 Guest are viewing this topic.

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Campaign editor problems
Hello,

Lately, in recently-made campaigns using the FRED2 Open campaign editor, there's a persistent error in which players can't advanced even after completing a mission, it says they've failed the mission and can't proceed.

Are there any ways to solve this?
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Campaign editor problems
Are the failure and win conditions set up correctly?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Re: Campaign editor problems
Yes. The failure and win conditions set up correctly in the branch SEXP conditions.

I used the Campaign Editor to create after creating two missions. After I saved the campaign with two linked missions (with the first branch set to the is-previous-event-true SEXP set to the only event), the warning message appeared: "Mission "test1.fs2" last branch isn't set to true."

Code: [Select]
$Name: Unnamed
$Type: single
$Flags: 0


+Starting Ships: ()

+Starting Weapons: ()


$Mission: test1.fs2
+Flags: 0
+Main Hall:
+Formula: ( cond
   (
      ( is-previous-event-true
         "test1.fs2"
         "Event name"
      )
      ( next-mission "test2.fs2" )
   )
)

+Level: 0
+Position: 0

$Mission: test2.fs2
+Flags: 0
+Main Hall:

+Level: 1
+Position: 0

#End
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Campaign editor problems
It's literally telling you the problem. The last branch has to always be set to true because FS2 should never encounter a situation where it doesn't know what to do if the earlier conditions are not met.

The most common way to solve this problem is to do what you have done so far and then add another option when true repeat mission. i.e if you don't make that event come true you've failed the mission and have to replay it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Re: Campaign editor problems
It's literally telling you the problem. The last branch has to always be set to true because FS2 should never encounter a situation where it doesn't know what to do if the earlier conditions are not met.

The most common way to solve this problem is to do what you have done so far and then add another option when true repeat mission. i.e if you don't make that event come true you've failed the mission and have to replay it.
But how? Show me the steps
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Campaign editor problems
Code: [Select]
+Level: 1
+Position: 2

$Mission: Training-3.fs2
+Flags: 0
+Formula: ( cond
   (
      ( is-previous-goal-true
         "Training-3.fs2"
         "Complete Training 3"
      )
      ( next-mission "SM1-01.fs2" )
   )
   ( ( true ) ( next-mission "Training-3.fs2" ) )
)


That's what you want. Notice that the mission loops back to the same training mission if not completed.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Re: Campaign editor problems
That's why the Campaign Editor doesn't add "( ( true ) ( next-mission "test1.fs2" ) )" before the ) at the end of +Formula: in the .fc2 file in the first place. How does it do that? Or it's just a problem?

I think I get it. The Campaign Editor uses Add Repeat Link to solve this problem.
« Last Edit: June 26, 2017, 09:27:24 am by Bryan See »
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...