Report any technical problems you discover and discuss solutions.

Problems importing scorm in moodle version 2.3

Plus d'informations
il y a 13 ans 4 jours - il y a 13 ans 4 jours #511 par rlago
Réponse de rlago sur le sujet Problems importing scorm in moodle version 2.3
Hi,

I've exported the scorm package as scorm 2004 and tested it in moodle version 2.3 and 2.5 and it happens something very strange. The reports shows a score value that I think it's related somehow with the pages visited and the status is incomplete most of the times , althougth sometimes it is complete. In this latter case (complete status) if the user attempts the scorm one more time the scorm, the score value changes to another value and the status changes to incomplete. I think that behaviour is even worst than the scorm 1.2 one.

I will try scorm 1.2 with 'SCORM tracking mode' to minimal to see what happens in this way. I'll let you know about the results.

Thanks in advance.

Rosa
Dernière édition: il y a 13 ans 4 jours par rlago.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 13 ans 4 jours #512 par tom
Réponse de tom sur le sujet Problems importing scorm in moodle version 2.3
I'll have a look.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 13 ans 4 jours #513 par rlago
Réponse de rlago sur le sujet Problems importing scorm in moodle version 2.3
Hi,

I was trying to set 'SCORM tracking mode' to minimal in xerte toolkits, but I can't find anywhere to configure that value. What do I have to change to configure it?

Thanks in advance.
Rosa

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 13 ans 4 jours #514 par tom
Réponse de tom sur le sujet Problems importing scorm in moodle version 2.3
It's an optional parameter. See screenshot.


Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 13 ans 4 jours - il y a 13 ans 4 jours #515 par rlago
Réponse de rlago sur le sujet Problems importing scorm in moodle version 2.3
Hi,

I've tested the scorm after setting 'SCORM tracking mode' to minimal (both minimal values) and I get the same problem. If I enter the scorm and visit all pages, I get a score value different from 100 and the status value is 'passed'. If I enter the scorm again and I visit a number of pages less than the total, I get another score value and the status value is 'incomplete'.

It's a very strange result.

If you change the xttracking_scorm1.2.js and change the getSuccessStatus() function like this

function getSuccessStatus()
{
if (this.lo_type != "pages only")
{
if (this.getScaledScore() > this.lo_passed)
{
return "passed";
}
else
{
return "failed";
}
}
else
{
if (this.nrpages <= this.pages_visited)
{
//return "passed"; //previous value
return "completed";
}
else if(this.pages_visited)
{
return 'incomplete';
}
}
return "";
}

you get a completed status if you visit all the pages in one attempt and a score value of the number of visited pages. But if you attempt the scorm again and visit less pages than the total you get a score value equal to the number of pages visited this attempt and a incomplete status. I think that it should be readed the score stored in the LMS when entering the scorm in order to make the package to work properly. What do you think?

Well. I've readed the previous visted pages when entering the scorm by reading the 'cmi.core.score.raw', but it doesn't work again. I've made the following changes in order to do so

function XTInitialise()
{
doLMSInitialize();
this.pages_visited = doLMSGetValue('cmi.core.score.raw'); //changed to read the number of pages visited
}


and

function ScormTrackingState()
{
this.currentid = "";
this.currentpageid = "";
this.trackingmode = "full";
this.scoremode = "last";
this.nrpages = 0;

//this.pages_visited=0; //changed for the line below
if (this.pages_visited==null) this.pages_visited=0;
...

It reads the pages visited before without problems, but it doesn't work because I think that the identity of the previous visited pages should be stored in the LMS somehow. I think that it could be stored in the variable "cmi.suspend_data" as it appears that you are not using. Am I wrong?


Thanks in advance.
Rosa
Dernière édition: il y a 13 ans 4 jours par rlago.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 1.009 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo