AndEngine 纹理打包器错误
我什至无法让示例为此工作,它会抛出以下错误
02-04 19:22:05.617: E/AndroidRuntime(2548): java.lang.IllegalArgumentException: 提供的 pTextureAtlasSource 不得超过纹理的边界。
有谁知道如何解决这个问题或者这意味着什么?这只是我安装的示例程序
I cant even get the example working for this, it throws the following error
02-04 19:22:05.617: E/AndroidRuntime(2548): java.lang.IllegalArgumentException: Supplied pTextureAtlasSource must not exceed bounds of Texture.
Does anyone know how to fix this or what it mean? This is just the example program that I installed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,任何有这个问题的人......
首先,这个错误不正确,我似乎有一个旧版本的 AndEngine 抛出了这个错误。此外,提供的示例也有缺陷,
虽然它指定基本文件夹是“gfx”,但这不适用于TexturePacket纹理,因此对象的路径应该是“gfx/spritesheet/”。我在更新引擎后开始抛出空指针异常后发现了这一点
Ok, anyone that has this issue...
First of all that error was not correct, I seemed to have an older version of the AndEngine that was throwing that error. Also the example that is provided is flawed
Although it spcifies the base folder is "gfx" this doesnt apply for TexturePacket Textures therefore the path for the object should be "gfx/spritesheet/". I discovered this after it started to throw a null pointer exception after updating the engine