Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: NGTM-1R on July 29, 2005, 10:11:49 pm
-
I seem to have a spontantously corrupted mission. I've looked it over in notepad and can't figure out what the parser is on about...perhaps somebody here can.
Error: C:\FS2_Open\data\missions\Come As You Are.fs2(1632):
Error: Required token = [+Name:], found [$MessageNew: XSTR("", -1)] .
File:C:\projects\fs2_open\code\Parse\PARSELO.CPP
Line: 502
Call stack:
------------------------------------------------------------------
fred2_open_r_03202005.exe 004f1af4()
fred2_open_r_03202005.exe 0049934e()
fred2_open_r_03202005.exe 004994f6()
fred2_open_r_03202005.exe 0049a60d()
fred2_open_r_03202005.exe 0049b299()
fred2_open_r_03202005.exe 0041e0ef()
fred2_open_r_03202005.exe 0041da9f()
MFC42.DLL 73ddf57b()
MFC42.DLL 73de13cf()
------------------------------------------------------------------
The mission in question. (http://www.geocities.com/ngtm1r/ComeAsYouAre.zip)
-
Found it. The required token is in your second Primary mission goal.
#Goals ;! 2 total
$Type: Primary
+Name: Patrol
$MessageNew: XSTR("Patrol", -1)
$end_multi_text
$Formula: ( and
( not
( is-destroyed-delay
0
"Athens Station"
)
)
( and
( has-departed-delay 0 "Hedjet" )
( has-departed-delay 0 "Ibu" )
)
)
$Type: Primary
+Name: XXXXX
$MessageNew: XSTR("", -1)
$end_multi_text
$Formula: ( and
( not
( is-destroyed-delay 0 "Syracuse" )
)
( and
( has-departed-delay 0 "Ibu" )
( has-departed-delay 0 "Mecross" )
)
)
I put the +Name: XXXXX where your data is missing from in the above quote.
Later!
-
Nice work TP. I though I was going to have to wake a up a little more and do it myself :)
-
I just had to look through areas where it needed "+Name:" instead of "$Name:" like most were. Then, among those, look for those that would be followed by "$MessageNew:", which narrowed it down to "goals". After that, it was easy.
-
Yeah. Although they seem a little cryptic to most I find that kind of error one of the best.
If you know what you're doing you can find the cause of your problem pretty quickly. :)