大厅子游戏模式

  • Creator 版本:2.3.2

  • 目标平台:iOS / Android / 模拟器

  • 详细报错信息,包含调用堆栈:
    org.cocos2d.demo E/jswrapper: ScriptEngine::onGetStringFromFile /data/data/org.cocos2d.demo/files/ALLGame/subgame/src/main.js not found, possible missing file.

org.cocos2d.demo E/jswrapper: ScriptEngine::runScript script /data/data/org.cocos2d.demo/files/ALLGame/subgame/src/main.js, buffer is empty!

org.cocos2d.demo E/jswrapper: [ERROR] Failed to invoke require, location: C:/build/GameHall/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp:300

  • 重现方式:大厅启动,加载更新完子游戏,点击进入子游戏:window.require(this._storagePath + “/src/main.js”);

  • 之前哪个版本是正常的 :无

  • 手机型号 :任意手机

  • 编辑器之前是否有其它报错 :无

  • 出现概率:百分百

请各位大佬帮帮忙,按网上例子启动子游戏报错,不知道是不是main.js编写有问题,是按https://www.jianshu.com/p/fe54ca980384这个例子来弄的

这个更加好, https://www.jianshu.com/p/6d878adbf0bf 你可以看看

我感觉这个不太适合我的项目,因为我这边是多个子项目单独已经分别做好了的,我后面才做的大厅,不适合把子游戏放进来了

而且我暂时不打算升级到2.4

大佬,你看看我的那个报错,你见过么,怎么修改