Hi Matteo,
We've been able to replicate this error, and what's more, though the log reports success when setting standard SCORM vars with the SCORM 2004 commands (such as GetValue and SetValue for the fields cmi.score.raw, cmi.score.min, and cmi.score.max), the score for our package is not stored to the Gradebook. Using the debug tools to set the fields doesn't actually set the field either.
SCORM Version Detected: scorm_13
Thu, 17 Mar 2011 16:26:03 GMT: Moodle SCORM 1.2 API Loaded, Activity: debug2, SCO: AS2SCORM2004_item01
Thu, 17 Mar 2011 16:26:28 GMT: Initialize("", "") => 0
Thu, 17 Mar 2011 16:26:28 GMT: SetValue("cmi.completion_status", "incomplete") => 0
Thu, 17 Mar 2011 16:26:28 GMT: SetValue("cmi.score.min", "0") => 0
Thu, 17 Mar 2011 16:26:28 GMT: SetValue("cmi.score.max", "10") => 0
Thu, 17 Mar 2011 16:26:31 GMT: SetValue("cmi.score.raw", "4") => 0
Thu, 17 Mar 2011 16:26:31 GMT: GetValue("cmi.score.raw") - 4 => 0
Thu, 17 Mar 2011 16:26:31 GMT: SetValue("cmi.completion_status", "completed") => 0
Thu, 17 Mar 2011 16:26:32 GMT: Commit("", "") => 0
Thu, 17 Mar 2011 16:26:32 GMT: GetValue("cmi.completion_status") - completed => 0
Thu, 17 Mar 2011 16:26:32 GMT: SetValue("cmi.exit", "normal") => 0
Thu, 17 Mar 2011 16:26:32 GMT: Terminate("", "") => 0
This happens for both student and admin account roles that we have tested. We're testing using Moodle 2.0.2 with Xampp Lite 1.7.3.
I should also add that based on your bug #MDL-26863, I downloaded and tested the Diagnostic SCO for SCORM 2004. Again, the set variables, this time with cmi.score.scaled using the provided demo script, are not stored to the Gradebook. (I would assume the grade that should be displayed in the gradebook would be 94.) The below log is for the Diagnostic SCO.
SCORM API Activity Log
Thu, 17 Mar 2011 18:12:10 GMT: Moodle SCORM 1.2 API Loaded, Activity: diagSCO, SCO: DB4B88FC-DD3A-11DA-9B41-B622A1EF5492
Thu, 17 Mar 2011 18:12:55 GMT: Initialize("", "") => 0
Thu, 17 Mar 2011 18:12:55 GMT: GetValue("cmi.entry") - ab-initio => 0
Thu, 17 Mar 2011 18:12:55 GMT: SetValue("cmi.exit", "suspend") => 0
Thu, 17 Mar 2011 18:12:55 GMT: GetValue("cmi.completion_status") - unknown => 0
Thu, 17 Mar 2011 18:12:55 GMT: GetValue("cmi.success_status") - unknown => 0
Thu, 17 Mar 2011 18:12:55 GMT: GetValue("cmi.score.scaled") - => 403
Thu, 17 Mar 2011 18:12:56 GMT: SetValue("cmi.completion_status", "incomplete") => 0
Thu, 17 Mar 2011 18:12:57 GMT: Commit("", "") => 0
Thu, 17 Mar 2011 18:12:57 GMT: GetValue("cmi.scaled_passing_score") - => 403
Thu, 17 Mar 2011 18:12:57 GMT: SetValue("cmi.score.scaled", "0.94") => 0
Thu, 17 Mar 2011 18:12:57 GMT: SetValue("cmi.success_status", "failed") => 0
Thu, 17 Mar 2011 18:12:57 GMT: GetValue("cmi.success_status") - failed => 0
Thu, 17 Mar 2011 18:12:57 GMT: SetValue("cmi.exit", "") => 0
Thu, 17 Mar 2011 18:12:57 GMT: Terminate("", "") => 0
Thanks,
Adam Schuldt