Author Topic: FRED walkthrough mission crashes the editor?  (Read 1299 times)

0 Members and 1 Guest are viewing this topic.

FRED walkthrough mission crashes the editor?
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? 

Code: [Select]
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: 
Code: [Select]
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. 
« Last Edit: April 26, 2008, 10:29:24 am by Renegade Paladin »
"Courage is the complement of fear.  A fearless man cannot be courageous.  He is also a fool." -- Robert Heinlein

 
Re: FRED walkthrough mission crashes the editor?
I think I've located the problem. 



This is wrong.  Under op +, "DockCount(0)" is an illegal entry for the field; it must be a number. 
Code: [Select]
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:
------------------------------------------------------------------
------------------------------------------------------------------
"Courage is the complement of fear.  A fearless man cannot be courageous.  He is also a fool." -- Robert Heinlein

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED walkthrough mission crashes the editor?
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: FRED walkthrough mission crashes the editor?
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:



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
« Last Edit: April 26, 2008, 11:43:57 am by Renegade Paladin »
"Courage is the complement of fear.  A fearless man cannot be courageous.  He is also a fool." -- Robert Heinlein

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: FRED walkthrough mission crashes the editor?
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).
(´・ω・`)
=============================================================

  
Re: FRED walkthrough mission crashes the editor?
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. 
"Courage is the complement of fear.  A fearless man cannot be courageous.  He is also a fool." -- Robert Heinlein