When cmi.core.score.raw is empty, then course is passed?

When cmi.core.score.raw is empty, then course is passed?

by More Bauernakke -
Number of replies: 1

Hi All,

I downloaded the moodle 1.9.9 windows quick installer. I have  a scorm 1.2 course which I know works on the Rustici platform.

My course utilizes masteryscore (e.g. <adlcp:masteryscore>55</adlcp:masteryscore>) in order to pass the course

problem: When I plug m course into moodle I pass the sco's just by opening them (i.e. I get a green checkmark) and then closing them.

I played with the debugger and if I manually set the core.score.raw to e.g. "1", then it works and I do not pass and can continue to play as I should. If I manually set the score to 0, then the problem appears again.

I looked in the tracker and found these two issues which seem related:

http://tracker.moodle.org/browse/MDL-18023
http://tracker.moodle.org/browse/MDL-16897

But they are marked as fixed.

Can anyone tell me if I am missing something obvious? What should my course return when I just close the sco or navigate away so it will be marked not completed?

 

Thx!

Average of ratings: -
In reply to More Bauernakke

Re: When cmi.core.score.raw is empty, then course is passed?

by More Bauernakke -

Here is the debug log:

Tue, 12 Oct 2010 09:33:47 UTC: Moodle SCORM 1.2 API Loaded, Activity: bls2, SCO: mercury_skills
Tue, 12 Oct 2010 09:33:48 UTC: LMSInitialize("", "") => 0
Tue, 12 Oct 2010 09:33:48 UTC: LMSGetValue("cmi.core.score.raw") - => 0
Tue, 12 Oct 2010 09:33:48 UTC: LMSSetValue("cmi.core.score.max", "100") => 0
Tue, 12 Oct 2010 09:33:48 UTC: LMSSetValue("cmi.core.score.min", "0") => 0
Tue, 12 Oct 2010 09:33:48 UTC: LMSSetValue("cmi.core.score.raw", "0") => 0
Tue, 12 Oct 2010 09:33:49 UTC: LMSGetValue("cmi.core.score.raw") - 0 => 0
Tue, 12 Oct 2010 09:33:49 UTC: LMSGetValue("cmi.core.student_name") - User, Admin => 0
Tue, 12 Oct 2010 09:33:49 UTC: LMSGetValue("cmi.suspend_data") - => 0
Tue, 12 Oct 2010 09:33:59 UTC: LMSFinish("AJAXResult", "") => 0
Tue, 12 Oct 2010 09:33:59 UTC: LMSFinish("result", "false") => 0
Tue, 12 Oct 2010 09:33:59 UTC: LMSFinish("", "") => 0

So perhaps the issue is that we start with setting the score to "0" to handle premature exits instead of using
LMSSetValue("cmi.core.exit", "suspend") => 0