Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Scotty on July 21, 2010, 06:23:00 pm

Title: Odd error on FRED
Post by: Scotty on July 21, 2010, 06:23:00 pm
I'm getting a weird error message that I don't have any idea how to keep from coming up.  All it says is "Special ship out of range for "Alpha.""  What does that even mean? :confused:
Title: Re: Odd error on FRED
Post by: General Battuta on July 21, 2010, 06:24:01 pm
That's a new one on me.
Title: Re: Odd error on FRED
Post by: The E on July 21, 2010, 06:26:59 pm
Are you setting up a wing for autopilot, perhaps?

Note for the future, ALWAYS give us details on what it is you're doing. Don't force us coders into having to boot up our dev environments just to search the codebase for that error message.
Title: Re: Odd error on FRED
Post by: Scotty on July 21, 2010, 06:37:34 pm
Sorry about that.

You are correct in that I'm trying to set up an autopilot.  The player, Alpha 4, receives a message list, and when that finishes, gets a directive to engage autopilot (if they feel like it).  I have events laid out so that when autopilot is engaged (or, rather, key-pressed Alt-A, with directive text to match), the player switches to AI, which is following waypoints at the time.

Basically:
Engage Autopilot ((event name))
---> when
     ---> key-pressed
           ---> Alt-A
     ---> player-use-ai

then, chained to that event:

Player Follow Waypoints
---> when
     ---> true
     ---> add-goal
            ---> Alpha 4
         ---> ai-waypoits
              ---> Alpha Patrol Path
              ---> 89

Which leads into a screen fade-out, and fade-back in after the waypoints are done, with a final event for player-not-use-ai.
Title: Re: Odd error on FRED
Post by: The E on July 21, 2010, 06:41:02 pm
Okay. How far are the other members of Alpha wing from Alpha 1 (or whoever is designated wing leader, aka the "special ship")?
Title: Re: Odd error on FRED
Post by: General Battuta on July 21, 2010, 06:44:27 pm
It strikes me that the problem here is that you're using Alt-A and confusing the FRED-scripted autopilot you've jury-rigged together with the 'real' FSO autopilot. Or am I mistaken?
Title: Re: Odd error on FRED
Post by: Scotty on July 21, 2010, 07:18:45 pm
Problem fixed.  Thank you Axem. :D
Title: Re: Odd error on FRED
Post by: Scotty on July 22, 2010, 12:43:21 am
While this is still semi-recent, does anyone know what I did to trigger the error?
Title: Re: Odd error on FRED
Post by: Dilmah G on July 22, 2010, 04:25:25 am
I think Battuta might've been onto something.
Title: Re: Odd error on FRED
Post by: Axem on July 22, 2010, 07:06:00 am
Battuta wasn't. The problem was from FRED losing track of ships related to Alpha wing. It lost the Special Ship (The wing leader) and lost the Docking Bay Arrival/Departure anchors. How? I'm not sure. FRED works in mysterious ways...