Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ben06feb · Aug 27, 2016 at 06:49 AM · webgl

WebGL build with SCORM 1.2 is not working in LMS

Hi,

I have integrated SCORM 1.2 with my game which produces WebGL output, if we play the WebGL out directly in browser its working fine and not working in LMS. Found that the game play script included in the game causing the issue, when I disable it and upload the build in LMS its loading (can't proceed with game-play, since script is disabled)

In this script I am using GAF function, Xml data fetching from file placed in StreamingAssets folder, not using any WWW class.

SCORM asset pack included in game, https://www.assetstore.unity3d.com/en/#!/content/53523

Have no idea which function restricting the game from running, could you please have a look on this and send me the feedback.

Error message

An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was: uncaught exception: abort(-1) at jsStackTrace@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:22814 stackTrace@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:22997 abort@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:33:51231 _pthread_create@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:203971 dF@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 aD@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 bM@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 fM@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 tv@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 nll@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:10:1 mll@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:10:1 XIn@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 invoke_iiiii@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:342761 TAi@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 pui@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 nui@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 _qm@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 rui@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 Psm@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 Khi@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 orm@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 cQh@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:24:1 aQh@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:24:1 fai@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 MJn@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 invoke_viiii@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:351540 eai@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:21:1 ajm@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 fof@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:6:1 dof@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:6:1 TLl@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:10:1 ZKn@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 invoke_iiii@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:364177 lL@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 qv@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:18:1 Lmb@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:16:1 hJb@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:16:1 LGb@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:16:1 NGb@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:16:1 sGb@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:16:1 C5a@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:11:1 XDb@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:16:1 AQd@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:8:1 AKn@blob:https://cloud.scorm.com/c6a9b11a-056a-c345-a371-ff2ea616e95f:26:1 Runtime.dynCall@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:6885 Browser_mainLoop_runner/<@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:208911 Browser.mainLoop.runIter@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:239237 Browser_mainLoop_runner@blob:https://cloud.scorm.com/5ebb59d0-0f11-ee4b-bcfe-4e082561a55d:1:208807

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ben06feb · Aug 30, 2016 at 08:05 AM

Hi,

Access StreamingAssets path folder using WWW class

public string filePath = Application.streamingAssetsPath + "/UserDetails.xml"; public string result = "";

  void Awake () 
  { 
  filePath = Application.streamingAssetsPath + "/UserDetails.xml"; 
  }
  
  void Start () 
  { 
  StartCoroutine(userDetailsXmlPath() );
  }
  
        IEnumerator userDetailsXmlPath() 
        {
            print (filePath);
    
            if (filePath.Contains ("://") || filePath.Contains (":///")) {
                WWW www = new WWW (filePath);
                yield return www;
                result = www.text;
    
                print (result);
                FetchUserDetails ();
            } else {
                result = File.ReadAllText (filePath);
    
                print (result);
                FetchUserDetails ();
            }
        }
    
        public void FetchUserDetails()
        {
            XmlDocument userXml1 = new XmlDocument ();
    
            userXml1.LoadXml(result);
    
    
            XmlNodeList userList = userXml1.GetElementsByTagName ("user");
    
            foreach(XmlNode userValue in userList)
            {
                XmlNodeList userContent = userValue.ChildNodes;
                objUser = new Dictionary<string, string>();
    
                foreach(XmlNode value in userContent)
                {
                    objUser.Add (value.Name, value.InnerText);
                }
    
                userFullDetails.Add (objUser);
    
                userCountInXml = userList.Count;
    
                userId = new string[userList.Count];
                questionSetOfUser = new string[userList.Count];
            }
    
            AssignUserXmlValuesToArray ();
        }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

When Unity3D finally supports WebGL? 2 Answers

Unity 4 compatibility to Unity 5 WebGL 1 Answer

GL build won't run on Chrome 1 Answer

Issue with shaders and WebGL 1 Answer

WebGL memory size in Player Settings? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges