dec0y Posted August 9, 2014 Share Posted August 9, 2014 Has anyone else had this issue? While loading our game in the more powerful WebGL through CocconJS we get 4 errors that I can't seem to explain.Cannot open the javascript file 'js/game.js'. The server responded with status 404(NOT_FOUND)GET RESOURCE 'js/game.js' The server responded with status 404(NOT_FOUND)It repeats that for phaser.jsIt used to work then without any change to our game it started to do this. Keep in mind it still runs in slower canvas mode but we wont be able to get ads/leaderboards/acheivements I believe. Any help would be appreciated Link to comment Share on other sites More sharing options...
dec0y Posted August 10, 2014 Author Share Posted August 10, 2014 to shed a bit more light as I have been digging.I use the generator-phaser-officialPhaser 2.0.7 I tried it as well creating a blank project and the issue persisted. I know that this worked a week or so ago. What could have changed? Link to comment Share on other sites More sharing options...
Videlais Posted August 10, 2014 Share Posted August 10, 2014 Has anyone else had this issue? While loading our game in the more powerful WebGL through CocconJS we get 4 errors that I can't seem to explain. Well, the first question I have is to ask how you are loading your game. Are you using the URL or ZIP approach? Have you tried both? (I've had problems with the URL method in the past, so I always use ZIP now.) Keep in mind it still runs in slower canvas mode but we wont be able to get ads/leaderboards/acheivements I believe. Neither Phaser.CANVAS nor Phaser.WEBGL have any effect on CocoonJS functionality. The only thing that does is using Canvas+ or WebView+ modes (with CocoonJS files loaded) or not. If you are running Phaser.WEBGL in CocoonJS, I'm curious about how that is working for you. Most people have had problems with it in the past and I usually tell people to avoid it when possible. Link to comment Share on other sites More sharing options...
kidos Posted August 10, 2014 Share Posted August 10, 2014 I had the same issue at the beginning, make sure to add "/" (without quotes) at the end of your url.For example: http://192.168.1.15/main/ Link to comment Share on other sites More sharing options...
dec0y Posted August 11, 2014 Author Share Posted August 11, 2014 @Videlais - I had tried the URL approach for a while. I did however try the zip and it did work on WebGL. @kidos your answer was perfect. Strange how a / can make me go crazy Thank you both for your answers. Link to comment Share on other sites More sharing options...
kidos Posted August 11, 2014 Share Posted August 11, 2014 @Videlais - I had tried the URL approach for a while. I did however try the zip and it did work on WebGL. @kidos your answer was perfect. Strange how a / can make me go crazy Thank you both for your answers. no problem, glad I could help.sometimes you don't have to learn things the hard way cause someone was already did Link to comment Share on other sites More sharing options...
Recommended Posts