scorm interruption and start back

scorm interruption and start back

от andrea giorgini -
Количество ответов: 16
Hi all,

I would like to have this behaviour: when a user stops a lesson (which actually is an imported scorm - flash movie), when he comes back the lesson should start at the same point where it was left. I know this is possible (it's a scorm definition), just wonder how to do it, I tried with docebo and worked out of the box, would like to do the same with Moodle.

Thanks a lot

Andrea
В ответ на andrea giorgini

Re: scorm interruption and start back

от Amy Groshek -
Hi Andrea,

The SCO does this, not Moodle.

On first attempt, the (SCORM 1.2 compliant) SCO updates cmi.core.lesson_location whenever the location in the content changes. It calls LMSCommit() to persist this data to the Moodle LMS.

When SCO is accessed again, it initializes, then calls LMSGetValue("cmi.core.lesson_location"). The LMS returns the string value stored in that element. The SCO uses that value to display the correct view to the learner.

You can turn on debugging and see these transactions between SCO and LMS taking place.

More info here:
http://docs.moodle.org/en/SCORM_FAQ#SCORM_Information
http://docs.moodle.org/en/SCORM_FAQ#Debugging
http://docs.moodle.org/en/SCORM_FAQ#Asking_for_Help_in_the_SCORM_Forum

Regards,
Amy
В ответ на Amy Groshek

Re: scorm interruption and start back

от andrea giorgini -
Alright I found that the debugging item is under development, but even if I enabled the first 2 checkboxes nothing happens...

thanks
В ответ на andrea giorgini

Re: scorm interruption and start back

от Amy Groshek -
2.0 is not a stable release. If you are testing SCORM functionality on 2.0, that's fine, but it's not a good environment for SCORM development yet. Install the latest 1.9 instead.

-A
В ответ на Amy Groshek

Re: scorm interruption and start back

от Dan Marsden -
Изображение пользователя Core developers Изображение пользователя Particularly helpful Moodlers Изображение пользователя Peer reviewers Изображение пользователя Plugin developers Изображение пользователя Plugins guardians Изображение пользователя Testers Изображение пользователя Translators
debugging on Moodle 2.0 for SCORM is slightly different - we now have a new setting in the page admin > plugins > Activities > Scorm

it's at the bottom of the page - if you're using an older 2.0 install the "Default" api mask is incorrect - it should be:
.*
not
/.*/

The api mask is quite nice - it means you can enable debugging under certain conditions - if you are logged in using the admin user (username admin) you can set the api mask to:
admin.*
then the debug will only display for the admin user
- there are a few other ways to use the mask - the comments in the page should describe it.
В ответ на Dan Marsden

Re: scorm interruption and start back

от andrea giorgini -
Hey Dan,

thank u very much 4 your answer. So I did enable allowapidebug and set apidebugmask. But then what shall I do? Just watch the lesson? That's what I did, but nothing happened...

Thanks again

Andrea
В ответ на andrea giorgini

Re: scorm interruption and start back

от Dan Marsden -
Изображение пользователя Core developers Изображение пользователя Particularly helpful Moodlers Изображение пользователя Peer reviewers Изображение пользователя Plugin developers Изображение пользователя Plugins guardians Изображение пользователя Testers Изображение пользователя Translators
could be a bug there, but it worked for me in the latest release - are you using the latest moodle 2.0 code?

lesson? - are you using the SCORM module and viewing a SCORM activity or a lesson?
В ответ на Dan Marsden

Re: scorm interruption and start back

от andrea giorgini -
Yes I'm using the latest code I think (how do I verify that?). I'm sorry but I'm kind of newbie with this e-learning stuff, and I don't know the difference between activity and lesson...

thanks
В ответ на Amy Groshek

Re: scorm interruption and start back

от andrea giorgini -
Alright guys,

here is the big question: I did check out the code and those functions are there, I'm quite sure the SCO is fine (even because with docebo it works perfectly). So is it possible that version 2 of Moodle, being a preview release, is not ready for this feature?

Also, I enabled debugging (as I saw many warnings and notice), but nothing happens when I play my flash scorm. I will give it a try with firebug now.

As I should start with a big project in September, should I definitely use 1.9? That would make me sad подмигиваю

Thanks a lot

Andrea
В ответ на andrea giorgini

Re: scorm interruption and start back

от andrea giorgini -
Maybe I got the point: when I load the flash, there is a JS error:

getLoggingActive is not defined in player.php line 134

if (getLoggingActive() == "A") {


I suppose then the following code will not be loaded... am I right?

So the questions are still there... should I wait for the stable release or roll back to 1.9?

Thanks a lot

Andrea
В ответ на andrea giorgini

Re: scorm interruption and start back

от Amy Groshek -
Things that we still do not know which we need to know in order to help you:

1) SCORM package has not been provided
2) SCORM package has not been tested in Moodle 1.9 (we don't even know what date your 2.0 install came from)
3) No API debugging log from testing the SCORM package

http://docs.moodle.org/en/SCORM_FAQ#Asking_for_Help_in_the_SCORM_Forum
В ответ на Amy Groshek

Re: scorm interruption and start back

от andrea giorgini -
Hey Amy,

thank you, my fault. Now the problem with the scorm is that the size is 100MB... how could I provide it? It was made with Captivate.

Even before I asked where to see the Moodle date, I could not find it.

In the end, even if I enabled debug, there are no messages when I run the scorm. The only error I could find is the javascript I mentioned before.

Thank you very much
В ответ на andrea giorgini

Re: scorm interruption and start back

от Amy Groshek -
Knowing that the package was created with Captivate helps.

The API log not showing up could just mean you've missed a setting for SCORM debugging. The debug log should be opening in a new window when you launch the SCORM package. I have tested this on 2.0 Preview 4+ and it works. Follow these instructions:
http://docs.moodle.org/en/SCORM_FAQ#Debugging_in_2.0

I still think you should test on the latest version of 1.9. Debugging is much easier to turn on in 1.9. There are downloadable packages available, so it would take only a matter of time to get one running locally.
http://download.moodle.org/windows/
http://download.moodle.org/macosx/

At the very least you should update your 2.0 install to the most current build.

We still need that debugging log to see what's being sent to the LMS.

Regards,
Amy
В ответ на Amy Groshek

Re: scorm interruption and start back

от andrea giorgini -
Hi Amy,

thanks a lot for your patience. So upgrading to the latest build actually did the trick: here is the log.

Wed, 28 Jul 2010 07:47:48 GMT: Moodle SCORM 1.2 API Loaded, Activity: uffi, SCO: ITEM-D64F41EBE6B176D2079CF2A647FEC686
Wed, 28 Jul 2010 07:47:54 GMT: LMSInitialize("", "") => 0
Wed, 28 Jul 2010 07:47:56 GMT: LMSGetValue("cmi.core._children") - student_id, student_name, lesson_location, credit, lesson_status, entry, score, total_time, lesson_mode, exit, session_time => 0
Wed, 28 Jul 2010 07:47:56 GMT: LMSGetValue("cmi.suspend_data") - => 0
Wed, 28 Jul 2010 07:47:59 GMT: LMSGetValue("cmi.interactions._children") - id, objectives, time, type, correct_responses, weighting, student_response, result, latency => 0
Wed, 28 Jul 2010 07:47:59 GMT: LMSGetValue("cmi.interactions._count") - 0 => 0
Wed, 28 Jul 2010 07:48:00 GMT: LMSGetValue("cmi.launch_data") - => 0
Wed, 28 Jul 2010 07:48:00 GMT: LMSGetValue("cmi.objectives._count") - 0 => 0
Wed, 28 Jul 2010 07:48:01 GMT: LMSGetValue("cmi.core.score._children") - raw, min, max => 0
Wed, 28 Jul 2010 07:48:01 GMT: LMSGetValue("cmi.core.lesson_location") - => 0
Wed, 28 Jul 2010 07:48:01 GMT: LMSGetValue("cmi.core.score.max") - => 0
Wed, 28 Jul 2010 07:48:02 GMT: LMSGetValue("cmi.core.score.min") - => 0
Wed, 28 Jul 2010 07:48:02 GMT: LMSGetValue("cmi.core.score.raw") - => 0
Wed, 28 Jul 2010 07:48:08 GMT: LMSSetValue("cmi.core.score.raw", "0") => 0
Wed, 28 Jul 2010 07:48:08 GMT: LMSSetValue("cmi.core.lesson_status", "incomplete") => 0
Wed, 28 Jul 2010 07:48:08 GMT: LMSSetValue("cmi.core.lesson_location", "1") => 0
Wed, 28 Jul 2010 07:48:08 GMT: LMSSetValue("cmi.core.session_time", "00:00:13") => 0
Wed, 28 Jul 2010 07:48:09 GMT: LMSSetValue("cmi.suspend_data", "B0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP0Enone$nP1Enone$nP1Enone$nP") => 0
Wed, 28 Jul 2010 07:48:09 GMT: Commit("", "") => 0
Wed, 28 Jul 2010 07:48:09 GMT: LMSCommit("AJAXResult", "true") => 0
Wed, 28 Jul 2010 07:48:09 GMT: LMSCommit("result", "true") => 0
Wed, 28 Jul 2010 07:48:09 GMT: LMSCommit("", "") => 0
Wed, 28 Jul 2010 07:48:16 GMT: Commit("", "") => 0
Wed, 28 Jul 2010 07:48:16 GMT: LMSCommit("AJAXResult", "true") => 0
Wed, 28 Jul 2010 07:48:16 GMT: LMSCommit("result", "true") => 0
Wed, 28 Jul 2010 07:48:16 GMT: LMSCommit("", "") => 0
Wed, 28 Jul 2010 07:48:16 GMT: LMSFinish("AJAXResult", "true") => 0
Wed, 28 Jul 2010 07:48:16 GMT: LMSFinish("result", "true") => 0
Wed, 28 Jul 2010 07:48:16 GMT: LMSFinish("", "") => 0

I still feel there some strange behavior, but I feel as well with the stable release everything will be fine.

Thanks a lot.

Andrea
В ответ на andrea giorgini

Re: scorm interruption and start back

от Amy Groshek -
Hi Andrea,

The value stored in the LMS that tells it what "page" in the SCO to show is cmi.core.lesson_location. In the logs above, it is gotten from the LMS as "0", then set as "1". No error is shown for either communication. What the sco does with that information is not part of Moodle. But in order to really test it I might navigate further in than the first page.

If you are navigating further in than the first page, it isn't being saved to the LMS in cmi.core.lesson_location, though it might be in the suspend_data.

Regards,
Amy