Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Black Wolf on October 15, 2006, 09:34:37 am
-
Because it's telling me:
Cannot have a reinforcement wing with mixed teams, sucka!
Which I found quite odd as my wing was all of the one team.
-
Yeah it's broken. No one cares as we all use the Wings Editor to add reinforcements anyway :D
I'm fiddling around with FRED as we speak though. I might take a look and see if I can spot the cause of the problem.
-
Hmm. Forgot the wings editor. Problem solvered.
If you can't figure out the cause though, maybe just removing the restriction on mixed IFF wings would solve the problem? Anyone silly enough to make mixed IFF wings would probably figure it out sooner or later after all, and I suspect it would be a relatively straightforward way to fix the symptoms, if not the cause of the problem.
-
IIRC the problem isn't caused by having mixed teams so much as making anything a reinforcement wing.
I'll take a look at it in a bit.
EDIT : Okay I did some digging and I suspect I know what the problem is. The reinforcements editor attempts to make sure that there are no conflicting teams by calling wing_has_conflicting_teams()
This is returning -1 in release builds because Wings[].current_count for the wing is 0 and that fails a sanity check. I'm fairly certain that it's not meant to be but I can't double check because the code repository for wing.cpp only has one entry from 8 months ago so I can't check if anyone has changed it. I can tell that the sanity check that is causing the problem is an SCP addition though so if Wings[].current_count is meant to be 0 then the check is the problem.