Skip to content
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

throwSCORMError : 104: Content Instance Terminated #23

Open
sureshmariadass opened this issue Feb 3, 2020 · 3 comments
Open

throwSCORMError : 104: Content Instance Terminated #23

sureshmariadass opened this issue Feb 3, 2020 · 3 comments

Comments

@sureshmariadass
Copy link

Hi @gabrieldoty

In SCORM 2004, when i click next page like previous or continue it have terminated. How to fix this issues? Please help me.

image

Advance thanks for your valuable reply.

@xob
Copy link
Collaborator

xob commented Feb 10, 2020

It appears that your SCO is trying to initialize the API after terminating it.

As per the SCORM 2004 API specifications, REQ_4.4:

If the communication session has been terminated and the Initialize() API method is invoked, the LMS shall set the error code to Content Instance Terminated (104) and return false.

The API is designed to be used by only one SCO. To change to another SCO (which I assume is what your previous and continue buttons do), you would have to instanciate a new API as well.

@sureshmariadass
Copy link
Author

sureshmariadass commented Feb 27, 2020

Thanks @xob for your reply.
SCORM 2004 unable to return the score

@xob
Copy link
Collaborator

xob commented Feb 27, 2020

SCORM 2004 unable to return the score

I believe that if the API is unable to return the score, it may be that the SCO has not set it., or maybe you are not looking at the correct path.

In SCORM 2004, the score is located in cmi.score.raw but in SCORM 1.2 it is located in cmi.core.score.raw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants