Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Renegade Paladin on April 26, 2008, 08:15:59 am
-
Okay, this is the weirdest thing. I was doing the FRED walkthrough mission, and just added the events to cause Sleipner wing to dock with the Relentless, and when I saved, it gave me a whole bunch of errors, said that the variable DockCount(0) 1 wasn't a number, crashed FRED, crashed FS2 when I ran the mission in there to see what was going on, and now just tells me that the mission cannot be opened.
I tried editing it with Notepad++ to remove what I assume are the offending events, but it still refuses to open the mission. I've spent five hours on this, and the last thing I want to do is start over. Help?
Error: Shipyard Raid.fs2(line 40:
Error: Reading sexp variable list. Found [#]. Expecting '('.
File:J:\src\cvs\fs2_open_3_6_9.final\code\Parse\PARSELO.CPP
Line: 659
[This filename points to the location of a file on the computer that built this executable]
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Edit: This is odd. It opens just fine in the debug build. :confused:
Edit2: Assert: sexp_variable_index != -1
File: J:\src\cvs\fs2_open_3_6_9.final\code\Parse\SEXP.CPP
Line: 18458
[This filename points to the location of a file on the computer that built this executable]
Call stack:
------------------------------------------------------------------
fred2_open_3_6_9_debug.exe 004b0fa9()
fred2_open_3_6_9_debug.exe 004b0f6a()
fred2_open_3_6_9_debug.exe 004f5d49()
fred2_open_3_6_9_debug.exe 004f5726()
fred2_open_3_6_9_debug.exe 004f65a8()
fred2_open_3_6_9_debug.exe 00433424()
fred2_open_3_6_9_debug.exe 00432908()
fred2_open_3_6_9_debug.exe 009d6e16()
fred2_open_3_6_9_debug.exe 009dd0b5()
fred2_open_3_6_9_debug.exe 009e9095()
fred2_open_3_6_9_debug.exe 009f53b9()
fred2_open_3_6_9_debug.exe 009e8df2()
fred2_open_3_6_9_debug.exe 009bf504()
fred2_open_3_6_9_debug.exe 009bfc31()
fred2_open_3_6_9_debug.exe 00a00f57()
------------------------------------------------------------------
Got that when I tried to put the Sleipner docking events back in.
-
I think I've located the problem.
(http://img.photobucket.com/albums/v350/RenegadePaladin/sleipner-1-done.gif)
This is wrong. Under op +, "DockCount(0)" is an illegal entry for the field; it must be a number. Error: Argument count is illegal.
In sexpression: ( when
( has-docked-delay
"Sleipner 1"
"GTD Relentless"
1
10
)
( transfer-cargo
"Sleipner 1"
"GTD Relentless"
)
( add-goal
"Sleipner 1"
( ai-undock 70 )
)
( add-goal
"Sleipner 1"
( ai-warp-out 60 )
)
( modify-variable [] )
)
(Error appears to be: modify-variable)
File:J:\src\cvs\fs2_open_3_6_9.final\code\Mission\MissionParse.cpp
Line: 5798
[This filename points to the location of a file on the computer that built this executable]
Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
-
Nope. That is definitely legal. It's the standard way of making a counter.
Post your mission. I can probably fix this in about 3-4 minutes whatever is causing it.
-
Then why does FRED tell me it has to be a number, work fine when I make it a number, and crash telling me the problem is in the modify-variable instruction when I make it not a number?
Anyway, let me get this uploaded to a file host and I'll post it up. Just a sec.
Edit: Okay, I changed it from "0" to "DockCount(0)" again for the uploading, and when I saved it, I got this:
(http://img.photobucket.com/albums/v350/RenegadePaladin/FREDerror.png)
So yes, the problem is very specifically "DockCount(0)" in that field.
Edit2: All right, here's the mission. http://rapidshare.com/files/110590713/Shipyard_Raid.fs2.html
-
Should be DockCount[0]. Did you use replace variable, or did you just type it out? Since that could be the problem (that's what my problem was when i did the walkthrough. Then I found replace variable).
-
That's probably it, then. I typed it in, but what's weird is that changing it to brackets using Notepad++ was the very first thing I tried, when I noticed that the other instances were in brackets. That didn't work. I'll try Replace Variable.