Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: bigchunk1 on November 20, 2010, 11:05:04 pm

Title: Wings and Waypoints
Post by: bigchunk1 on November 20, 2010, 11:05:04 pm
If I have a ship, and I set it to do a waypoint order, the ship will carry out that order with no issue.

However if I have a wing of say... 4 fighters and I order that wing to execute a waypoint order as a wing, they get stuck.

I don't exactly know why. I think it is because they all can't be on the waypoint at once and they push eachother away. Well how can wings execute waypoint orders then? They get stuck.

Any ideas for a workaround? I tried issuing the orders separately ship to ship, but the same thing happens. They all bump into eachother and no fighters actually reach the waypoint to flow to the next one.

I'm beginning to wonder if this is even possible to do.
Title: Re: Wings and Waypoints
Post by: CommanderDJ on November 20, 2010, 11:14:01 pm
Yeah. All the ships in the wing will try to move to the same waypoint (ie the same spot in space) and so they run into each other. You could make a waypoint for each ship in the wing, have the waypoints fairly close together and assign each ship a waypoint individually, and it'll work fairly well. Other, more experienced FREDders might have better ideas though.
Title: Re: Wings and Waypoints
Post by: FUBAR-BDHR on November 20, 2010, 11:46:27 pm
Wait that should not happen.  The wing leader does the way points while the other ships should be flying formation.  The only time it might occur is at the beginning when the ships are trying to get into formation. 
Title: Re: Wings and Waypoints
Post by: bigchunk1 on November 21, 2010, 12:03:16 am
It happens in the middle of a mission when the wing receives new waypoint orders. They fly the the first waypoint in the path like normal and then get stuck.
Title: Re: Wings and Waypoints
Post by: FUBAR-BDHR on November 21, 2010, 12:07:27 am
Can you make a test mission where this happens with minimal events and orders using retail assets?
Title: Re: Wings and Waypoints
Post by: Dilmah G on November 21, 2010, 12:20:15 am
Actually I recall experiencing this when giving Alpha Wing waypoint orders. I'm not really in a position to submit a test mission at the moment, but I've definitely experienced this as well.
Title: Re: Wings and Waypoints
Post by: bigchunk1 on November 21, 2010, 01:24:08 am
Strange, this mission plays out exactly like FUBAR said it should. Something's up though.

[attachment deleted by admin]
Title: Re: Wings and Waypoints
Post by: Dilmah G on November 21, 2010, 01:40:37 am
Well, if you were using retail assets, perhaps it's a mod specific issue? MVPs, perhaps?
Title: Re: Wings and Waypoints
Post by: FUBAR-BDHR on November 21, 2010, 01:48:18 am
This is why it needs to be reproduced in stages starting with retail only.  If that works then mediavps next. If it works with retail then the issue while it may still be code side is asset dependent.  It needs to be narrowed down as much as possible. 
Title: Re: Wings and Waypoints
Post by: bigchunk1 on November 27, 2010, 11:08:06 am
I figured out what was wrong with this and I fixed it. It was a complete error in my freding logic and had nothing to do with SCP or retail code.

Thanks for the help.