@oppo-minigame/cli
Version:
Command line interface for rapid OPPO minigame development
730 lines âĸ 3.35 MB
JavaScript
(function() {
(function outer(modules, cache, entry) {
var previousRequire = "function" == (__typeofVal = typeof require, "object" === __typeofVal ? __realTypeOfObj(require) : __typeofVal) && require;
function newRequire(name, jumped) {
var module = cache[name];
if (!module) {
var moduleData = modules[name];
if (!moduleData) {
var currentRequire = "function" == (__typeofVal = typeof require, "object" === __typeofVal ? __realTypeOfObj(require) : __typeofVal) && require;
if (!jumped && currentRequire) return currentRequire(name, true);
if (previousRequire) return previousRequire(name, true);
var err = new Error("Cannot find module '" + name + "'");
err.code = "MODULE_NOT_FOUND";
throw err;
}
var exports = {};
module = cache[name] = {
exports: exports
};
moduleData[0]((function(x) {
return newRequire(moduleData[1][x] || x);
}), module, exports);
}
return module.exports;
}
for (var i = 0; i < entry.length; i++) newRequire(entry[i]);
return newRequire;
})({
1: [ (function(require, module, exports) {
cc._LogInfos = cc._LogInfos || {};
var engineVersion;
engineVersion = "1.6.0";
window["CocosEngine"] = cc.ENGINE_VERSION = engineVersion;
cc._renderContext = null;
cc._supportRender = false;
cc._canvas = null;
cc.container = null;
cc._gameDiv = null;
require("./cocos2d/core/utils");
require("./cocos2d/core/platform/CCSys");
var _engineInitCalled = false, _engineLoadedCallback = null;
cc._engineLoaded = false;
function _determineRenderType(config) {
var CONFIG_KEY = cc.game.CONFIG_KEY, userRenderMode = parseInt(config[CONFIG_KEY.renderMode]) || 0;
(isNaN(userRenderMode) || userRenderMode > 2 || userRenderMode < 0) && (config[CONFIG_KEY.renderMode] = 0);
cc._renderType = cc.game.RENDER_TYPE_CANVAS;
cc._supportRender = false;
if (0 === userRenderMode) {
if (cc.sys.capabilities["opengl"]) {
cc._renderType = cc.game.RENDER_TYPE_WEBGL;
cc._supportRender = true;
} else if (cc.sys.capabilities["canvas"]) {
cc._renderType = cc.game.RENDER_TYPE_CANVAS;
cc._supportRender = true;
}
} else if (1 === userRenderMode && cc.sys.capabilities["canvas"]) {
cc._renderType = cc.game.RENDER_TYPE_CANVAS;
cc._supportRender = true;
} else if (2 === userRenderMode && cc.sys.capabilities["opengl"]) {
cc._renderType = cc.game.RENDER_TYPE_WEBGL;
cc._supportRender = true;
}
}
function _afterEngineLoaded() {
cc._engineLoaded = true;
false;
console.log(cc.ENGINE_VERSION);
_engineLoadedCallback && _engineLoadedCallback();
}
function _windowLoaded() {
window.removeEventListener("load", _windowLoaded, false);
_afterEngineLoaded();
}
cc.initEngine = function(config, cb) {
if (_engineInitCalled) {
var previousCallback = _engineLoadedCallback;
_engineLoadedCallback = function() {
previousCallback && previousCallback();
cb && cb();
};
return;
}
_engineLoadedCallback = cb;
!cc.game.config && config ? cc.game.config = config : cc.game.config || cc.game._loadConfig();
config = cc.game.config;
_determineRenderType(config);
document.body ? _afterEngineLoaded() : window.addEventListener("load", _windowLoaded, false);
_engineInitCalled = true;
};
}), {
"./cocos2d/core/platform/CCSys": 183,
"./cocos2d/core/utils": 223
} ],
2: [ (function(require, module, exports) {
var logList;
var Enum = require("./cocos2d/core/platform/CCEnum");
cc.DebugMode = Enum({
NONE: 0,
INFO: 1,
WARN: 2,
ERROR: 3,
INFO_FOR_WEB_PAGE: 4,
WARN_FOR_WEB_PAGE: 5,
ERROR_FOR_WEB_PAGE: 6
});
cc._initDebugSetting = function(mode) {
cc.log = cc.logID = cc.warn = cc.warnID = cc.error = cc.errorID = cc.assert = cc.assertID = function() {};
if (mode === cc.DebugMode.NONE) return;
if (mode > cc.DebugMode.ERROR) (function() {
function logToWebPage(msg) {
if (!cc._canvas) return;
if (!logList) {
var logDiv = document.createElement("Div");
logDiv.setAttribute("id", "logInfoDiv");
logDiv.setAttribute("width", "200");
logDiv.setAttribute("height", cc._canvas.height);
var logDivStyle = logDiv.style;
logDivStyle.zIndex = "99999";
logDivStyle.position = "absolute";
logDivStyle.top = logDivStyle.left = "0";
logList = document.createElement("textarea");
logList.setAttribute("rows", "20");
logList.setAttribute("cols", "30");
logList.setAttribute("disabled", "true");
var logListStyle = logList.style;
logListStyle.backgroundColor = "transparent";
logListStyle.borderBottom = "1px solid #cccccc";
logListStyle.borderTopWidth = logListStyle.borderLeftWidth = logListStyle.borderRightWidth = "0px";
logListStyle.borderTopStyle = logListStyle.borderLeftStyle = logListStyle.borderRightStyle = "none";
logListStyle.padding = "0px";
logListStyle.margin = 0;
logDiv.appendChild(logList);
cc._canvas.parentNode.appendChild(logDiv);
}
logList.value = logList.value + msg + "\r\n";
logList.scrollTop = logList.scrollHeight;
}
cc.error = function() {
logToWebPage("ERROR : " + cc.js.formatStr.apply(null, arguments));
};
cc.assert = function(cond, msg) {
"use strict";
if (!cond && msg) {
msg = cc.js.formatStr.apply(null, cc.js.shiftArguments.apply(null, arguments));
logToWebPage("ASSERT: " + msg);
}
};
mode !== cc.DebugMode.ERROR_FOR_WEB_PAGE && (cc.warn = function() {
logToWebPage("WARN : " + cc.js.formatStr.apply(null, arguments));
});
mode === cc.DebugMode.INFO_FOR_WEB_PAGE && (cc.log = cc.info = function() {
logToWebPage(cc.js.formatStr.apply(null, arguments));
});
})(); else if (console && console.log.apply) {
console.error || (console.error = console.log);
console.warn || (console.warn = console.log);
false;
console.error.bind ? cc.error = console.error.bind(console) : cc.error = console.error;
cc.assert = function(cond, msg) {
if (!cond) {
msg && (msg = cc.js.formatStr.apply(null, cc.js.shiftArguments.apply(null, arguments)));
false;
false;
throw new Error(msg);
}
};
}
if (mode !== cc.DebugMode.ERROR) {
false;
console.warn.bind ? cc.warn = console.warn.bind(console) : cc.warn = console.warn;
}
false;
if (mode === cc.DebugMode.INFO) {
true;
"JavaScriptCore" === scriptEngineType ? cc.log = function() {
return console.log.apply(console, arguments);
} : cc.log = console.log;
true;
cc.info = "JavaScriptCore" === scriptEngineType ? function() {
(console.info || console.log).apply(console, arguments);
} : console.info || console.log;
}
cc.warnID = genLogFunc(cc.warn, "Warning");
cc.errorID = genLogFunc(cc.error, "Error");
cc.logID = genLogFunc(cc.log, "Log");
var assertFailed = genLogFunc((function() {
var argsArr = [ false ];
for (var i = 0; i < arguments.length; ++i) argsArr.push(arguments[i]);
cc.assert.apply(null, argsArr);
}), "Assert");
cc.assertID = function(cond) {
"use strict";
if (cond) return;
assertFailed.apply(null, cc.js.shiftArguments.apply(null, arguments));
};
};
cc._throw = function(error) {
var stack = error.stack;
stack ? cc.error(error + "\n" + stack) : cc.error(error);
};
var errorMapUrl = "https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md";
function genLogFunc(func, type) {
return function(id) {
"use strict";
if (1 === arguments.length) {
func(cc._LogInfos[id]);
return;
}
var msg;
true;
var argsArr = cc.js.shiftArguments.apply(null, arguments);
func.apply(cc, [ cc._LogInfos[id] ].concat(argsArr));
};
}
}), {
"./cocos2d/core/platform/CCEnum": 176
} ],
3: [ (function(require, module, exports) {
true;
var logs = {
"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",
"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 loading",
"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",
"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' will be removed in v2.0, please use '%s' instead. đ°",
"1500": "cc.Scheduler#schedule: 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": "cc.Scheduler#scheduleSelector: Selector already scheduled. Updating interval from: %.4f to %.4f",
"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",
"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",
"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 MAX_TOUCHES, nUnusedIndex = %s",
"2400": "WebGL error %s",
"2401": "Too many graphics vertices generated, only 65536 vertices support.",
"2500": "cocos2d: cc.SpriteFrameAnimationCache: No animations were found in provided dictionary.",
"2501": "cc.SpriteFrameAnimationCache. Invalid animation format",
"2502": "cc.SpriteFrameAnimationCache.addAnimations(): File could not be found",
"2503": "cocos2d: cc.SpriteFrameAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
"2504": "cocos2d: cc.SpriteFrameAnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
"2505": "cocos2d: cc.SpriteFrameAnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",
"2506": "cocos2d: cc.SpriteFrameAnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",
"2507": "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
"2508": "cocos2d: cc.SpriteFrameAnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
"2509": "cc.SpriteFrameAnimationCache.addAnimations(): Invalid texture file name",
"2600": "cc.Sprite.reorderChild(): this child is not in children list",
"2601": "cc.Sprite.setIgnoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
"2602": "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
"2603": "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
"2604": "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
"2605": "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
"2606": "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
"2608": "initWithSpriteFrameName is deprecated and can not provide correct functionality",
"2609": "cc.Sprite.initWithFile(): filename should be non-null",
"2610": "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
"2611": "cc.Sprite.reorderChild(): child should be non-null",
"2612": "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
"2613": "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
"2614": "cc.Sprite.addChild(): child should be non-null",
"2615": "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
"2616": "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
"2617": "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
"2618": "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
"2619": "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
"2620": "Sprite.initWithTexture(): Argument must be non-nil ",
"2621": "Invalid spriteFrameName",
"2622": "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
"2623": "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
"2624": "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
"2625": "too many tiles, only 16384 tiles will be show",
"2626": "Unrecognized fill type in bar fill",
"2627": "Can not generate quad",
"2728": "%s does not exist",
"2700": "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
"2701": "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
"2702": "cocos2d: WARNING: Not enough memory to resize the atlas",
"2703": "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
"2704": "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
"2705": "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
"2706": "cc.SpriteBatchNode.addChild(): child should be non-null",
"2707": "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
"2708": "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
"2709": "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
"2710": "Sprite.initWithTexture(): Argument must be non-nil ",
"2711": "cc.Sprite.addChild(): child should be non-null",
"2712": "Invalid spriteFrameName",
"2713": "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
"2714": "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
"2715": "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
"2716": "cc.SpriteBatchNode.addChild(): child should be non-null",
"2800": "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
"2801": "cocos2d: WARNING: an alias with name %s already exists",
"2802": "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
"2803": "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
"2804": "Please load the resource first : %s",
"2805": "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
"2806": "Argument must be non-nil",
"2900": "cocos2d: Could not open file: %s",
"2901": "cc.TextureAtlas.insertQuad(): invalid totalQuads",
"2902": "cc.TextureAtlas.initWithTexture():texture should be non-null",
"2903": "cc.TextureAtlas.updateQuad(): quad should be non-null",
"2904": "cc.TextureAtlas.updateQuad(): Invalid index",
"2905": "cc.TextureAtlas.insertQuad(): Invalid index",
"2906": "cc.TextureAtlas.insertQuad(): Invalid index + amount",
"2907": "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
"2908": "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
"2909": "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
"2910": "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
"2911": "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
"2912": "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
"2913": "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
"3000": "TextureCache:addPVRTCImage does not support on HTML5",
"3001": "TextureCache:addPVRTCImage does not support on HTML5",
"3002": "textureForKey is deprecated. Please use getTextureForKey instead.",
"3003": "addPVRImage does not support on HTML5",
"3004": "cocos2d: Couldn't add UIImage in TextureCache",
"3005": "cocos2d: '%s' id=%s %s x %s",
"3006": "cocos2d: '%s' id= HTMLCanvasElement %s x %s",
"3007": "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
"3008": "cc.Texture.addUIImage(): image should be non-null",
"3009": "TextureCache: url should be non-null",
"3100": "initWithETCFile does not support on HTML5",
"3101": "initWithPVRFile does not support on HTML5",
"3102": "initWithPVRTCData does not support on HTML5",
"3103": "cc.Texture.addImage(): path should be non-null",
"3104": "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
"3105": "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
"3106": "initWithString isn't supported on cocos2d-html5",
"3107": "initWithETCFile does not support on HTML5",
"3108": "initWithPVRFile does not support on HTML5",
"3109": "initWithPVRTCData does not support on HTML5",
"3110": "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
"3111": "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
"3112": "cc.Texture.addImage(): path should be non-null",
"3113": "NSInternalInconsistencyException",
"3114": "SpriteFrame: Failed to load sprite texture '%s'",
"3115": "Frame Grabber: could not attach texture to framebuffer",
"3116": "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures",
"3117": "Mimpap texture only works in POT textures",
"3118": "contentSize parameter is deprecated and ignored for cc.Texture2D initWithData function",
"3300": "Rect width exceeds maximum margin: %s",
"3400": "Rect height exceeds maximum margin: %s",
"3500": "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
"3501": "Invalid listener type!",
"3502": "Can't set fixed priority with scene graph based listener.",
"3503": "Invalid parameters.",
"3504": "listener must be a cc.EventListener object when adding a fixed priority listener",
"3505": "The listener has been registered, please don't register it again.",
"3506": "Unsupported listener target.",
"3507": "Invalid scene graph priority!",
"3508": "If program goes here, there should be event in dispatch.",
"3509": "_inDispatch should be 1 here.",
"3510": "%s's scene graph node not contains in the parent's children",
"3600": "cc.Class will automatically call super constructor of %s, you should not call it manually.",
"3601": "The editor property 'playOnFocus' should be used with 'executeInEditMode' in class '%s'",
"3602": "Unknown editor property '%s' in class '%s'.",
"3603": "Use 'cc.Float' or 'cc.Integer' instead of 'cc.Number' please. đ",
"3604": "Can only indicate one type attribute for %s.",
"3605": "The default value of %s is not instance of %s.",
"3606": "No needs to indicate the '%s' attribute for %s, which its default value is type of %s.",
"3607": "The default value of %s must be an empty string.",
"3608": "The type of %s must be cc.String, not String.",
"3609": "The type of %s must be cc.Boolean, not Boolean.",
"3610": "The type of %s must be cc.Float or cc.Integer, not Number.",
"3611": "Can not indicate the '%s' attribute for %s, which its default value is type of %s.",
"3612": "%s Just set the default value to 'new %s()' and it will be handled properly.",
"3613": "'No need to specify the '%s' attribute for the getter of '%s.%s', every getter is actually non-serialized.",
"3615": "Each script can have at most one Component.",
"3616": "Should not specify class name %s for Component which defines in project.",
"3617": "ctor of CCClass '%s' should not accept any arguments.",
"3618": "ctor of '%s' can not be another CCClass",
"3619": "ctor of '%s' must be function type",
"3620": "this._super declared in '%s.%s' but no super method defined",
"3621": "Unknown type of %s.%s, maybe you want is '%s'.",
"3622": "Unknown type of %s.%s, property should be defined in 'properties' or 'ctor'",
"3623": "Can not use 'editor' attribute, '%s' not inherits from Components.",
"3624": "'%s' overwrote '%s' but '%s' is defined as 'false' so the super method will not be called. You can set '%s' to null to disable this warning.",
"3625": "[isChildClassOf] superclass should be function type, not",
"3626": "Can't remove '%s' because '%s' depends on it.",
"3627": "Should not add renderer component (%s) to a Canvas node.",
"3628": "Should not add %s to a node which size is already used by its other component.",
"3629": "attribute must be type object",
"3630": "RawType is only available for Assets",
"3631": "RawType name cannot contain uppercase",
"3632": "Each asset cannot have more than one RawType",
"3633": "Properties function of '%s' should return an object!",
"3634": "Disallow to use '.' in property name",
"3635": "Default array must be empty, set default value of %s.%s to [], and initialize in 'onLoad' or 'ctor' please. (just like 'this.%s = [...];')",
"3636": "Can not set default value to non-empty object, unless the object derived from cc.ValueType and overwrite the 'clone' function. Set default value of %s.%s to null or {}, and initialize in 'onLoad' or 'ctor' please. (just like 'this.%s = {foo: bar};')",
"3637": "Can not declare %s.%s, it is already defined in the prototype of %s",
"3638": "'%s': the getter of '%s' is already defined!",
"3640": "'%s': the setter of '%s' is already defined!",
"3641": "Can not construct %s because it contains object property.",
"3642": "Cannot define %s.%s because static member name can not be '%s'.",
"3643": "Can not define a member called 'constructor' in the class '%s', please use 'ctor' instead.",
"3644": "Please define 'type' parameter of %s.%s as the actual constructor.",
"3645": "Please define 'type' parameter of %s.%s as the constructor of %s.",
"3646": "Unknown 'type' parameter of %s.%sīŧ%s",
"3647": "The length of range array must be equal or greater than 2",
"3648": "Can not declare %s.%s method, it is already defined in the properties of %s.",
"3649": "CCClass %s have conflict between its ctor and __ctor__.",
"3650": 'No need to specifiy "%s" attribute for "%s" property in "%s" class.',
"3651": 'Can not call `_super` or `prototype.ctor` in ES6 Classes "%s", use `super` instead please.',
"3652": 'Failed to construct a dummy instance of the "%s" class using `new` behind the scenes. This is for getting default values declared in TypeScript. Please ensure the class will be able to construct during script\'s initialization. %s',
"3653": 'Please do not specifiy "default" attribute in decorator of "%s" property in "%s" class.\n Default value must be initialized at their declaration: đ\n // Before:\n @property({\n type: cc.Integer\n default: 0 // <--\n })\n value;\n\n // After:\n @property({\n type: cc.Integer\n })\n value = 0; // <--',
"3654": 'Please specifiy a default value for "%s" property at its declaration: đ\n // Before:\n @property(...)\n value;\n\n // After:\n @property(...)\n value = 0;',
"3655": 'Can not specifiy "get" or "set" attribute in decorator for "%s" property in "%s" class.\n Please use:\n @property(...)\n get %s () {\n ...\n }\n @property\n set %s (value) {\n ...\n }',
"3700": "internal error: _prefab is undefined",
"3701": "Failed to load prefab asset for node '%s'",
"3800": "The target can not be made persist because it's invalid or it doesn't have _id property.",
"3801": "The node can not be made persist because it's not under root node.",
"3802": "The node can not be made persist because it's not in current scene.",
"3803": "The target can not be made persist because it's not a cc.Node or it doesn't have _id property.",
"3804": "getComponent: Type must be non-nil",
"3805": "Can't add component '%s' because %s already contains the same component.",
"3806": "Can't add component '%s' to %s because it conflicts with the existing '%s' derived component.",
"3807": "addComponent: Failed to get class '%s'",
"3808": "addComponent: Should not add component ('%s') when the scripts are still loading.",
"3809": "addComponent: The component to add must be a constructor",
"3810": "addComponent: The component to add must be child class of cc.Component",
"3811": "_addComponentAt: The component to add must be a constructor",
"3812": "_addComponentAt: Index out of range",
"3813": "removeComponent: Component must be non-nil",
"3814": "Argument must be non-nil",
"3815": "Component not owned by this entity",
"3816": "Node '%s' is already activating or deactivating.",
"3817": "Sorry, the component of '%s' which with an index of %s is corrupted! It has been removed.",
"3818": "Failed to read or parse project.json",
"3819": "Warning: target element is not a DIV or CANVAS",
"3900": "Invalid clip to add",
"3901": "Invalid clip to remove",
"3902": "clip is defaultClip, set force to true to force remove clip and animation state",
"3903": "animation state is playing, set force to true to force stop and remove clip and animation state",
"3904": "motion path of target [%s] in prop [%s] frame [%s] is not valid",
"3905": "sprite frames must be an Array.",
"3906": "Can't find easing type [%s]",
"3907": "animator not added or already removed",
"3908": "animation not added or already removed",
"3909": "[animate] keyFrames must be non-nil",
"3910": "[animate] ratio should >= 0!",
"3911": "[animate] ratio should in the order of smallest to largest!",
"4000": "Sorry, the cc.Font has been modified from Raw Asset to Asset. Please load the font asset before using.",
"4001": "_ccsg.Label._initBMFontWithString(): Impossible to create font. Please check file",
"4002": "_ccsg.Label._initBMFontWithString(): re-init is no longer supported",
"4003": "Label font size can't be shirnked less than 0!",
"4004": "force notify all fonts loaded!",
"4005": "cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version",
"4006": "cc.LabelAtlas._updateAtlasValues(): Invalid String length",
"4007": "cc.LabelBMFont.initWithString(): re-init is no longer supported",
"4008": "cc.LabelBMFont.initWithString(): Impossible to create font. Please check file",
"4009": "cocos2d: LabelBMFont: character not found %s",
"4010": "cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file",
"4011": "Property spriteFrame of Font '%s' is invalid. Using system font instead.",
"4012": "The texture of Font '%s' must be already loaded on JSB. Using system font instead.",
"4013": "Sorry, lineHeight of system font not supported on JSB.",
"4100": "Property padding is deprecated, please use paddingLeft, paddingRight, paddingTop and paddingBottom instead",
"4200": "MaskType: IMAGE_STENCIL only support WebGL mode.",
"4201": "The alphaThreshold invalid in Canvas Mode.",
"4202": "The inverted invalid in Canvas Mode.",
"4300": "can not found the %s page.",
"4400": "Invalid RichText img tag! The sprite frame name can't be found in the ImageAtlas!",
"4600": "Script attached to '%s' is missing or invalid.",
"4700": "The dom control is not created!",
"4800": "unknown asset type %s",
"4901": "loadRes: should not specify the extname in %s %s",
"4902": "No need to release non-cached asset.",
"4903": "Can not get class '%s'",
"4904": "%s does not exist",
"4905": "%s load error, must be json file",
"4906": "Can't find the parser : %s",
"4907": "%s is armature. please use:",
"4908": " ccs.armatureDataManager.addArmatureFileInfoAsync(%s);",
"4909": " var armature = new ccs.Armature('name');",
"4910": "Can't find the parser : %s",
"4911": "register parser error",
"4912": "Can't find the parser : %s",
"4913": "Group versions haven't been loaded, you can also set group data with 'cc.LoaderLayer.groups'",
"4914": "Resources url '%s' does not exist.",
"4915": "Pack indices and data do not match in size",
"4916": "Failed to download package for %s",
"4917": "cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported",
"4918": "cc.LabelBMFont._parseCommonArguments(): only supports 1 page",
"4919": "cc.LabelBMFont._parseImageFileName() : file could not be found",
"4920": "Sorry, you shouldn't use id as item identity any more, please use url or uuid instead, the current id is being set as url: (%s)",
"4921": "Invalid pipe or invalid index provided!",
"4922": "The pipe to be inserted is already in the pipeline!",
"5000": "object already destroyed",
"5001": "object not yet destroyed",
"5100": "Not a plist file!",
"5200": "Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option",
"5201": "browser don't support web audio",
"5300": "Type of target to deserialize not matched with data: target is %s, data is %s",
"5301": "Can not find script '%s'",
"5302": "Can not find class '%s'",
"5400": "'%s' is deprecated, use '%s' instead please.",
"5401": "'%s' is deprecated, use '%s' instead please.",
"5402": "cc.js.addon called on non-object: ",
"5403": "cc.js.mixin: arguments must be type object: ",
"5404": "The base class to extend from must be non-nil",
"5405": "The class to extend must be non-nil",
"5406": "Class should be extended before assigning any prototype members.",
"5500": "'notify' can't work with 'get/set' !",
"5501": "'notify' must work with 'default' !",
"5502": "Invalid url of %s.%s",
"5503": "The 'url' attribute of '%s.%s' is undefined when loading script.",
"5504": "The 'url' type of '%s.%s' must be child class of cc.RawAsset.",
"5505": "The 'url' type of '%s.%s' must not be child class of cc.Asset, otherwise you should use 'type: %s' instead.",
"5506": "Can not specify 'type' attribute for '%s.%s', because its 'url' is already defined.",
"5507": "The 'default' attribute of '%s.%s' must be an array",
"5508": "Invalid type of %s.%s",
"5509": "The 'type' attribute of '%s.%s' must be child class of cc.Asset, otherwise you should use 'url: %s' instead",
"5510": "The 'type' attribute of '%s.%s' can not be 'Number', use 'Float' or 'Integer' instead please.",
"5511": "The 'type' attribute of '%s.%s' is undefined when loading script",
"5512": "Can not serialize '%s.%s' because the specified type is anonymous, please provide a class name or set the 'serializable' attribute of '%s.%s' to 'false'.",
"5513": "The 'default' value of '%s.%s' should not be used with a 'get' function.",
"5514": "The 'default' value of '%s.%s' should not be used with a 'set' function.",
"5515": "The 'default' value of '%s.%s' can not be an constructor. Set default to null please.",
"5516": "Property '%s.%s' must define at least one of 'default', 'get' or 'set'.",
"5517": "'%s.%s' hides inherited property '%s.%s'. To make the current property overwrite that implementation, add the `override: true` attribute please.",
"5600": "Argument must be non-nil",
"5601": "Can not get current scene.",
"5602": "Scene is destroyed",
"5603": "reference node is destroyed",
"5700": "no %s or %s on %s",
"5800": "%s.lerp not yet implemented.",
"5801": "%s.clone not yet implemented.",
"5802": "%s.equals not yet implemented.",
"5900": "MotionStreak only support WebGL mode.",
"5901": "cc.MotionStreak.getOpacity has not been supported.",
"5902": "cc.MotionStreak.setOpacity has not been supported.",
"6000": "Custom should not be false if file is not specified.",
"6001": "The new %s must not be NaN",
"6002": "_ccsg.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function",
"6003": "cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it",
"6004": "cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch",
"6005": "cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas",
"6006": "cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [%d] to [%d]",
"6007": "cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again",
"6008": "_ccsg.ParticleSystem.initWithFile(): Particles: file not found",
"6009": "_ccsg.ParticleSystem.initWithDictionary(): Invalid emitterType in config file",
"6010": "_ccsg.ParticleSystem: error decoding or ungzipping textureImageData",
"6011": "_ccsg.ParticleSystem: unknown image format with Data",
"6012": "_ccsg.ParticleSystem.initWithDictionary() : error loading the texture",
"6013": "Particle system: not enough memory",
"6014": "Can't change blending functions when the particle is being batched",
"6015": "_ccsg.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets",
"6016": "_ccsg.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode",
"6100": "Not supported file types, Please try use the ccs.load",
"6200": "Canvas doesn't support mesh slot!",
"6300": "only cc.DrawNode is accepted as stencil",
"6301": "Stencil buffer is not enabled.",
"6302": "Nesting more than %d stencils is not supported. Everything will be drawn without stencil for this node and its children.",
"6400": "asset.url is not usable in core process",
"6401": "asset.urls is not usable in core process",
"6402": "AssetLibrary has already been initialized!",
"6500": "Widget target must be one of the parent nodes of it",
"6600": "collider not added or already removed",
"6601": "Can't find testFunc for (%s, $s).",
"6700": "Can't init canvas '%s' because it conflicts with the existing '%s', the scene should only have one active canvas at the same time",
"6701": "Should not add Canvas to a node which already contains a renderer component (%s).",
"6702": "Should not add Canvas to a node which size is already used by its other component.",
"6800": "Callback of event must be non-nil",
"6801": "The message must be provided",
"6900": "The thing you want to instantiate must be an object",
"6901": "The thing you want to instantiate is nil",
"6902": "The thing you want to instantiate is destroyed",
"6903": "The instantiate method for given asset do not implemented",
"6904": "Can not instantiate array",
"6905": "Can not instantiate DOM element",
"7000": "Failed to init asset's raw path.",
"7001": "Should not load '%s' from script dynamically, unless it is placed in the 'resources' folder.",
"7002": "Sorry can not load '%s' because it is not placed in the 'resources' folder.",
"7003": "Failed to init builtin asset's raw path.",
"7100": "%s already defined in Enum.",
"7101": "Sorry, 'cc.Enum' not available on this platform, please report this error here: https://github.com/cocos-creator/engine/issues/new",
"7200": "Method 'initWithTMXFile' is no effect now, please set property 'tmxAsset' instead.",
"7201": "Method 'initWithXML' is no effect now, please set property 'tmxAsset' instead.",
"7202": "Add component TiledLayer into node failed.",
"7203": "Property 'mapLoaded' is unused now. Please write the logic to the callback 'start'.",
"7204": "_ccsg.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released",
"7205": "_ccsg.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released",
"7206": "_ccsg.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released",
"7207": "_ccsg.TMXLayer.setTileGID(): invalid gid: %s",
"7208": "_ccsg.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released",
"7209": "_ccsg.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released",
"7210": "TMX Hexa zOrder not supported",
"7211": "TMX invalid value",
"7212": "_ccsg.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.",
"7213": "_ccsg.TMXTiledMap.initWithXML(): Map not found. Please check the filename.",
"7214": "propertiesForGID is deprecated. Please use getPropertiesForGID instead.",
"7215": "cocos2d: Warning: TMX Layer %s has no tiles",
"7216": "cocos2d: TMXFormat: Unsupported TMX version: %s",
"7217": "cocos2d: TMXFomat: Unsupported orientation: %s",
"7218": "cc.TMXMapInfo.parseXMLFile(): unsupported compression method",
"7219": "cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported",
"7220": "TMX Parser: please load the xml resource first: %s",
"7300": "The new selected must be number",
"7301": "The new bake must be boolean",
"7400": "Failed to set _defaultArmatureIndex for '%s' because its dragonAsset is invalid.",
"7401": "Failed to set _defaultArmatureIndex for '%s' because the index is out of range.",
"7402": "Failed to set _animationIndex for '%s' because the index is out of range.",
"7500": "Failed to set _defaultSkinIndex for '%s' because its skeletonData is invalid.",
"7501": "Failed to set _defaultSkinIndex for '%s' because the index is out of range.",
"7502": "Failed to set _animationIndex for '%s' because its skeletonData is invalid.",
"7503": "Failed to set _animationIndex for '%s' because the index is out of range.",
"7504": "Can not render dynamic created SkeletonData",
"7505": "Invalid type of atlasFile, atlas should be registered as raw asset.",
"7506": "Failed to load spine atlas '$s'",
"7507": "Please re-import '%s' because its textures is not initialized! (This workflow will be improved in the future.)",
"7508": "The atlas asset of '%s' is not exists!",
"7509": "Spine: Animation not found: %s",
"7510": "Spine: Animation not found: %s",
"7600": "The context of RenderTexture is invalid.",
"7700": "On the web is always keep the aspect ratio",
"7701": "Can't know status",
"7702": "Video player's duration is not ready to get now!",
"7800": "Web does not support loading",
"7801": "Web does not support query history",
"7802": "Web does not support query history",
"7803": "The current browser does not support the GoBack",
"7804": "The current browser does not support the GoForward",
"7805": "Web does not support zoom",
"7900": "cc.math.Matrix3.assign(): current matrix equals matIn",
"7901": "cc.math.mat4Assign(): pOut equals pIn",
"7902": "cc.mat.Matrix4.assignFrom(): mat4 equals current matrix",
"7903": "cc.math.Matrix4 equal: pMat1 and pMat2 are same object.",
"7904": "cc.math.Matrix4.extractPlane: Invalid plane index",
"7905": "cc.math.mat4Assign(): pOut equals pIn",
"7906": "cc.mat.Matrix4.assignFrom(): mat4 equals current matrix",
"7907": "cc.math.Matrix4 equals: pMat1 and pMat2 are same object.",
"8000": "Can't handle this field type or s