New issue
 Projects > js > Issues > Bug #3171

uncaught exception: cocos2d: res/parkour.plist is not a plist file

Bug #3171 [Closed]
kenan_liu 2013-11-13 03:47 . Updated almost 10 years ago

When add spriteSheet to SpriteFrameCache use follwing code:

cc.SpriteFrameCache.getInstance().addSpriteFrames("res/parkour.plist");

Consloe report follwing error:

Cocos2d-html5-v2.2
语法错误    HelloHTML5World/index.html:1
uncaught exception: cocos2d: res/parkour.plist is not a plist file

This plist was worked on Cocos2d-x JSB, but fail load on Cocos2d-Html5.
The attachment is the source code.

HelloHTML5World.zip (340.1 kB) kenan_liu, 2013-11-13 03:48

kenan_liu 2013-11-13 07:18

This error was came out due to plist was not preload in resource module.

I think the error info should be improved!

linshun 2013-12-03 06:49
  • Assignee set to ludingping
  • Target version set to v2.2.2

Thanks, KeNan.

Hi, Dingping, is it possible to distinguish whether developers have forgotten to load files?

ludingping 2013-12-10 02:18

Shun Lin wrote:

Thanks, KeNan.
>
Hi, Dingping, is it possible to distinguish whether developers have forgotten to load files?

OK, I will add some log informations to notice to developers.

ludingping 2013-12-11 02:18
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Atom PDF

Status:Closed
Start date:2013-11-13
Priority:Low
Due date:2013-11-15
Assignee:ludingping
% Done:

100%

Category:-
Target version:v2.2.2