Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Flexion on February 26, 2008, 04:26:18 pm

Title: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 04:26:18 pm
I was making an event, but I wrote something wrong. So FRED2 closed. And I can't open my file. This pops out:

Error: C:\FreeSpace2\data\Missions\Shipyard.fs2(line 1028:
Error: Required token = [#Goals] or [$Formula:], found [)] .

File: PARSELO.CPP
Line: 667


Call stack:
------------------------------------------------------------------
    fred2_open_3_6_10_debug-20071007T.exe 00510967()
    fred2_open_3_6_10_debug-20071007T.exe 004f6af4()
    fred2_open_3_6_10_debug-20071007T.exe 004f82ec()
    fred2_open_3_6_10_debug-20071007T.exe 004f91c6()
    fred2_open_3_6_10_debug-20071007T.exe 004334e4()
    fred2_open_3_6_10_debug-20071007T.exe 004329c8()
    fred2_open_3_6_10_debug-20071007T.exe 00978e76()
    fred2_open_3_6_10_debug-20071007T.exe 0097f115()
    fred2_open_3_6_10_debug-20071007T.exe 0098b0f5()
    fred2_open_3_6_10_debug-20071007T.exe 00997419()
    fred2_open_3_6_10_debug-20071007T.exe 0098ae52()
    fred2_open_3_6_10_debug-20071007T.exe 00961564()
    fred2_open_3_6_10_debug-20071007T.exe 00961c91()
    fred2_open_3_6_10_debug-20071007T.exe 009a2fb7()
    fred2_open_3_6_10_debug-20071007T.exe 0095cfbb()
------------------------------------------------------------------

can someone help?

BTW I was doign the Walkthrough. ^^
Title: Re: Help ... I'm Confused
Post by: karajorma on February 26, 2008, 05:00:21 pm
Seems like you have an extra bracket somewhere. This is the sort of problem that's very easy to fix if you have a good text editor. If you have one that does line numbers simply load the mission into it (All FS2 Missions and tables are text files) scroll to line 1028 and remove the extra bracket. Should work fine then.

If you don't post it and I'll fix it for you. In fact post it either way. You shouldn't be able to crash FRED just cause you did something wrong so whatever causes this problem ought to be fixed.
Title: Re: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 05:05:36 pm
kk here you go ...



[attachment deleted by ninja]
Title: Re: Help ... I'm Confused
Post by: Polpolion on February 26, 2008, 05:16:37 pm
I removed the bracket for you, but that honestly didn't look like it was the problem.

[attachment deleted by ninja]
Title: Re: Help ... I'm Confused
Post by: karajorma on February 26, 2008, 05:18:15 pm
Yeah. The mission actually looks fine to me. Going to check more in depth.
Title: Re: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 05:21:20 pm
ok ... thnx. It happened when I added the SEXP Modify-Variable.
Title: Re: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 05:36:35 pm
OH great ... now I can't even open FRED2 ...

I keep clicking it but I don't work.

"fred2_open_3_6_10-20071007T.exe"
Title: Re: Help ... I'm Confused
Post by: karajorma on February 26, 2008, 05:38:00 pm
I see the problem now, its obvious once you remove the bracket and allow FRED to actually load the mission even with errors. You haven't picked a variable for this SEXP

modify-variable
-DockCount[0]
-- +
---DockCount[0]
---1

You've TYPED IN the name of a variable and you've used curly brackets instead of square ones. You can easily avoid this kind of error if you press the right mouse button on the SEXPs and use the pop up menu instead of typing.

Anyway I'm attaching a fixed version.

 

[attachment deleted by ninja]
Title: Re: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 05:42:02 pm
Ok thnx! ... as for FRED? How can I open it again?
Title: Re: Help ... I'm Confused
Post by: Colonol Dekker on February 26, 2008, 05:42:51 pm
All hail Karajorma! Variables both amaze and confuse me, i'll have to reiterate some lost knowledge to myself by looking through some old missions :)
Title: Re: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 05:44:33 pm
lol ...  :P
Title: Re: Help ... I'm Confused
Post by: karajorma on February 26, 2008, 05:51:30 pm
Most likely a simple computer restart will fix whatever is ailing it.
Title: Re: Help ... I'm Confused
Post by: Flexion on February 26, 2008, 05:58:50 pm
oky dokey ... thnx!  :D