LociOiling Lv 1
Part of the trouble may be that the function scoreboard.GetScore seems to have stopped working at some point. It tends to return values like 9999.99 now. I'm pretty sure it was working a few years back.
I've updated the recipe, so now we have Rosetta energy 1.1.
Version 1.1 looks at the contributions of conditions (also known as filters), and produces much more output. To simplify things, a bit, there's a dialog at the end that displays key results and allows copy-and-paste.
Otherwise, the scriptlog output (in the recipe output window or better in scriptlog.default.xml) shows three phases. Phase 1 is conversion to Rosetta units using the good old reliable formula. Phase 2 uses scoreboard.GetScore, and demonstrates its results don't match the phase 1 results.
If conditions are present, phase 3 calculates the Rosetta energy for each filter, totals everything up, and verifies that score conditions enabled minus the contribution from conditions equals the score with filters disabled.
There's a little trick to the standard formula, which is REU = 10 * ( 800 - Foldit_score ). That formula works for the overall score. The 800 reflects the fact that Foldit scoring starts at 8000, more or less. I believe that was done to make things more exciting from a gaming perspective.
You only have to account for the 800 once, so for the conditions, the formula is just REU = 10 * (-Foldit_score).