Sign in to follow this  
dec0y

Unable to load phaser.js and game.js while using WebGL in CocoonJS

Recommended Posts

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.js

It 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 :)

Share this post


Link to post
Share on other sites

to shed a bit more light as I have been digging.

I use the generator-phaser-official

Phaser 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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

@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 :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.