Author Topic: Unable to open FRED mission  (Read 919 times)

0 Members and 1 Guest are viewing this topic.

Offline Colt

  • 28
  • Needs more dakka
    • Steam
Unable to open FRED mission
So I was doing some editing, but when I went to save the mission, I got an error about some sexp expressions (this usually happens when inserting new events between other events). Whenever this happens I just press continue and then proceed to fix them. This time however I got the following error.

Code: [Select]
Error: Failed attempting to reload mission after saving.  Report this bug now!
File: freddoc.cpp
Line: 658

ntdll.dll! ZwWaitForSingleObject + 20 bytes
KERNELBASE.dll! WaitForSingleObjectEx + 147 bytes
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
USER32.dll! DispatchMessageW + 1702 bytes
USER32.dll! DispatchMessageW + 450 bytes
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
fred2_open_3_8_1_20190514_69ebdd0_x64_SSE2.exe! <no symbol>
KERNEL32.DLL! BaseThreadInitThunk + 20 bytes
ntdll.dll! RtlUserThreadStart + 33 bytes

Every time I try to load the mission in FRED I get a window that says it is unable to load the mission file. How would I go about fixing this?

 
Re: Unable to open FRED mission
Can have a wide range of causes. IIRC running a debug built _might_ be able to bring you to the point where it happens, not 100% sure.

-You forgot a space after an event name ("Destroy Gemini ")
-Change hierarchy of events so "is-event-true-delay" will show <Gemini Event>

basically everything that throws out a error (apart from the usual GTF Ship 0 not part of wing stuff) can cause FRED to refuse to load your mission nowadays.

 

Offline Colt

  • 28
  • Needs more dakka
    • Steam
Re: Unable to open FRED mission
-Change hierarchy of events so "is-event-true-delay" will show <Gemini Event>
Yep that's what it was.

Also I remembered that I could edit the mission via a text file  :banghead:. All's working now!

 
Re: Unable to open FRED mission
-Change hierarchy of events so "is-event-true-delay" will show <Gemini Event>
Yep that's what it was.

Also I remembered that I could edit the mission via a text file  :banghead:.

Be super careful with that, 1 typo and you've got a good chance to end up in the same issue again.

 

Offline Nyctaeus

  • Betrayal is his middle name
  • 211
  • I run beer-powered shipyards!
    • Minecraft
    • Exile
Re: Unable to open FRED mission
-Change hierarchy of events so "is-event-true-delay" will show <Gemini Event>
Yep that's what it was.

Also I remembered that I could edit the mission via a text file  :banghead:.

Be super careful with that, 1 typo and you've got a good chance to end up in the same issue again.
Pfff... Real Freders use notepad!
Exile | Shadow Genesis | DA Profile | P3D Profile

Proud owner of NyctiShipyards. Remember - Nyx will fix it!

All of my assets including models, textures, skyboxes, effects may be used under standard CC BY-NC 4.0 license.

 
Re: Unable to open FRED mission
Copy + Paste = Win

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Re: Unable to open FRED mission
Confirmed that sexps with illegal entries (bad hangar bay assignments, ships that don't actually exist, etc.) cause FRED to treat a mission as entirely corrupted rather than spit out a list of the errors in the mission like normal. I'm working on a Github issue now.

E: Posted.
« Last Edit: July 19, 2019, 09:22:20 pm by Woolie Wool »
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Unable to open FRED mission
Yeah, the game should at least spit out what might be the cause even if it can't load the mission.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Colt

  • 28
  • Needs more dakka
    • Steam
Re: Unable to open FRED mission
Confirmed that sexps with illegal entries (bad hangar bay assignments, ships that don't actually exist, etc.)
Posted.
Yikes. Gonna be super careful for the time being. Thanks for finding that.

 

Online Cyborg17

  • 29
  • A-1 Supar
Re: Unable to open FRED mission
Possible fix submitted. Next nightly (not today's) will probably have it.  Until then, you can try editing any bad sexp in notepad.

  
Re: Unable to open FRED mission
Thank you~ :yes: :yes: