Forums
Hello,
I have some modules with a unique SCORM (external package) activity. At the end of the activity, when I clicked on "Next", I got a crash.
I searched and found that the score returned by my activity was -10 and did a crash because it was not between 0 and 10 ($this=>min and $this=>max in opigno-lms/vendor/rusticisoftware/tincan/src/Score.php
I added, at the line 121, these lines and now it does not crash:
if($value< 0){
$value *= -1;
}
But it's an ugly quick win, I don't understand really what I did and Opigno now shows me scores of -10 of 10 at the end of a module.
Is there a problem in my SCORM or is it another thing?
I needed, I can upload the SCORM files somewhere.
Hi Damien,
Hi Damien,
Basically Opigno is not designed to handle negative scores for modules and trainings.
It can have some activities with some questions inside, some of them giving negative credits, other ones giving positive credits, but the overall score for the activity should be positive.
I don't know if this would be compliant with your use case, but what could be done on Opigno side would be to check the activity score, and if it's negative then to replace it with 0.
Best regards,
Hi Axel,
In reply to Hi Damien, by axel
Hi Axel,
In reply to Hi Axel, by damien.raemy
Hi damien.raemy,
Hi damien.raemy,
What version of scorm are you using? 1.2 or 2004?
And what Opigno version are you using?
Best regards
In reply to Hi damien.raemy, by James Aparicio
Hi James Aparicio,
Hi Damien,
Hi Damien,
This will be fixed in the next release.