Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: sigtau on July 14, 2009, 01:49:03 pm

Title: The mission bug from hell!
Post by: sigtau on July 14, 2009, 01:49:03 pm
FreeSpace Open crashes when I try to run a particular mission.

http://pastebin.ca/1494992

May I direct your attention to line 310 of that paste:

310. ASSERTION: "Player_start_shipnum != -1" at MissionParse.cpp:5989

Well, I opened up the mission in Notepad, there's only one player ship.

I'm pretty ****ing confused here.

Mission file: http://pastebin.ca/1495030
Title: Re: The mission bug from hell!
Post by: 0rph3u5 on July 14, 2009, 01:55:45 pm
1. You did not change the player ship, did you?
2. So you can see both these entires in nodepad?

Code: (just before loadout pool) [Select]
#Players ;! 1 total


Code: (Alpha 1's object entry) [Select]
$Name: Alpha 1 ;! Object #0
$Class: GTF Ulysses
$Team: Friendly
$Location: 0.000000, -100.000000, 0.000000
$Orientation:
1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000
$AI Behavior: None
$Cargo 1:  XSTR("Nothing", -1)
+Initial Velocity: 33
+Initial Hull: 100
+Subsystem: Pilot
$Arrival Location: Hyperspace
$Arrival Cue: ( false )
$Departure Location: Hyperspace
$Departure Cue: ( false )
$Determination: 10
+Flags: ( "cargo-known" "player-start" )
+Flags2: ( )
+Respawn priority: 0
+Group: 0
+Use Table Score:
+Score: 8
Title: Re: The mission bug from hell!
Post by: sigtau on July 14, 2009, 02:13:56 pm
I did not change the player ship.

Yes, both of those entries are in my mission file.
Title: Re: The mission bug from hell!
Post by: Droid803 on July 14, 2009, 02:14:57 pm
You know, it's kind of hard to debug a mission if you don't post the mission file itself...
Title: Re: The mission bug from hell!
Post by: sigtau on July 14, 2009, 02:19:29 pm
http://pastebin.ca/1495030

There's the mission.  I also posted a link in the main post.
Title: Re: The mission bug from hell!
Post by: 0rph3u5 on July 14, 2009, 02:23:08 pm
Where did you get the Ezechiel from? - There are some bugged versions around...
Title: Re: The mission bug from hell!
Post by: sigtau on July 14, 2009, 02:35:13 pm
FSMods, and I've already verified through debug builds that it is NOT in fact bugged up.
Title: Re: The mission bug from hell!
Post by: karajorma on July 14, 2009, 02:51:48 pm
Something is badly wrong with Alpha wing. They aren't being set up correctly for some reason I can't immediately see. Unfortunately I don't have the time at the moment to figure out why.

EDIT : And about 10 seconds after posting that I figured out why.

Code: [Select]
$Special Ship: 0 ;! Alpha 1

$Arrival Location: Hyperspace
+Arrival delay: 2

If you set the arrival delay for alpha wing to 2 they won't be present at the start of the mission. No wonder FS2 is complaining the player ship is missing! Change that back to 0.
Title: Re: The mission bug from hell!
Post by: Colonol Dekker on July 14, 2009, 02:56:57 pm
For the love of Vectorns emerald toenails please upload the .FS2 file in your next reply (under additional settings).........

It'll enable quicker responses from people like me...
Title: Re: The mission bug from hell!
Post by: karajorma on July 15, 2009, 06:57:45 am
The mission is in the pastebin. It's pretty easy to cut and paste it out.

But I'm pretty certain I've nailed the cause of the problem anyway. :)
Title: Re: The mission bug from hell!
Post by: Colonol Dekker on July 15, 2009, 07:16:24 am
When I pasted it, it came with all the line numbers / headers. . Too much hassle  :p
Title: Re: The mission bug from hell!
Post by: karajorma on July 15, 2009, 07:23:50 am
Don't paste from the view box, paste from the edit box. :D