-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scorm package doesn't show up on OpenEDX #35
Comments
Hi Mario and thanks for the report, I just updated the Exporter, so that the there is no black-screen anymore. I tried this with the following command:
Although it should load the course now, it was not possible in my case to store the state in the backend within the sandbox.openedx.org ... I added an error-message, which indicates that the SCORM-package cannot access the SCORM-API. I tried this also with the official SCORM-demos here: https://scorm.com/scorm-explained/technical-scorm/golf-examples/ The result was the same, their content could not be loaded either. I think this this has to be enabled for edX, as it is described here in section Installation https://github.com/overhangio/openedx-scorm-xblock Then, as I hope, the state should be also stored within the backend. |
Hi, I tested your changes but unfortunately I don't notice any differences. In openEDX I couldn't find the Scorm API calls made but using the developer tools I see this error when loading the SCORM package: So it seems that the SCORM2004 javascript is somehow not parsed correctly in OpenEDX. |
I updated the exporter, this error can only be caused if no From the log, I can see that this course is not rated, could you try it in both modes, rated and not rated? Kind regards ;-) |
Hi, Sorry if this is a dumb remark but just replacing the JSON.Parse with Utils.jsonParse doesn't work for me. Browser complains it doesn't find the Utils module.
_ Maybe there is a straigtforward solution for a Javascipt/Nodejs developer but that is not my strong suit so not sure how to tackle this. I wonder if you are using a valid alternative JSOn parser. Quick search on the internet and I don't find really any reference to a Utils module that provides a jsonParse function .. but again...I'm not a Javascript/Nodejs developer so I might be wrong (probably :-) ) |
I rebuild the app with a newer version of npm and node. This error should actually not happen, and might be caused due to some wrong file-packing. Could you try to uninstall the exporter and then installing it again and see if the problem persits?
export function jsonParse(json: string) {
try {
return JSON.parse(json)
} catch (e) {}
return null
} |
It indeed works better now. SCORM package is shown now in OpenEDX. |
It must be a rated course, this is commonly set within the LMS. If the course is rated, then the As described in section 10.38.4. Uploading the SCORM content, scored has to be set to true. https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/scorm.html However, if this does not work, I could also add a special option for this case ... your screenshot indicates, that there is no mode set ... See the output of |
Hmm, still no white smoke unfortunately. In my local Openedx, the cmi.mode API call still returns an empty string and notice also the error "Cannot write to cmi.suspend" In sandbox Openedx it can't even open an API Handle. I tested with --scorm-iframe as option but same result. I'm using latest OpenEDX 'palm' release published by Tutor. It starts to smell like issue with OpenEDX but maybe you have more insights here.. I'm still rather new to this |
do you have a docker-compose or something equal, so I can test it locally on my machine? You could also try out the different and official SCORM examples from here: https://scorm.com/scorm-explained/technical-scorm/golf-examples/ ... if they produce the same results or show a different behavior ... let me know ... |
The SCORM examples from Scorm.com are the ones I have been using since the beginning as reference to validate that my LMS is properly configured and they work as intended in my OpenEDX installation. There I see the scorm'sAPI calls reporting status/score/success state going to LMS . My openEDX installation is a plain vanilla Openedx installation using tutor (https://docs.tutor.overhang.io/) with nu custom made plugins. |
Sure, you can write me at LiaScript@web.de ... |
You have mail ;-) |
After some trials I took a look into the code, turns out that not the full SCORM standard is supported: there are only a hand full of settings ... Since I cannot get the state in which the "viewer" of a course is attempting the course, I would suggest, that I would add another option, that stores the state and rating in every situation... |
Indeed, the scorm xblock implementation indeed doesn't support the cmi.mode command. I see that you opened an issue in the repo (overhangio/openedx-scorm-xblock#43) . Thanks! Funny that the was not reported so far by anyone else since this "cmi.mode" command seems an important 'basic' command to handle. |
Just uploaded a new version with the |
Works like a charm. |
You can define different values/scores per quiz by default every quiz is 1 point, but you can redefine this per quiz ... ... if you, for example have 20 points and define a masteryScore of 80 in the commandline, that means, the course should be solved if 16 points were achieved (and then you should get the rating that is set by the LMS) ... I hope this helps otherwise I am happy to assist ;-) |
Using the liascript exporter, I generated a very basic simple Scorm package from a Markdown file. This scorm package:
.. but it's not showing in OpenEDX.
In OpenEDX the scorm package is accepted and uploaded but when trying to view it, only a blank window is shown. Similar behaviour is with our own OpenEDX installation or the OpenEDX sandbox environment (https://sandbox.openedx.org/)
I tried the different SCORM parameters that the Liascript exported provides (scorm formats, scorm-iframe, scorm-embed,....) but so far no combination that gives any result. Weird thing is that OpenEDX also doesn't return any error or whatsoever so no sure how to debug this.
In attachment the MD file and the scorm package generated from it using liaScript exported that doens't get shown in OpenEDX
helloworld.md
helloworld.zip
The text was updated successfully, but these errors were encountered: