언어 설정

Menu
Sites
Language
Errors while building a cocos2d-html5 framework but runs well in browser

Hi ,

 

I am using cocos2d-html5 version 2.1.0 for my game. It runs well on chrome and firefox . I have created a new project set my location to the project directory .

I have then created config.xml and edited the required things on .project file.

When I build my project it shows several errors in the cocos2d-html5 framework itself , not in my game.

 

Please help me with this . Do I have to change anything .

 

The errors that are present are :

 

 

Description Resource    Path    Location    Type
Cannot read property "disrupt" from undefined   CCParticleSystem.js /SpaceMonkey/cocos2d/particle_nodes line 1820   JavaScript Problem
Cannot read property "disrupt" from undefined   webgl-debug.js  /JewelWarrior/scripts   line 399    JavaScript Problem
Expected '{' and instead saw 'status'.  CCTileMapAtlas.js   /SpaceMonkey/cocos2d/tileMap_parallax_nodes line 62 JavaScript Problem
Expected '{' and instead saw 'vr'.  CCImage.js  /SpaceMonkey/cocos2d/platform   line 118    JavaScript Problem
Expected an identifier and instead saw ','. CCActionCatmullRom.js   /SpaceMonkey/cocos2d/actions    line 101    JavaScript Problem
Expected an identifier and instead saw ','. CCMenuItem.js   /SpaceMonkey/cocos2d/menu_nodes line 835    JavaScript Problem
Expected an identifier and instead saw ','. board.js    /JewelWarrior/scripts   line 264    JavaScript Problem
Expected an identifier and instead saw ','. webgl.js    /JewelWarrior/scripts   line 75 JavaScript Problem
Internal validation error
java.lang.NullPointerException
    at org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding.binarySearch(ReferenceBinding.java:104)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.getMethods0(SourceTypeBinding.java:673)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.getMethods(SourceTypeBinding.java:635)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.ArrayBinding.getMethods(ArrayBinding.java:243)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getConstructor(Scope.java:1358)
    at org.eclipse.wst.jsdt.internal.compiler.ast.AllocationExpression.resolveType(AllocationExpression.java:164)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve0(LocalDeclaration.java:265)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:171)
    at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:394)
    at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:604)
    at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:356)
    at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:288)
    at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:86)
    at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:227)
    at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
    at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
    at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:194)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
    at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
    at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
    at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    CCImage.js  /SpaceMonkey/cocos2d/platform   line 0  JavaScript Problem
Stopping.  (15% scanned).   CCActionCamera.js   /SpaceMonkey/cocos2d/actions    line 27 JavaScript Problem
Stopping.  (15% scanned).   CCClass.js  /SpaceMonkey/cocos2d/platform   line 34 JavaScript Problem
Stopping.  (16% scanned).   CCCamera.js /SpaceMonkey/cocos2d    line 26 JavaScript Problem
Stopping.  (18% scanned).   CCImage.js  /SpaceMonkey/cocos2d/platform   line 118    JavaScript Problem
Stopping.  (19% scanned).   CCTileMapAtlas.js   /SpaceMonkey/cocos2d/tileMap_parallax_nodes line 62 JavaScript Problem
Stopping.  (26% scanned).   CCActionCatmullRom.js   /SpaceMonkey/cocos2d/actions    line 101    JavaScript Problem
Stopping.  (3% scanned).    CCActionGrid3D.js   /SpaceMonkey/cocos2d/actions    line 27 JavaScript Problem
Stopping.  (3% scanned).    CCTexture2D.js  /SpaceMonkey/cocos2d/textures   line 26 JavaScript Problem
Stopping.  (32% scanned).   CCGrabber.js    /SpaceMonkey/cocos2d/effects    line 27 JavaScript Problem
Stopping.  (44% scanned).   webgl.js    /JewelWarrior/scripts   line 75 JavaScript Problem
Stopping.  (5% scanned).    CCGrid.js   /SpaceMonkey/cocos2d/effects    line 27 JavaScript Problem
Stopping.  (72% scanned).   CCMenuItem.js   /SpaceMonkey/cocos2d/menu_nodes line 835    JavaScript Problem
Stopping.  (8% scanned).    CCActionGrid.js /SpaceMonkey/cocos2d/actions    line 27 JavaScript Problem
Stopping.  (88% scanned).   board.js    /JewelWarrior/scripts   line 264    JavaScript Problem
Syntax error on token "function", delete this token CCImage.js  /SpaceMonkey/cocos2d/platform   line 118    JavaScript Problem
Syntax error on token "function", delete this token CCTileMapAtlas.js   /SpaceMonkey/cocos2d/tileMap_parallax_nodes line 62 JavaScript Problem
The project was not validated since the source file /JewelWarrior/.build/.build78a1920061cba224/scripts/sizzle.js could not be read JewelWarrior        Unknown JavaScript Problem
Unexpected ';'. CCParticleSystem.js /SpaceMonkey/cocos2d/particle_nodes line 1818   JavaScript Problem
Unexpected ';'. webgl-debug.js  /JewelWarrior/scripts   line 398    JavaScript Problem
Variable cc was not declared correctly. CCActionCamera.js   /SpaceMonkey/cocos2d/actions    line 27 JavaScript Problem
Variable cc was not declared correctly. CCActionGrid.js /SpaceMonkey/cocos2d/actions    line 27 JavaScript Problem
Variable cc was not declared correctly. CCActionGrid3D.js   /SpaceMonkey/cocos2d/actions    line 27 JavaScript Problem
Variable cc was not declared correctly. CCCamera.js /SpaceMonkey/cocos2d    line 26 JavaScript Problem
Variable cc was not declared correctly. CCClass.js  /SpaceMonkey/cocos2d/platform   line 34 JavaScript Problem
Variable cc was not declared correctly. CCGrabber.js    /SpaceMonkey/cocos2d/effects    line 27 JavaScript Problem
Variable cc was not declared correctly. CCGrid.js   /SpaceMonkey/cocos2d/effects    line 27 JavaScript Problem
Variable cc was not declared correctly. CCTexture2D.js  /SpaceMonkey/cocos2d/textures   line 26 JavaScript Problem

 

Responses

1 댓글
Lakshmi Grandhi

Hi,

I have tested sample apps provided in https://github.com/cocos2d/cocos2d-js-tests/tree/master/games/CocosDragonJS it is working fine, can ypu provide an example which uses CCParticleSystem.js javascript to check the issue.