KevinnFtw Posted June 5, 2014 Share Posted June 5, 2014 Hi guys, Today I'm trying to get my game running in CocoonJS, the game does work perfectly in a normal desktop and mobile browsers, but I'm getting some errors in CocoonJS. The error says:Javascript Exception (Tag: 'load'): Error: Phaser.Loader. Invalid XML given at e.Loader.xmlLoadComplete(js/min/phaser.min.js:12:9823) at XMLHttpRequest.i.xmlURL._xhr.onload (js/min/phaser.min.js:12:7414) It's my first time using CocoonJS so I have no idea where the error is coming from, but it is coming from Phaser.js itself. Any ideas? Link to comment Share on other sites More sharing options...
Videlais Posted June 5, 2014 Share Posted June 5, 2014 As outlined in the Common Phaser + CocoonJS Issues thread, CocoonJS does not have XML support. Alternatives for this include either JSON parsing of the content or consider using an external library for XML support in CocoonJS. Link to comment Share on other sites More sharing options...
KevinnFtw Posted June 5, 2014 Author Share Posted June 5, 2014 As far as I know my game itself is not using any xml, but I will look into it. Thanks! Link to comment Share on other sites More sharing options...
Videlais Posted June 6, 2014 Share Posted June 6, 2014 As far as I know my game itself is not using any xml, but I will look into it. Are you using a Bitmap Font? If so, you are probably using XML. It's the same issue in this recent thread too, which might also help with some solutions for you. Link to comment Share on other sites More sharing options...
Recommended Posts