rich Posted February 17, 2016 Share Posted February 17, 2016 Update: 2.4.6 is now out, which addresses 2 severe issues in 2.4.5. I'm very pleased to announce that after a lot of work Phaser 2.4.5 is now released: http://phaser.io/news/2016/02/phaser-245-released There are over 85 improvements across the whole API. From things like Dolby Digital Sound support and integration of the EarCut library, to lots of fixes and documentation updates. Personally I'm really pleased with this release. After a lot of hard work I managed to get the GitHub issues count down from over 160 issues to just 43, and none of the remaining issues are critical priority. Many thanks to the patrons who support me in doing this (otherwise mostly thankless!) work. Phaser LTS Due to on-going development of Lazer, Phaser is soon to enter the LTS (long-term support) stage of its life. This is when we impose a feature freeze, locking the API down and responding only to bugs. This is a necessary step to allow us to focus on Lazer while still ensuring Phaser is given the support it deserves. Thousands of developers use Phaser and we've no intention of ignoring that. However with the release of 2.4.5 we will now be moderating issues opened on GitHub to this effect. Onwards and upwards PhaserEditor2D, kalevski, tips4design and 3 others 6 Link to comment Share on other sites More sharing options...
totor Posted February 17, 2016 Share Posted February 17, 2016 Awesome job! i don't get the LTS part though, 2.4.5 is the last new features version and 2.4.x are bug fixes? Link to comment Share on other sites More sharing options...
rich Posted February 17, 2016 Author Share Posted February 17, 2016 Yes, exactly that. Link to comment Share on other sites More sharing options...
rgk Posted February 17, 2016 Share Posted February 17, 2016 The release looks awesome, sadly I'm getting this error: Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)' The second it switches stages, worked on 2.4.4. Just so you know: I've been an avid open-source person for most of my youngish life. For two reason realistically, first because of the cost... you can pay huge sums and you don't even get it see the source! Reason two: its the whole experience. I have always wanted to make a game, and until recently (past year) never got the whole flow of how it worked. I mostly coded back-end system stuff, so basically I can make a nice secure login but game logic flew out the window for me. Phaser has taught me so much about how many things work, that my respect for your work could not be higher. I mean, I made a game... something I thought was never going to happen besides the few tests and tries I've had over the years. Now I understand, I'm from New York, money in your pocket does seem better then respect but I do want you to understand I appreciate your work. I have over the years tried to donate / help projects I use a lot ( I'm all about Linux so there are plenty of projects that need help. ), but this vastly depends on how much money I have and it generally comes down to the fact that I have always struggled for money. So I guess what I'm saying is, if I was more well off, I would definitely support Phaser (besides community efforts). Otherwise all I can say is thanks! Link to comment Share on other sites More sharing options...
rich Posted February 17, 2016 Author Share Posted February 17, 2016 @rgk thanks for the kind comments. re: the error changing states, I'll need a code sample please because I tested it changing states and it works fine (I ran it through all of the Interphase 1 games and they all worked fine, and use states for loading, menu, game), so it must be something more specific, probably to a certain game object. Link to comment Share on other sites More sharing options...
rgk Posted February 18, 2016 Share Posted February 18, 2016 Sorry about the delay, the issue is coming from this line of code: renderSession.context.drawImage(this.texture.baseTexture.source, cx, cy, cw, ch, dx, dy, cw / resolution, ch / resolution); which is line 22706 in phaser.js, otherwise I'm trying to figure out what part of my code is causing this, debugging isn't working quite as well as I thought. Link to comment Share on other sites More sharing options...
qdrj Posted February 18, 2016 Share Posted February 18, 2016 Whoa, 85 fixes - that's huge. Thank you! There is an issue with Phaser.Text - some symbols simply don't display. This issue is inconsistent - in 1st case "Aa" & "Bb" don't display, in another case "Save" and "Edit". Maybe it is related to the font I use, but it worked in 2.4.4. I will prepare separate test case today. Link to comment Share on other sites More sharing options...
stamas47 Posted February 18, 2016 Share Posted February 18, 2016 I have the same issues with text not rendering and also adding a sprite with Arcade collider body to a group gives me an error: Uncaught TypeError: Cannot read property 'removeFromHash' of null Link to comment Share on other sites More sharing options...
saibotlive Posted February 18, 2016 Share Posted February 18, 2016 I also get the same error while trying to add a sprite to a group. Uncaught TypeError: Cannot read property 'removeFromHash' of nullc.Group.add @ phaser.js:31257 Link to comment Share on other sites More sharing options...
lexfrost Posted February 18, 2016 Share Posted February 18, 2016 Likewise I get the below error which wasn't present in 2.4.4 but is in 2.4.5 TypeError: Cannot read property 'removeFromHash' of null at customGroupName.c.Group.add From the below code: this.add(new customSprite(game, 'enemy'), true); Link to comment Share on other sites More sharing options...
Zendrael Posted February 18, 2016 Share Posted February 18, 2016 Hi! I switched my 2.4.4 min file by the 2.4.5 and my game stopped working... The error is on an object loaded from an atlas file. Link to comment Share on other sites More sharing options...
rich Posted February 18, 2016 Author Share Posted February 18, 2016 Hi all, 2.4.6 has just been released which will fix the 'removeFromHash' errors and a couple of others. Please see the (tiny) change log for specifics. https://github.com/photonstorm/phaser/releases/tag/v2.4.6 Cheers, Rich PhaserEditor2D and lexfrost 2 Link to comment Share on other sites More sharing options...
lexfrost Posted February 18, 2016 Share Posted February 18, 2016 Thanks Rich ... Great work !!! Link to comment Share on other sites More sharing options...
stamas47 Posted February 18, 2016 Share Posted February 18, 2016 Thanks Rich, that was fast! Everything is ok now. Link to comment Share on other sites More sharing options...
kalevski Posted February 18, 2016 Share Posted February 18, 2016 Good job! Link to comment Share on other sites More sharing options...
Zendrael Posted February 18, 2016 Share Posted February 18, 2016 Hi Rich! I'm still getting these: Phaser v2.4.6 | Pixi.js v2.2.9 | Canvas | WebAudio | http://phaser.io phaser.min.js:11 3Phaser.Loader - active loading canceled / reset phaser.min.js:20 Phaser.Cache.getImage: Key "background" not found in Cache. phaser.min.js:19 Cannot set frameName: autumn phaser.min.js:19 Phaser.Cache.getImage: Key "background" not found in Cache. phaser.min.js:19 Cannot set frameName: autumnGround phaser.min.js:19 Phaser.Cache.getImage: Key "background" not found in Cache. phaser.min.js:19 Uncaught TypeError: Cannot read property 'index' of undefined phaser.min.js:19 Phaser.Loader - active loading canceled / reset phaser.min.js:20 And the game does not work. Link to comment Share on other sites More sharing options...
Yora Posted February 18, 2016 Share Posted February 18, 2016 No issues here, and the performance is greater than ever. Awesome work! Link to comment Share on other sites More sharing options...
rich Posted February 18, 2016 Author Share Posted February 18, 2016 @Zendrael I can't debug that, I need to see actual code. Link to comment Share on other sites More sharing options...
Zendrael Posted February 18, 2016 Share Posted February 18, 2016 Hey Rich! The background mentioned is an Atlas used to load some parts of my background. It is loaded in the Preload.js attached. I'm using this atlas on my Play.js state, also attached, on the create method. All works ok with 2.4.4. Play.js Preload.js Link to comment Share on other sites More sharing options...
rich Posted February 18, 2016 Author Share Posted February 18, 2016 I still can't really debug this without the assets, sorry. If you think it's just a singe atlas causing it then it should be really easy to confirm that. The way all the assets are loaded in the 'create' function is extremely strange too, but that isn't the cause of the problem I doubt. Link to comment Share on other sites More sharing options...
Zendrael Posted February 18, 2016 Share Posted February 18, 2016 @rich I can send my full game to you by e-mail? Which one? Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted February 18, 2016 Share Posted February 18, 2016 Why release this fix was not included? https://github.com/photonstorm/phaser/issues/2045 Link to comment Share on other sites More sharing options...
Zendrael Posted February 18, 2016 Share Posted February 18, 2016 @rich I changed the way I load the assets for a common way and everything worked. I was using a technique from some site (that i foget which one is) to load assets with a percentage info, now I am doing the "normal" way and it worked. Sorry about the mess. Link to comment Share on other sites More sharing options...
rgk Posted February 19, 2016 Share Posted February 19, 2016 @rich Thanks 2.4.6 fixed the issue I was having, still not 100% sure what was going on. I do notice it seems to output some debug info via the line: console.log('generateTilingTexture', texture, frame); via line 16082 in phaser.js Not sure if that was intended, but its nice debug info non-the-less. Link to comment Share on other sites More sharing options...
rich Posted February 19, 2016 Author Share Posted February 19, 2016 Bum. Fixed that in dev. Link to comment Share on other sites More sharing options...
Recommended Posts