"already has the suffix -ipad. Using it."找不到 Cocos2d-x 图像

Cocos2d-x image not found "already has the suffix -ipad. Using it."

本文关键字:it 找不到 Cocos2d-x 图像 Using -ipad already has the suffix      更新时间:2023-10-16

所以我正在使用Cocos2d,但不断收到错误

Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.fnt
Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.png
Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.png
Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.png
Cocos2d: cocos2d: CCFileUtils: Warning file not found: TurkeySprite_v2-ipad.png
Cocos2d: cocos2d: WARNING Filename(TurkeySprite_v2-ipad) already has the suffix -ipad. Using it.
Cocos2d: cocos2d: WARNING Filename(TurkeySprite_v2-ipad) already has the suffix -ipad. Using it.

不确定这一切意味着什么,但我几乎刚刚开始我的项目,想知道我怎么这么快就出错了。

有人可以帮忙吗?

警告

Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.fnt

表示您尝试显示加载文件名 @"fps_images.fnt" 的子画面,并且找不到它的 iPad 特定版本(称为 @"fps_images-ipad.fnt"。

另一方面,您得到的另一个警告:

Cocos2d: cocos2d: WARNING Filename(TurkeySprite_v2-ipad) already has the suffix -ipad. Using it.

表示您尝试通过指定图像名称来加载图像:@"TurkeySprite_v2-iPad.png";由于它已包含-ipad后缀,因此您会收到警告。

在第一种情况下,您可以通过提供iPad特定版本的文件来避免警告;在第二种情况下,只需从文件名@"TurkeySprite_v2.png"中删除-ipad即可。

在这两种情况下,这两种警告都没有绝对的错误。