FantasyWarrior3D Cocos2d-x 3D 项目开源了~

win7 x64 cocos3.3,vs2012,log中没有找到错误信息,就是打开调试的时候界面一闪就退了,没有=====输出,但是非调试运行没问题

版主弄个群吧,有问题可以大家一起交流

太好了! 感谢楼主的辛勤劳动和无私奉献!

build runtime出这个错,何解?
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 18-23: ordinal not in range(128)

错误输出应该有显示是哪个python脚本出错的。尝试使用在该脚本文件前添加这两句,看是否能解决?

reload(sys) 
sys.setdefaultencoding( "utf-8" ) 
```

非常好,顶 :2::2::2:

:2: 必须顶一下。

github 最新的代码,build run time 后运行,会报 cocos2d: :1: loop or previous error loading module ‘src/main.lua’

要注意几点:

1.引擎要使用项目自带的引擎。在frameworks/cocos2d-x/目录下。
2.确认runtime编译是成功的。编译完runtime,最好在配置里确认一下,现在选中的runtime是不是你编译出的这个。
3.还有其他的log吗?

:2::14::13::13::11::7:

必须顶上去!!!!!

设置frameworks/cocos2d-x/目录下的引擎不成功,会弹框提示Cannot find cocos console in the engine directory. Please…

mark aaaaaaaaaaaaaaaaaaa

嗯,因为自带的引擎没有拷贝console进去,你只需设置一个正常的Cocos2d-x 3.3版本(你在官网下载的)进去就可以了,这是一个全局的设置。

不需要去把framework/cocos2d-x目录设置到framework。

因为已经有了native code(项目自带的),所以直接编译runtime即可。

支持一下3D Demo!

谢谢啊 这么好的东西

cocos2d: fullPathForFilename: No file found at .\DeprecatedNetworkEnum.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedNetworkFunc.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedCocosBuilderClass.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedCocosBuilderClass.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedCocosBuilderClass.lua
:1: module ‘DeprecatedCocosBuilderClass’ not found:
no field package.preload’DeprecatedCocosBuilderClass’]
no file ‘.\DeprecatedCocosBuilderClass.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedCocosBuilderClass.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedCocosBuilderClass\init.lua’
no file ‘.\DeprecatedCocosBuilderClass.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedCocosBuilderClass.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedCocoStudioClass.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedCocoStudioClass.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedCocoStudioClass.lua
:1: module ‘DeprecatedCocoStudioClass’ not found:
no field package.preload’DeprecatedCocoStudioClass’]
no file ‘.\DeprecatedCocoStudioClass.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedCocoStudioClass.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedCocoStudioClass\init.lua’
no file ‘.\DeprecatedCocoStudioClass.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedCocoStudioClass.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedCocoStudioFunc.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedCocoStudioFunc.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedCocoStudioFunc.lua
:1: module ‘DeprecatedCocoStudioFunc’ not found:
no field package.preload’DeprecatedCocoStudioFunc’]
no file ‘.\DeprecatedCocoStudioFunc.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedCocoStudioFunc.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedCocoStudioFunc\init.lua’
no file ‘.\DeprecatedCocoStudioFunc.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedCocoStudioFunc.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedUIEnum.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedUIEnum.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedUIEnum.lua
:1: module ‘DeprecatedUIEnum’ not found:
no field package.preload’DeprecatedUIEnum’]
no file ‘.\DeprecatedUIEnum.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedUIEnum.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedUIEnum\init.lua’
no file ‘.\DeprecatedUIEnum.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedUIEnum.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedUIFunc.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedUIFunc.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedUIFunc.lua
:1: module ‘DeprecatedUIFunc’ not found:
no field package.preload’DeprecatedUIFunc’]
no file ‘.\DeprecatedUIFunc.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedUIFunc.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedUIFunc\init.lua’
no file ‘.\DeprecatedUIFunc.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedUIFunc.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedExtensionClass.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedExtensionClass.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedExtensionClass.lua
:1: module ‘DeprecatedExtensionClass’ not found:
no field package.preload’DeprecatedExtensionClass’]
no file ‘.\DeprecatedExtensionClass.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedExtensionClass.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedExtensionClass\init.lua’
no file ‘.\DeprecatedExtensionClass.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedExtensionClass.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedExtensionEnum.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedExtensionEnum.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedExtensionEnum.lua
:1: module ‘DeprecatedExtensionEnum’ not found:
no field package.preload’DeprecatedExtensionEnum’]
no file ‘.\DeprecatedExtensionEnum.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedExtensionEnum.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedExtensionEnum\init.lua’
no file ‘.\DeprecatedExtensionEnum.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedExtensionEnum.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
cocos2d: fullPathForFilename: No file found at .\DeprecatedExtensionFunc.luac. Possible missing file.
cocos2d: fullPathForFilename: No file found at .\DeprecatedExtensionFunc.lua. Possible missing file.
can not get file data of D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua?\init.lua;DeprecatedExtensionFunc.lua
:1: module ‘DeprecatedExtensionFunc’ not found:
no field package.preload’DeprecatedExtensionFunc’]
no file ‘.\DeprecatedExtensionFunc.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedExtensionFunc.lua’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\lua\DeprecatedExtensionFunc\init.lua’
no file ‘.\DeprecatedExtensionFunc.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\DeprecatedExtensionFunc.dll’
no file ‘D:\Mobile\work_space\FantasyWarrior3D-master\runtime\win32\loadall.dll’
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

已经编译runtime了,但是提示找不到这些lua,为什么呢?

你用的是项目带的引擎还是自己的?你的操作步骤是?

收藏下。。。

mark,很不错的文章…支持下!