SCORM quiz score.raw to show achieved score instead of 100% in stats?

markusd1984
Forums
Hi James, Was/is there any planning to show SCORM scores in the lesson stats somewhere instead of just an overall 0% vs 100% Pass/Fail? I have a SCORM 1.2 module that sends cmi.core.score.raw but while the user achieves for example 80% (of minimum 75%) in the built-in scorm quiz, the lesson will show a 100% Score. Therefore we have no way of knowing how well a user has done in a lesson or possible when they failed by how much or little :)
Profile picture for user James Aparicio
James Aparicio

Hi markusd1984,

Hi markusd1984,

Opigno already supports this. If you are getting always 100% is because something is up with the package most probably.

You should check profiles/opigno_lms/modules/opigno/opigno/modules/scorm/quiz/includes/opigno_scorm_quiz.response.inc. There you can debug exactly what is going on.

Best regards

markusd1984

cmi.core.score.raw vs cmi.score.raw

Thanks James,  I can see it has a condition for SCORM 1.2 vs 2004 which uses  $raw_key = 'cmi.score.raw' instead,

Can I check somehow if my SCORM1.2 package is recognized correctly? 

I don't know if there a way to debug SCORM activity ie. to be recorded through opigno vie log file or watch dog?
(Otherwise, I only know I can look  live in the browser console during scorm playbak)

 

I already have tested the package in scorm cloud which is working fine and it's where I noted in the history records that cmi.core.score.raw is sent after each answer which holds the actual scores.
Hence I
 take that cmi.core.score.raw this the correct statement that needs to be used to save the score in opigno for SCORM lessons.

 

Profile picture for user James Aparicio
James Aparicio

Hi markusd1984,

Hi markusd1984,

You want to share this specific package so i can take a look?

To debug you can use the dpm in the function i told you to check if its storing the info.

If you want to check if your package is beeing correctly recognized as 1.2 you can check function opigno_scorm_ui_render_player function in opigno_scorm_ui.module.

Best regards

markusd1984

scorm score received but doesn't show in lesson results

Thanks James,

Sorry I'm new to debugging. I managed to use the devel module and insert the depm();  which confirmed the package is recognised as 1.2. 

Also used $message = "scorm version 1.2"; watchdog('my_module', $message);  to record it in /admin/reports/dblog :)

 

 

Then I used watchdog('my_module', $raw);  which logged the score of 95 and I also found in the database under opigno_scorm_scorm_cmi_dat the records of cmi.core.score.raw .

 

But why is the lesson not displaying a green 95 as a score instead of the green "100"? 
Is that an issue with the view settings?


It's also showing as 100 in the Lesson Results for that user, which means one doesn't know how well a user has passed or when they failed by how much / little.

 

 

Profile picture for user James Aparicio
James Aparicio

Hi Mark,

Hi Mark,

What is the max score you have configured if you go to node/xxx/questions?

Maybe you have the max score as 1? That would explain the issue you are having? If it is set as max score 1 then that 85% coming from scorm is then set to either 0 or 1.

The quiz module supports values up to 99.  For scorm packages you should use the value of 50. So that you have a max of 1% difference between the scorm result and the lesson result.

Best regards

markusd1984

INDEED, thanks! Option to hide points and show only score

Yes I had it set to 1, mainly because from a user experience it can be confusing to show they got 45 out of 50 possible points when they actually achieved a 90% score (and it's not possible to use a point system of 100). 


Setting it to 50 worked for me, great thanks James.  Few points I discovered

1) I think it might be worthwhile to consider perhaps including a notice for people that the max score of 50 is required for scorm packages or use a function to detect it and prevent it from editing to avoid this issue.

2) Ideally for individual lesson an option (or automatically for SCORM quizzes) to hide the "You got x of x possible points" in the display and email confirmation - when not required (to only show the scoring).


3) One thing I don't fully understand is the avg course score 
https://opigno.atlassian.net/wiki/spaces/OUM/pages/361940/User+statistics

Is this supposed to help compare a users score against results of all participated users in the course? 
Example if 3 out of 4 have passed the course with 100% and one failed 0% the average course score would be 75%?

In my case with just one lesson (that scorm package) it shows 70%. (I have 4 users 100%, 1x 90% and 2x 0%)

4) I actually went into the lesson results view and clicked the delete button for both users of 0%
(A typical scenario can be users who opened a lesson just to look at it and having clicked Finish which I expect then would
 screw the average course score). 


But even though the results disappeared in the lesson view, they are still showing in the Course > Student Results ,
as well as in the user profile course results and under their "My achievements"
/user/%/achievements | I also noticed that the COURSE NAME (Failed - see details) hyperlinks to /node/%/my-quiz-results but would think it's supposed to link to the actual user's individual results page?).