Ninjadoodle Posted March 30, 2015 Share Posted March 30, 2015 Hi @enpu I'm trying to load a sprite from a sprite sheet (made with texture packer). I've got level1.json[email protected][email protected] but I seem to be getting this error ... [Error] Error: Texture Error: frame does not fit inside the base Texture dimensions [object Object] setFrame (pixi.js, line 17182) onBaseTextureLoad Not too sure whether I'm doing something wrong, or if it's a bug If I disable 'hires:4' and only leave retina ... it works. It looks like its only loading @2x textures, but has a problem with @4x PS. Not really sure, it seems 'hires: 2' doesn't work either / Also, I'm using the latest Master Quote Link to comment Share on other sites More sharing options...
Neso Posted March 30, 2015 Share Posted March 30, 2015 I've encountered this error before, my solution was to republish / or if that didn't work delete published files and then republish from texture packer. After that clean cache in browser just to be on the safe side and try the game again. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 30, 2015 Author Share Posted March 30, 2015 Hi @Neso I did as you suggested and now it works. I had to close Texture Packer and reopen + recreate the texture atlas. Thank you very much for your help! Any idea why this is happening? Quote Link to comment Share on other sites More sharing options...
Neso Posted March 31, 2015 Share Posted March 31, 2015 I expect it is either because texture packer didn't publish correctly, or because game was trying to access some cached images and error occurred. But I didn't spend time looking into it specifically. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 4, 2015 Author Share Posted April 4, 2015 Hmm, I'm back to getting this error and re-exporting / deleting cache and files doesn't work anymore. Thank you in advance for any ideas! PS. Interesting, suddenly works again. This time I had to try about 3x Quote Link to comment Share on other sites More sharing options...
Neso Posted April 7, 2015 Share Posted April 7, 2015 Maybe you just forgot to clear cache. On chrome I usually disable caching if I have developer tools opened. 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.