开发者社区 问答 正文

luajit加密打好game.zip 运行时黑屏?报错

@lonewolf 你好,看了你的luajit加密,想跟你请教个问题:我按照你的方法已经打好game.zip 运行时黑屏加报错

Cocos2d: [LUA ERROR] [string "base.httpAction"]:0: module 'command/LoadingLayer' not found:

no field package.preload['command/LoadingLayer']

no file './command/LoadingLayer.lua'

no file '/usr/local/share/luajit-2.0.2/command/LoadingLayer.lua'

no file '/usr/local/share/lua/5.1/command/LoadingLayer.lua'

no file '/usr/local/share/lua/5.1/command/LoadingLayer/init.lua'

no file './command/LoadingLayer.so'

no file '/usr/local/lib/lua/5.1/command/LoadingLayer.so'

no file '/usr/local/lib/lua/5.1/loadall.so'


base.httpAction,command/LoadingLayer是我写的2个lua类, 没打包前可以正常运行,quick-cocos2d路径也没问题,原代码scripts也Remove reference,就是找不出原因,麻烦你百忙中抽空帮我看下,谢了

展开
收起
爱吃鱼的程序员 2020-06-20 16:30:59 518 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你改了C++代码了吗

    appdelegate.cpp完全和你一样


    2020-06-20 16:31:18 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论