totallybueno Posted February 13, 2017 Share Posted February 13, 2017 I finished my game but now that I checked on IE I just realised I have a few issues (that don´t exist on Chrome/FF) to fix... The first thing is with an XML where I load content for the game, this is working perfectly on Chrome/FF but not on IE and I guess (but not sure at all) it´s a security issue. The thing is that this code works on Chrome/FF but it´s not working on IE, can anyone tell me why? I´m getting the right xmlDocument on Chrome/FF and null on IE this.game.load.text('xmlQuestions', 'assets/questions/questions.xml'); this.questions = this.game.cache.getText('xmlQuestions'); var parser = new DOMParser(); this.questions = parser.parseFromString(this.questions, "application/xml"); console.log("################################") console.log(this.questions) console.log("################################") I´m also having a problem with this error: SCRIPT5022: IndexSizeError Tracking down the error to phaser.js I see the error is in this line: renderSession.context.drawImage(this.tintedTexture, 0, 0, cw, ch, dx, dy, cw / resolution, ch / resolution); If I comment that line I don´t have the tinted elements of the game but it works, but obviously I need those items so I need to fix this too (this is working on Chrome/FF perfectly too) As this stuff is killing me and I´m not being able to fix those two things, I´m willing to pay YOU if you help me to fix these things, just as I´m making this game almost for free, please DM me before with your budget and if we´re OK I´ll give you whatever you need. Link to comment Share on other sites More sharing options...
Milton Posted February 13, 2017 Share Posted February 13, 2017 You'll get help for free if you just put the problems online... Link to comment Share on other sites More sharing options...
totallybueno Posted February 13, 2017 Author Share Posted February 13, 2017 1 minute ago, Milton said: You'll get help for free if you just put the problems online... The problems are online, but I can´t make the game "public" so I can show the link only to someone willing to help. I wish I could post the link to everyone but I can´t Link to comment Share on other sites More sharing options...
Milton Posted February 13, 2017 Share Posted February 13, 2017 Just 'copy' the problems to a new project... Link to comment Share on other sites More sharing options...
totallybueno Posted February 13, 2017 Author Share Posted February 13, 2017 10 minutes ago, Milton said: Just 'copy' the problems to a new project... I uploaded a basic example here http://totallybueno.com/juegos/sss/ With Chrome/FF the game works fine but with IE you´ll see it crashes just a few seconds after it begins... Link to comment Share on other sites More sharing options...
Milton Posted February 13, 2017 Share Posted February 13, 2017 Haven't got time now, I'll have a look later. Got it running on localhost, and indeed runs fine on FF/Chrome, not on IE... totallybueno 1 Link to comment Share on other sites More sharing options...
totallybueno Posted February 13, 2017 Author Share Posted February 13, 2017 2 minutes ago, Milton said: Haven't got time now, I'll have a look later. Got it running on localhost, and indeed runs fine on FF/Chrome, not on IE... Thanks mate, let me know if you find something... struggling with it the last couple days and no progress at all Link to comment Share on other sites More sharing options...
Milton Posted February 13, 2017 Share Posted February 13, 2017 Pixi can't seem to create a WebGL context on IE11, so it uses Canvas, strange (@rich, 2.7.3 should work?). Your game works fine on FF/Chrome Canvas, so we'll have to figure out why IE11 doesn't like it... Link to comment Share on other sites More sharing options...
Milton Posted February 14, 2017 Share Posted February 14, 2017 IE11 is right actually. And less forgiving... Just add these lines in front of the tinted drawImage call, and you're good to go. if (cw > this.tintedTexture.width) cw = this.tintedTexture.width; if (ch > this.tintedTexture.height) ch = this.tintedTexture.height; Can't seem to reproduce the XML problem, works fine for me. Link to comment Share on other sites More sharing options...
Tom Atom Posted February 14, 2017 Share Posted February 14, 2017 21 hours ago, totallybueno said: I´m getting the right xmlDocument on Chrome/FF and null on IE Any chance you are testing your IE with IIS server or server used by Visual Studio (which is also IIS, I think)? I had this problem, and had to look in server config for this line: <mimeMap fileExtension=".xml" mimeType="text/xml" /> to replace it with this: <mimeMap fileExtension=".xml" mimeType="application/xml" /> If using Visual studio, you will find it in .vs/config/applicationhost.config (.vs directory is hidden by default) These problems occured when Phaser introduced file type mapping in loader in 2.6.0 version: https://github.com/photonstorm/phaser/blob/master/v2/src/loader/Loader.js#L122 Link to comment Share on other sites More sharing options...
totallybueno Posted February 14, 2017 Author Share Posted February 14, 2017 Thanks @Milton, not crashing now! (I want to delete this picture but I can´t, no worries about this :D) Milton 1 Link to comment Share on other sites More sharing options...
totallybueno Posted February 14, 2017 Author Share Posted February 14, 2017 1 hour ago, Tom Atom said: Any chance you are testing your IE with IIS server or server used by Visual Studio (which is also IIS, I think)? I had this problem, and had to look in server config for this line: <mimeMap fileExtension=".xml" mimeType="text/xml" /> to replace it with this: <mimeMap fileExtension=".xml" mimeType="application/xml" /> If using Visual studio, you will find it in .vs/config/applicationhost.config (.vs directory is hidden by default) These problems occured when Phaser introduced file type mapping in loader in 2.6.0 version: https://github.com/photonstorm/phaser/blob/master/v2/src/loader/Loader.js#L122 Tom Atom, I fixed the xml thing yesterday, in a weird way (loading plain text and parsing it later as xml) but it´s working now so I´m not gonna touch that Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts