kucira Posted October 25, 2014 Share Posted October 25, 2014 Hi Pandajs Team, i'm using the new version of Pandajs, but it seems there is a bug in hires mode. i'm using 320x480 resolution, and I have tried on a device with a resolution of 720x1280 and it doesn't load the hi-res assets on mobile devices. The hires mode working properly on pandajs 1.8.0, it load the @2x graphics. Any suggestion? Thank you. Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 Can you show your config? Hires syntax is changed a bit in 1.9. Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 Here is example for HiRes mode:http://www.pandajs.net/cheatsheet/0e373d4d92c309ba4805.html Quote Link to comment Share on other sites More sharing options...
Phempt Posted October 25, 2014 Share Posted October 25, 2014 I've problem with hires and retina parameters. this is my config file:pandaConfig = { name:"Game Name", version:"1.0.0", system:{ width:320, height:480, maxWidth:640, maxHeight:960, resizeToFill:true, retina:true, hires: 2, }, debug:{ enabled:true, color:"red" }, storage:{id:"com.gamename.test" } };if hires is declared, my game will be stuck in the loading screen with this error:[Error] Error: Texture Error: frame does not fit inside the base Texture dimensions [object Object]setFrame (pixi.js, line 15126)Texture (pixi.js, line 15063)onXMLLoaded (pixi.js, line 16479)(funzione anonima) (core.js, line 536)I double checked my media files and seems that all is ok (Files list: http://oi58.tinypic.com/2yzk2tl.jpg ). The error seems releated to game size, or I'm wrong? Thank you Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 Hmm i think it might be related to your fonts. Can you try to load your game without the fonts, and see if you got that error? Quote Link to comment Share on other sites More sharing options...
Phempt Posted October 25, 2014 Share Posted October 25, 2014 Yeah! That was the problem, I tried to check the .fnt files, and I saw that the @2x version load "font.png" instead of "[email protected]". <pages> <page id="0" file="[email protected]"/> </pages>The game starts, but the resized canvas (from 320x480 to 640x960) doesn't load the @2x textures.Panda.js 1.9.0Pixi.js 2.0.0Canvas renderer 640x960 Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 Can you send your whole project, so i can take a look Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 Ah got it now, the new retina support on Pixi v2 messed up Panda's hires mode.Will push fix asap into develop branch. Quote Link to comment Share on other sites More sharing options...
Phempt Posted October 25, 2014 Share Posted October 25, 2014 is the project that I sent to you yesterday the only differences are: 1) In config.js I added:hires: 2,2) in [email protected] I changed "font.png" to "[email protected]". Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 Pushed, can you try now with current develop branch? Quote Link to comment Share on other sites More sharing options...
Phempt Posted October 25, 2014 Share Posted October 25, 2014 it works with the dev-branch! Thank you! Quote Link to comment Share on other sites More sharing options...
enpu Posted October 25, 2014 Share Posted October 25, 2014 No problem! Quote Link to comment Share on other sites More sharing options...
kucira Posted October 25, 2014 Author Share Posted October 25, 2014 Thank you Enpu, now it works with the develop branch. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.