Author Topic: Did someone fiddle with the reinforcements editor?  (Read 1460 times)

0 Members and 2 Guests are viewing this topic.

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Did someone fiddle with the reinforcements editor?
Because it's telling me:
Quote
Cannot have a reinforcement wing with mixed teams, sucka!

Which I found quite odd as my wing was all of the one team.
« Last Edit: October 15, 2006, 09:42:44 am by Black Wolf »
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Did someone fiddle with the reinforcements editor?
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Did someone fiddle with the reinforcements editor?
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.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Did someone fiddle with the reinforcements editor?
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.
« Last Edit: October 15, 2006, 02:48:16 pm by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]