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

tutorial leads to serialization error #5

Closed kojikato closed 12 years ago

kojikato commented 12 years ago

_ERROR_Object reference not set to an instance of an object at ScormSerialization.Unity_ScormBridge.Get (System.String identifier, System.Type EDT) [0x00000] in :0 at ScormSerialization.ScormDeSerializer.DeserializeIntegral (System.Object inobject, System.Type elementtype, ScormWrapper wrapper) [0x00000] in :0 at ScormSerialization.ScormDeSerializer.DeserializeObject (System.Object inobject, System.Type otype, ScormWrapper wrapper) [0x00000] in :0 at ScormSerialization.ScormDeSerializer.Deserialize (ScormWrapper wrapper) [0x00000] in :0 at ScormManager.Initialize_imp () [0x00000] in :0 Assembly-CSharp

Environment: Windows 7 Pro Browser: Internet Explorer 9 Unity: 3.5 2f2 Pro, iPhone Pro, Android Pro RAM: 8GB CPU: i7 Moodle: installed from Microsoft Web Platform Installer Database: MySql SCO: tutorial game, editted per instruction Repro:

  1. log in as admin into moodle
  2. create a new course
  3. register admin as a student
  4. go to course editting, add a SCO package
  5. browse to tutorial output zip package
  6. switch over to student role
  7. try to work thru the course
  8. Unity boots up, and skybox appears. But it stops there due to the error at the top of this issue report
rchadwic commented 12 years ago

We believe we've located this bug. It's related to the console.log function in JavaScript. In IE, the console.log function is not available until after the user has opened the debug console. This line of JS fails, never sends the data back to Unity, and the Unity code dies after a timeout period. This should have been addressed by the most recent download. I see that the blog post link is not updated, but the file in the downloads section should be. Please check that you are using the 1.1 beta, not the 1.0. Here's a link: http://www.adlnet.gov/wp-content/uploads/2012/06/scorm4unity.zip