Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: impex on July 11, 2009, 05:26:47 pm

Title: Crashes on pilot select - corrupt pilot file?
Post by: impex on July 11, 2009, 05:26:47 pm
I was playing the Derelict mod and was on a multi-part mission, the kind where you make additional jumps and get the "Incoming transmission" screen.  I was having trouble in the 3rd part of the mission and wanted to restart with a different weapon load so I went to "replay previous mission" a few times to get back to the flight deck.  However I couldn't seem to get all the way back, and anyway it was getting late so I decided to just quit.  When I did so, the game crashed.  I didn't think much of it since I was quitting anyway but now when I try to load up the character (clicking select or clone) it crashes, so I think I corrupted my pilot file somehow.  Is there any way I can repair the file or alternatively create a new pilot and skip forward to the mission I was on?  I saw some instructions for skipping ahead in the "Gameplay Issues" section of the FAQ, but I'm not sure I completely understand how to do that or even if it's applicable here. I was originally playing on fs2_open_3_6_9.exe but I also tried it with fs2_open_3_6_10_RC3.exe and fs2_open_3_6_10_RC3_debug.exe -- the latter of which is the one I used to create the attached log files (as per instructions in "If all else fails").  Pilot files included too.  Thanks for any help!

System:
2.66GHz Core 2 Duo
2GB DDR2
GeForce 8600 GT
Windows XP SP3

[attachment deleted by MSC
Title: Re: Crashes on pilot select - corrupt pilot file?
Post by: The E on July 11, 2009, 05:36:54 pm
Yep, that's a corrupted pilot file. You should delete it and start a new one. There is no way to easily skip campaign missions (short of creating a custom campaign file or cheating), so you'll have to either cheat or fly those missions again, sorry.
Title: Re: Crashes on pilot select - corrupt pilot file?
Post by: impex on July 11, 2009, 06:10:12 pm
Ah ok bummer.  Well know of any links to how-to's for creating custom campaign files (or cheating?)?  I don't mind tinkering a bit; it'll probably take less time than re-flying ~20-30 missions.  Thanks
Title: Re: Crashes on pilot select - corrupt pilot file?
Post by: General Battuta on July 11, 2009, 06:22:29 pm
I believe your chances of hitting this bug again would be reduced by running with 3.6.10 RC3.
Title: Re: Crashes on pilot select - corrupt pilot file?
Post by: The E on July 11, 2009, 06:50:51 pm
In fact, using 3.6.10 will kill this bug for good.
As for editing the campaign file....there's this guide (http://www.hard-light.net/wiki/index.php/Campaign_Editor) on the wiki, but it assumes at least basic familiarity with FRED.
First, get a VP editor, like maja or VPView, open the derelict vp and extract the .fc2 file from the /missions/ directory. Then open FRED, and load that file using the campaign editor, as described in the guide. Delete all the missions you played already from the file, and save it again with a different file- and campaign name into your Derelict/data/missions/ folder. That way, you'll still have the original Derelict campaign and a shortened version.
Title: Re: Crashes on pilot select - corrupt pilot file?
Post by: Jeff Vader on July 12, 2009, 03:54:13 am
The alternative is to play the remaining missions from the Mission Simulator, though that can be a bit tedious:
- start the game and go to the Tech Room
- select the Mission Simulator
- press Ctrl + Shift + S
- you'll now see all the missions that the campaign has, so select the one you want to play
- rince
- repeat
Title: Re: Crashes on pilot select - corrupt pilot file?
Post by: karajorma on July 13, 2009, 02:16:23 pm
If you want to play it as a campaign this should work.

1. Extract the campaign file
2. Figure out the name of the mission file you want to go to. Say M12.fs2
3. Alter the first mission in the campaign file so that completing the first mission will take you to it. So for the main FS2 campaign.

Code: [Select]
$Mission: Training-1.fs2
+Flags: 0
+Formula: ( cond
   (
      ( is-previous-goal-true
         "Training-1.fs2"
         "Flight Training"
      )
      ( next-mission "Training-2.fs2" )
   )
   ( ( true ) ( next-mission "Training-1.fs2" ) )
)

Becomes

Code: [Select]
$Mission: Training-1.fs2
+Flags: 0
+Formula: ( cond
   ( ( true ) ( next-mission "M12.fs2" ) )
   (
      ( is-previous-goal-true
         "Training-1.fs2"
         "Flight Training"
      )
      ( next-mission "Training-2.fs2" )
   )
   ( ( true ) ( next-mission "Training-1.fs2" ) )
)


I haven't got the Derelict campaign file handy but the important thing is to add

Code: [Select]
( ( true ) ( next-mission "MISSION NAME" ) )
after the first time you see

Code: [Select]
+Formula: ( cond
4. FRED will ***** and moan if you open that but FS2_Open should be okay. Now restart the campaign and jump out immediately upon the start of the first mission. You should get the failure debrief but be allowed to proceed to the mission you selected.