Hard Light Productions Forums

Hosted Projects - FS2 Required => Blue Planet => Topic started by: Axem on May 28, 2014, 05:37:57 pm

Title: Help us solve the M21 Airframe Problem
Post by: Axem on May 28, 2014, 05:37:57 pm
One of the more confounding bugs that's been hard to debug and solve is the odd "Airframes destroyed" bug from Her Finest Hour, where a number of people are told too many airframes were destroyed and Calder has taken you off his friends list when you're so sure that you did such a good job.

So here's what I need from you.

1) To have played Her Finest Hour in a campaign setting and have gotten the mismatched debrief
2) Attach the pilot file you used to your post (in like a zip file). This is found in /data/players/. Specifically the *.plr file and the *.bp2-p2.csg files.

Thanks for your help!
Title: Re: Help us solve the M21 Airframe Problem
Post by: InsaneBaron on May 28, 2014, 07:19:47 pm
Coming atcha!



[attachment deleted by an evil time traveler]
Title: Re: Help us solve the M21 Airframe Problem
Post by: Scotty on May 28, 2014, 08:33:39 pm
Uploading two sets.  One is from before mission completion (but after like eight tries), the other is immediately following.  I did not get the mistmatched briefing.

[attachment deleted by an evil time traveler]
Title: Re: Help us solve the M21 Airframe Problem
Post by: Axem on May 29, 2014, 07:08:02 am
The bug has been found and destroyed. Thanks to you guys (and niffiwan) for your help!
Title: Re: Help us solve the M21 Airframe Problem
Post by: qwadtep on May 29, 2014, 09:18:18 am
Out of curiosity, what caused it?
Title: Re: Help us solve the M21 Airframe Problem
Post by: General Battuta on May 29, 2014, 10:34:25 am
Campaign persistent variables are set at debrief init, not (as we previously believed) at the end of a successful debrief. This means that if players failed the mission (without dying) and went to a failure debrief screen, all their air wing losses would be added to the CPV.

We actually had a fix in place in the mission file for more than a year, but we never figured out how to repro the bug so we weren't able to check whether the fix worked.

e: basically the problem was this: everyone believed CPVs were only stored at the end of a successful campaign mission. Turns out that's not true.

e2: Come to think of it, that means a lot of our other campaign persistent variables are probably ****ed too.
Title: Re: Help us solve the M21 Airframe Problem
Post by: Veers on May 29, 2014, 10:42:51 am
Quote
29 May 2014, 09:37:57

Reply #3 on: 29 May 2014, 23:08:02

Gotta love efficiency! :)
Title: Re: Help us solve the M21 Airframe Problem
Post by: InsaneBaron on May 29, 2014, 12:14:13 pm
The bug has been found and destroyed. Thanks to you guys (and niffiwan) for your help!

Awesome, You're welcome!

EDIT: Out of curiosity, will the "Ok so you caught Lopez, but U lost all my pilots and I is nevar talking to U again!" outcome still haunt me on Act 4?
Title: Re: Help us solve the M21 Airframe Problem
Post by: Scotty on May 29, 2014, 01:30:39 pm
You should replay Tenebra so it doesn't. :P