Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: General Battuta on May 30, 2014, 02:13:44 pm

Title: REQUEST: Help us repro a bug in the 'targeted' SEXP
Post by: General Battuta on May 30, 2014, 02:13:44 pm
Please load BP2 Act 3 mission 'Her Finest Hour'. Designate a target for the artillery ships to attack (it should be YELLOW after this). A good choice is one of the gas miners fleeing the battle. Keep it targeted up to and through the moment it is destroyed.

Report the outcome. (We believe that this will cause you to be unable to designate/undesignate targets for the artillery ships to attack from that point on. UPDATE: We are not sure this will actually trigger the outcome - see below - but please try it anyway!)

Bug already in Mantis and The_E has generated a proposed fix.

UPDATE: Further testing has narrowed the repro conditions further. We believe the issue may be tied to the last argument in the argument list. In addition to the above steps, please try destroying Mjolnir Bravo. See if this triggers the lockup in the target designation system.
Title: Re: REQUEST: Help us repro a bug in the 'targeted' SEXP
Post by: Echelon9 on May 31, 2014, 01:58:07 am
Adding a link to the relevant Mantis 3052: "targeted" sexp returns KNOWN_FALSE in conjunction with argument list (http://scp.indiegames.us/mantis/view.php?id=3052)
Title: Re: REQUEST: Help us repro a bug in the 'targeted' SEXP
Post by: AdmiralRalwood on June 02, 2014, 11:30:09 pm
As of SVN revision 10748, this bug should be fixed for good.
Title: Re: REQUEST: Help us repro a bug in the 'targeted' SEXP
Post by: Goober5000 on June 02, 2014, 11:41:46 pm
Many thanks to AdmiralRalwood for some dedicated footwork, as well as a degree of perspicacity unusual for someone unfamiliar with the code.  I have awarded him a Gold Star for his efforts.
Title: Re: REQUEST: Help us repro a bug in the 'targeted' SEXP
Post by: Dragon on June 03, 2014, 12:32:46 pm
Congratulations on squashing this. :) Bugs like that are often very though to nail. Oddly enough, I don't remember ever having this problem when testing that mission (despite doing the repro steps many times over the course of testing).
Title: Re: REQUEST: Help us repro a bug in the 'targeted' SEXP
Post by: General Battuta on June 03, 2014, 12:35:44 pm
We had the problem lots and lots of times, that's why we were aware of it. I hit it nearly every time I played the mission. We ended up triaging it as a won't-fix bug because it was so damned elusive we assumed it was a deep engine problem with SEXP handling (and it was!)