Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: karajorma on September 12, 2004, 05:14:47 am
-
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).
#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.
#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.
-
I used C06152004. All other versions give me even worse results.
-
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
-
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.
-
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.
-
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 )
-
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.
-
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:
-
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.