EngineErrorMap 错误码

本文档详细列举了Cocos Creator Engine在运行过程中可能出现的各种错误码,包括ActionManager、Director、Node等模块的错误信息,帮助开发者理解和解决引擎在游戏开发中遇到的问题。
摘要由CSDN通过智能技术生成

EngineErrorMap.md

Cocos Creator Engine Errors

0100

%s not yet implemented.

 

1000

cc.ActionManager.addAction(): action must be non-null

 

1001

cocos2d: removeAction: Target not found

 

1002

cc.ActionManager.removeActionByTag(): an invalid tag

 

1003

cc.ActionManager.removeActionByTag(): target must be non-null

 

1004

cc.ActionManager.getActionByTag(): an invalid tag

 

1005

cocos2d : getActionByTag(tag = %s): Action not found

 

1006

[Action step]. override me

 

1007

[Action update]. override me

 

1008

cocos2d: FiniteTimeAction#reverse: Implement me

 

1009

cc.EaseElastic.reverse(): it should be overridden in subclass.

 

1010

cc.IntervalAction: reverse not implemented.

 

1011

cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.

 

1012

cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.

 

1013

The speed parameter error

 

1014

The repeat parameter error

 

1015

parameters should not be ending with null in Javascript

 

1016

cc.RotateTo.reverse(): it should be overridden in subclass.

 

1017

cc.GridAction.getGrid(): it should be overridden in subclass.

 

1018

Grid size must be (1,1)

 

1019

Failed to construct, Sequence construction needs two or more actions.

 

1020

Failed to construct, Spawn construction needs two or more actions.

 

1021

cc.Speed.initWithAction(): action must be non nil

 

1022

cc.Follow.initWithAction(): followedNode must be non nil

 

1023

cc.ActionEase.initWithAction(): action must be non nil

 

1024

Invalid configuration. It must at least have one control point

 

1025

cc.Sequence.initWithTwoActions(): arguments must all be non nil

 

1026

cc.RepeatForever.initWithAction(): action must be non null

 

1027

cc.Spawn.initWithTwoActions(): arguments must all be non null

 

1028

cc.ReverseTime.initWithAction(): action must be non null

 

1029

cc.ReverseTime.initWithAction(): the action was already passed in.

 

1030

cc.Animate.initWithAnimation(): animation must be non-NULL

 

1031

Illegal parameter get passed in cc.tween: %s.

 

1100

Expected 'data' dict, but not found. Config file: %s

 

1101

Please load the resource first : %s

 

1200

cocos2d: Director: Error in gettimeofday

 

1201

cocos2d: Director: unrecognized projection

 

1202

cocos2d: Director: unrecognized projection

 

1203

cocos2d: Director: Error in gettimeofday

 

1204

running scene should not null

 

1205

the scene should not null

 

1206

loadScene: The scene index to load (%s) is out of range.

 

1207

loadScene: Unknown name type to load: '%s'

 

1208

loadScene: Failed to load scene '%s' because '%s' is already being loaded.

 

1209

loadScene: Can not load the scene '%s' because it was not in the build settings before playing.

 

1210

Failed to preload '%s', %s

 

1211

loadScene: The scene index to load (%s) is out of range.

 

1212

loadScene: Unknown name type to load: '%s'

 

1213

loadScene: Failed to load scene '%s' because '%s' is already loading

 

1214

loadScene: Can not load the scene '%s' because it was not in the build settings before playing.

 

1215

Failed to preload '%s', %s

 

1216

Director.runSceneImmediate: scene is not valid

 

1300

element type is wrong!

 

1400

'%s' is deprecated, please use '%s' instead.

 

1401

The first argument should be the destination object

 

1402

The 'visible' property of %s is deprecated, use 'enabled' instead please.

 

1403

Sorry, cc.audioEngine.willPlayMusic is removed.

 

1404

cc.spriteFrameCache is removed, please use cc.loader to load and cache sprite frames of atlas format.

 

1405

The '%s' has been removed, please use '%s' instead.

 

1406

'%s.%s' is removed

 

1407

cc.pool has been removed, you are getting cc.js.Pool instead.

 

1408

'%s' is not support in the '%s', please use '%s' instead.

 

1500

CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s

 

1501

cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.

 

1502

cc.scheduler.scheduleCallbackForTarget(): target should be non-null.

 

1503

cc.Scheduler.pauseTarget():target should be non-null

 

1504

cc.Scheduler.resumeTarget():target should be non-null

 

1505

cc.Scheduler.isTargetPaused():target should be non-null

 

1506

warning: you CANNOT change update priority in scheduled function

 

1507

CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %s to %s"

 

1508

Argument callback must not be empty

 

1509

Argument target must be non-nullptr

 

1510

cc.Scheduler: Illegal target which doesn't have uuid or instanceId.

 

1511

cc.Scheduler: pause state of the scheduled task doesn't match the element pause state in Scheduler, the given paused state will be ignored.

 

1512

cc.Scheduler: updateFunc parameter is deprecated in scheduleUpdate function, and will be removed in v2.0

 

1513

cc.Scheduler: scheduler stopped using __instanceId as id since v2.0, you should do scheduler.enableForTarget(target) before all scheduler API usage on target

 

1600

getZOrder is deprecated. Please use getLocalZOrder instead.

 

1601

setZOrder is deprecated. Please use setLocalZOrder instead.

 

1602

RotationX != RotationY. Don't know which one to return

 

1603

ScaleX != ScaleY. Don't know which one to return

 

1604

An Node can't be added as a child of itself.

 

1605

child already added. It can't be added again

 

1606

child must be non-null

 

1607

removeFromParentAndCleanup is deprecated. Use removeFromParent instead

 

1608

boundingBox is deprecated. Use getBoundingBox instead

 

1609

argument tag is an invalid tag

 

1610

cocos2d: removeChildByTag(tag = %s): child not found!

 

1611

removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead

 

1612

cc.Node.stopActionBy(): argument tag an invalid tag

 

1613

cc.Node.getActionByTag(): argument tag is an invalid tag

 

1614

resumeSchedulerAndActions is deprecated, please use resume instead.

 

1615

pauseSchedulerAndActions is deprecated, please use pause instead.

 

1616

Unknown callback function

 

1617

child must be non-null

 

1618

cc.Node.runAction(): action must be non-null

 

1619

callback function must be non-null

 

1620

interval must be positive

 

1621

cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.

 

1622

_ccsg.Node._requestDirtyFlag: failed to satisfy the request, key (%s) for flag have already been taken

 

1623

Set '%s' to normal node (not persist root node).

 

1624

Replacing with the same sgNode

 

1625

The replacement sgNode should not contain any child.

 

1626

Should not set alpha via 'color', set 'opacity' please.

 

1627

Not support for asynchronous creating node in SG

 

1628

Renderer error: Size of the cc._RendererInSG._sgNode must be zero

 

1629

The node '%s' has a component inherited from 'cc._RendererInSG'

 

1630

JSB environment is not support invoke node.runAction before the 'cc._RendererInSG' component enabled.

 

1631

Please use runAction in the method 'start' instead.

 

1632

Node name can not include '/'.

 

1633

Internal error, should not remove unknown node from parent.

 

1634

addChild: The child to add must be instance of cc.Node, not %s.

 

1635

reorderChild: this child is not in children list.

 

1636

Node's zIndex value can't be greater than cc.macro.MAX_ZINDEX, setting to the maximum value

 

1637

Node's zIndex value can't be smaller than cc.macro.MIN_ZINDEX, setting to the minimum value

 

1638

Private node's zIndex can't be set, it will keep cc.macro.MIN_ZINDEX as its value

 

1639

cc.Action is deprecated, please use cc.TweenAction instead

 

1700

cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses

 

1701

1702

cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.

 

1703

The new text must be String

 

1800

cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!

 

1801

cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!

 

1802

cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!

 

1803

cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil

 

1900

Invalid parameter.

 

2000

Don't call this method if the event is for touch.

 

2100

parameters should not be ending with null in Javascript

 

2101

Invalid index in MultiplexLayer switchTo message

 

2102

Invalid index in MultiplexLayer switchTo message

 

2103

cc.Layer.addLayer(): layer should be non-null

 

2200

Resolution not valid

 

2201

should set resolutionPolicy

 

2300

The touches is more than

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值