windows平台解决quick3.5final + sublimeText3 模拟器找不到的问题

下载了quick3.5 准备在sublime上进行开发,结果发现quick3.5中的player模拟器不见了,原来模拟器移到了quick引擎主目录下的

 /tools/simulator/runtime/win32/下面,名字也改了,叫做simulator.exe。这样下来在sublime中安装好QuickXDev后,打开新建的cocos lua工程,右键Run With Player就会报错,说找不到player。

怎么办呢?

后来查了一下,说要修改一下QuickXDev主目录下的quickx.py这个python脚本文件中的一段话:

 playerPath=""
    if sublime.platform()=="osx":
        playerPath=quick_cocos2dx_root+"/player3.app/Contents/MacOS/player3"
    elif sublime.platform()=="windows":
        playerPath=quick_cocos2dx_root+"/quick/player/win32/player3.exe"
    if playerPath=="" or not os.path.exists(playerPath):
        sublime.error_message("player no exists")
        return

咱把  windows平台对应的 playerPath修改为:playerPath=quick_cocos2dx_root+"/tools/simulator/runtime/win32/simulator.exe",也就是模拟器的

路径,保存。

这时候后右键Run With Player发现不弹出错误了但是没有反应。

后来发现quick引擎的示例quick/samples里的工程里都有一个win_debug.bat这个批处理文件。点击后就可以在模拟器里运行示例。果断把这个文件复制粘贴到了自己的Lua工程的主目录下。

点击后果然弹出了模拟器并且运行了我的quick工程。

这时候如果你去sublime Text3里右键 Run With Player就会发现这个QuickXDev的这个功能好使了。

原文地址:https://www.cnblogs.com/pixs-union/p/5343461.html