sketchbook: behavior.SetFiltersDisabled counts as a move

Case number:699969-2005476
Opened by:LociOiling
Opened on:Saturday, July 7, 2018 - 18:21
Last modified:Saturday, July 7, 2018 - 18:50

I noticed that some common recipes leak moves before they display an initial dialog.

It turns out that SetFiltersDisabled is the culprit. Recipes may check the filter bonus by first enabling filters (just to be sure), getting the score, disabling the filters and getting the score, then enabling the filters again. The current filter bonus is the difference in the two scores, but the recipe just leaked three moves without doing anything.

Administrative calls like behavior.SetFiltersDisabled shouldn't deduct moves.

This problem is easy to work around with quicksave and quickload.

The following one-line recipes demonstrates the issue:

(Sat, 07/07/2018 - 18:21  |  1 comment)

LociOiling's picture
User offline. Last seen 5 hours 32 min ago. Offline
Joined: 12/27/2012

Closing this one, somehow created a duplicate. instead


Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, Boehringer Ingelheim, RosettaCommons