Author Topic: Mission Corruption in FRED (A possible culprit)  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Mission Corruption in FRED (A possible culprit)
Singh was writing a mission for the FRED Academy which recently corrupted itself on saving (It took out his .bak too so it obviously saved incorrectly at least twice).

Seeing as how he's a fellow MG team member as well as going through the Academy I went the extra mile and checked it against an earlier version of the mission to see if I could spot what caused the error.

On looking through the mission I found that the debriefing stage on one mission looked like this (I've trimmed out the actual debriefing text).

Code: [Select]
#Debriefing_info

$Num stages: 2

$Formula: ( is-goal-true-delay
   "protect fleet"
   0
)
$Multi text
    XSTR("Some Text Was Here.", -1) $end_multi_text
$Voice: none.wav
$Recommendation text:
    XSTR("", -1)
$end_multi_text

$Formula: ( is-goal-false-delay
   "protect fleet"
   0
)
$Multi text


When I change that code to the following the mission started working again.

Code: [Select]
#Debriefing_info

$Num stages: 2

$Formula: ( is-goal-true-delay
   "protect fleet"
   0
)
$Multi text
    XSTR("Some Text Was Here.", -1)


 $end_multi_text
$Voice: none.wav
$Recommendation text:
    XSTR("", -1)
$end_multi_text

$Formula: ( is-goal-false-delay
   "protect fleet"
   0
)
$Multi text


Are the line breaks before the $end_multi_text really that important? If so would it be possible to find out why FRED didn't include them when it corrupted the mission?

Hmmm. I suppose I should ask Singh which version of FRED he's using. I don't think it was the most modern one.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Singh

  • Hasn't Accomplished Anything Special Or Notable
  • 211
  • Degrees of guilt.
Mission Corruption in FRED (A possible culprit)
I used C06152004. All other versions give me even worse results.
"Blessed be the FREDder that knows his sexps."
"Cursed be the FREDder that trusts FRED2_Open."
Dreamed of much, accomplished little. :(

 

Offline magatsu1

  • 210
Mission Corruption in FRED (A possible culprit)
that's the only version I've found to be useable myself.

When does it crash karajorma ? I played it (after deleting that sun) and it appeared okay
Blitzerland: Knows what he's talkin' about

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Mission Corruption in FRED (A possible culprit)
The version now posted by Singh works. As does the old one you tried. If you want to see the broken version have a look at the .bak file I asked Singh to post.

It basically won't open in FRED2_open. I've not tried it in FS2_Open but Singh reported that it didn't work.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline magatsu1

  • 210
Mission Corruption in FRED (A possible culprit)
Worked fine for me but it appears Singh and I are using the same FRED. Now that you mention it, I've found opening any mission in any FRED other than it's native version is hit and miss.
Blitzerland: Knows what he's talkin' about

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Mission Corruption in FRED (A possible culprit)
That's pretty odd. The bak didn't work for me or Singh (and he's obviously using the same version as it was created in :D )
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Singh

  • Hasn't Accomplished Anything Special Or Notable
  • 211
  • Degrees of guilt.
Mission Corruption in FRED (A possible culprit)
I can confirm that. The backup and original did not work in either FRED or FS2_Open. It simply refused to open, several others can verify this as well.
"Blessed be the FREDder that knows his sexps."
"Cursed be the FREDder that trusts FRED2_Open."
Dreamed of much, accomplished little. :(

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Mission Corruption in FRED (A possible culprit)
There's supposed to be at least one line break.  Not sure why FRED didn't save the line break in the first place... it's a straightforward operation. :confused:

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Mission Corruption in FRED (A possible culprit)
I would have thought so too. I think I've got another mission lying about belonging to CannonFodder that got corrupted. I'll check if it died the same way.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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