adlnet-archive / scorm4unity

The Unity-SCORM Integration Toolkit is a demonstration of how content developers can use a game engine to create SCORM-Conformant content.
34 stars 17 forks source link

Course fails to commit. (tutorial example) #4

Closed Parka closed 11 years ago

Parka commented 12 years ago

Using Moodle 2.2 and Google Chrome. This is the log output before starting the game:

GetValue(cmi.completion_threshold) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.launch_data) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.location) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.max_time_allowed) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.progress_measure) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.scaled_passing_score) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.suspend_data) failed. 403: Data Model Element Value Not Initialized scorm.js:715 GetValue(cmi.time_limit_action) failed. 403: Data Model Element Value Not Initialized scorm.js:715

I get no log output when winning or losing the game. I have no idea about the specifics of SCORM, so I'm a little crippled for giving you more details. I've also tried to do a DebugPrint on SubmitStudentData_imp, but didnt get output either.

rchadwic commented 12 years ago

These serialization errors are actually expected. It's just that the SCO has no way of knowing whether or not there is data in these elements without trying to parse it. Can you send any more data on when or how you call ScormManager.Commit()?