Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: SF-Junky on March 30, 2008, 08:40:21 am

Title: Error: Argument count is illegal
Post by: SF-Junky on March 30, 2008, 08:40:21 am
All the missions of my new campaign worked fine until I put them together in the campaign file. No I always get this, when I start a mission:

Quote
Error: Argument count is illegal.

In sexpression: ( cond )
(Error appears to be: cond)
File: MissionParse.cpp
Line: 5836


Call stack:
------------------------------------------------------------------
------------------------------------------------------------------

In an older (very old) threat I read something about sexp limits. Could that be a problem? But Derelict surely uses more sexps than my new camp. I'm using "fred2_open_3_6_10-20071028T.exe" and "fs2_open_3_6_10-20071028T.exe".
Title: Re: Error: Argument count is illegal
Post by: FUBAR-BDHR on March 30, 2008, 11:33:50 am
Do they work by themselves if your remove the .fc2 file?
Title: Re: Error: Argument count is illegal
Post by: SF-Junky on March 30, 2008, 12:38:12 pm
yes.
Title: Re: Error: Argument count is illegal
Post by: karajorma on March 30, 2008, 02:03:56 pm
Can you post the campaign file then? Or PM a link to me.
Title: Re: Error: Argument count is illegal
Post by: karajorma on March 30, 2008, 03:23:13 pm
The final mission appears to be marked as a mission loop. The result is you have this

+Formula: (Cond
)

At the end of the file. There are no conditions there as you can see. Either simply remove those lines or turn it off from the Campaign editor.
Title: Re: Error: Argument count is illegal
Post by: SF-Junky on March 31, 2008, 12:29:09 pm
Ah, now it works. Many thanks. :)