Sign in to follow this  
Ninjadoodle

[Error] Error: Texture Error: frame does not fit inside the base Texture dimensions [object Object]

Recommended Posts

Hi @enpu

 

I'm trying to load a sprite from a sprite sheet (made with texture packer).

 

I've got 

 

level1.json

level1@2x.json

level1@4x.json

 

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 :(

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.