slakinov Posted October 29, 2014 Share Posted October 29, 2014 I initially tried out the examples from the git repo on my localhost and noticed a lot of them didn't work, so I looked at the online versions too and the same ones don't work there either... I'm on Win7 64bit running the latest Chrome. Here are a few that aren't working for me (black screen with some console errors) http://examples.phaser.io/_site/view_full.html?d=demoscene&f=unlimited+bobs.js&t=unlimited%20bobshttp://examples.phaser.io/_site/view_full.html?d=ninja%20physics&f=ninja+aabb+vs+tile.js&t=ninja%20aabb%20vs%20tilehttp://examples.phaser.io/_site/view_full.html?d=audio&f=protracker.js&t=protracker + loads more Any ideas? Link to comment Share on other sites More sharing options...
lewster32 Posted October 30, 2014 Share Posted October 30, 2014 What are the errors? Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 Recognised the same issue in chrome + FF OSX 10.10. - After selecting a phaser version the example loads certainly.I'm not on my desktop yet - I will post the errormessage later. Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 phaser.io was down just this minute, could it be? this is my console on webkit:index: (phaser.io)Failed to load resource: net::ERR_TIMED_OUT http://fonts.googleapis.com/css?family=Lato:300,900since this should have nothing to do with the examples.in an example page all i get is:GET https://cdn.rawgit.com/photonstorm/phaser/undefined/build/phaser.js?_=1414675476179 jquery-2.0.3.min.js:6Failed to load Phaser.js from github, falling back to local copy phaser-viewer.js:49 Link to comment Share on other sites More sharing options...
lewster32 Posted October 30, 2014 Share Posted October 30, 2014 The Google font should load fine - that looks like it's probably an issue at your end; certainly I can open the URL here. The file being downloaded from rawgit for some reason isn't being given a version by default (hence the 'undefined' bit in the middle) so that's probably an issue with the JavaScript that runs the examples. Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 The font http://fonts.googleapis.com/css?family=Latoworks fine if i paste the link. But still getting the error on phaser.io (safari, chrome & FF); since this has nothing to do with the examples we can ignore this it hink.More Errors in examples (listet above).This: http://examples.phaser.io/_site/view_full.html?d=demoscene&f=unlimited+bobs.js&t=unlimited%20bobsgets me the following:Failed to load resource: the server responded with a status of 404 (OK) https://cdn.rawgit.com/photonstorm/phaser/undefined/build/phaser.js?_=1414677539603Failed to load Phaser.js from github, falling back to local copy phaser-viewer.js:49 Phaser v2.1.0 | Pixi.js v1.6.1 | Canvas | WebAudio http://phaser.io ♥♥♥ VM33:22711Uncaught TypeError: undefined is not a function view_full.html:58The last one themes to be the problem. Link to comment Share on other sites More sharing options...
Sam Posted October 30, 2014 Share Posted October 30, 2014 The other listed examples do also have some errors >in-code<Link: http://examples.phaser.io/_site/view_full.html?d=audio&f=protracker.js&t=protracker Failed to load resource: the server responded with a status of 404 (OK) https://cdn.rawgit.com/photonstorm/phaser/undefined/build/phaser.js?_=1414677542607Failed to load Phaser.js from github, falling back to local copy phaser-viewer.js:49 Phaser v2.1.0 | Pixi.js v1.6.1 | Canvas | WebAudio http://phaser.io ♥♥♥ VM33:22711Failed to load resource: the server responded with a status of 404 (Not Found) http://examples.phaser.io/plugins/ProTracker.jsUncaught SyntaxError: Unexpected token <Uncaught ReferenceError: Protracker is not defined VM34:68Uncaught TypeError: Cannot read property 'position' of undefined Link to comment Share on other sites More sharing options...
lewster32 Posted October 30, 2014 Share Posted October 30, 2014 Most of the problems seem to be down to incorrect URLs - again undefined is appearing in place of the version number, and it looks like the location of the plugins has been changed (or they've been removed altogether from the Phaser website) - I guess Rich will be able to shed some more light on these issues. Sam 1 Link to comment Share on other sites More sharing options...
rdnOutput Posted October 31, 2014 Share Posted October 31, 2014 I only looked at ProTacker, but the plug-ins folder doesn't exist in the folder structure on the website. I would like to add that protracker is not working in the copy you download from github either. https://github.com/photonstorm/phaser-examples Using a local copy of the examples, I forced the URL of phaser from rawgit to cdnjs to see what happened and it still didn't work. I wasn't surprised, BUT there was one less error It also might be nice to make him a list of all the broken ones so they can be addressed in one shot. Most of the one's I have used this week do work though. Link to comment Share on other sites More sharing options...
jisseb Posted October 31, 2014 Share Posted October 31, 2014 I have also problems with ProTracker example. I'm using Firefox 33.0.1 for my tests. I have put the corrects files and directories on my web server..├── assets│ ├── audio│ │ └── protracker│ │ ├── act_of_impulse.mod│ │ ├── elysium.mod│ │ ├── enigma.mod│ │ ├── global_trash_3_v2.mod│ │ ├── macrocosm.mod│ │ ├── sd-ingame1.mod│ │ └── shampoo.mod│ ├── pics│ │ └── vulkaiser_red.png│ ├── skies│ │ └── sky2.png│ └── sprites│ ├── soundtracker.png│ └── vu.png├── index.html├── protracker.js└── ProTracker.js I get this error: ReferenceError: webkitAudioContext is not defined protracker:120TypeError: module.channel[0] is undefined Link to comment Share on other sites More sharing options...
andrewzuku Posted January 21, 2015 Share Posted January 21, 2015 Has this been resolved yet? Maybe I'm just not understanding something? I'm still not able to view many examples on the site. Eg:http://examples.phaser.io/_site/view_full.html?d=ninja%20physics&f=ninja+tilemap.js&t=ninja%20tilemap In Firefox 35.0 under Windows 7 Ultimate 64-bit, I get the following console logs, and errors:"Failed to load Phaser.js from github, falling back to local copy""Phaser v2.2.2 | Pixi.js v2.2.0 | WebGL | WebAudio | http://phaser.io"X TypeError: c.Physics.Ninja is not a constructorX TypeError: tiles is undefined Link to comment Share on other sites More sharing options...
rich Posted January 21, 2015 Share Posted January 21, 2015 Ninja Physics isn't enabled in Phaser by default any more. Those examples will need to be run locally with your own custom build. Link to comment Share on other sites More sharing options...
andrewzuku Posted January 21, 2015 Share Posted January 21, 2015 Oh OK, cool I was able to make the online Ninja Examples work by choosing v2.0.7 in the "Phaser Version" drop-down (top-right of the example page). At the same time, I think it's a little disappointing that the official site has broken examples, with no explanation why. Bilge 1 Link to comment Share on other sites More sharing options...
Bilge Posted January 22, 2015 Share Posted January 22, 2015 Agree with Andrew. "You must run them locally" is not a good answer to broken examples. If you're committed to not supporting them then they should be removed entirely but the better solution is to fix them. Link to comment Share on other sites More sharing options...
Recommended Posts