Current.GetScore() doesn't refresh filter
Case number: | 699969-2000784 |
Topic: | General |
Opened by: | Bruno Kestemont |
Status: | Closed |
Type: | Bug |
Opened on: | Monday, June 1, 2015 - 14:43 |
Last modified: | Wednesday, June 3, 2015 - 12:19 |
In the example bellow, BonusEnergy() gives the filter bonus (e.g. 810).
On the same puzzle, BonusRank() returns 0
Is it normal that current.GetScore() does not refresh the filter bonus?
On a puzzle with bonus = 810:
BonusEnergy()
behavior.SetSlowFiltersDisabled(false)
ScoreFilterEnabled=current.GetEnergyScore()
behavior.SetSlowFiltersDisabled(true)
ScoreFilterDisabled=current.GetEnergyScore()
Bonus=ScoreFilterEnabled-ScoreFilterDisabled
return Bonus
end
BonusEnergy() returns 810
BonusRank()
behavior.SetSlowFiltersDisabled(false)
ScoreFilterEnabled=current.GetScore()
behavior.SetSlowFiltersDisabled(true)
ScoreFilterDisabled=current.GetScore()
Bonus=ScoreFilterEnabled-ScoreFilterDisabled
return Bonus
end
BonusRank()returns 0
A related question: The help for scoreboard.GetScore and scoreboard.GetGroupScore explicitly say they return rosetta energy. Is this still the case? Or do they return the creditbest with the filter bonus?
Status: Open » Closed |
Sorry, it was a Lua mistake in my recipe ... ;(
No bug.
either current.GetEnergyScore() does not refresh at start ...
When it comes in a more complex function, it works.
Is there any delay for refreshing?