先下载quick安装,再下载sublime安装,再sublime的view-->show console中输入这个链接的对应版本,https://sublime.wbond.net/installation#st2
import urllib.request,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404‘ + ‘e330c659d4bb41d3bdf022e94cab3cd0‘; pf = ‘Package Control.sublime-package‘; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://packagecontrol.io/‘ + pf.replace(‘ ‘, ‘%20‘)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install‘ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb‘ ).write(by)
import urllib2,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404‘ + ‘e330c659d4bb41d3bdf022e94cab3cd0‘; pf = ‘Package Control.sublime-package‘; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( ‘http://packagecontrol.io/‘ + pf.replace(‘ ‘, ‘%20‘)).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), ‘wb‘ ).write(by) if dh == h else None; print(‘Error validating download (got %s instead of %s), please try manual install‘ % (dh, h) if dh != h else ‘Please restart Sublime Text to finish installation‘)
不对应则报错,
而后又run with player,报错player no exists,通过下面方案可解决
----------------------------------------------------------------------------------------
,提示“player
not
exist”,简单的看了2.2.3的框架结构,对比了2.2.1的版本,发现却是在新的版本中player的路径做了调整。
player/mac/quick-x-player.app/Contents/MacOS/quick-x-player
继续解决问题,报错了,那就调整下player的路径就可以了,问题是在哪里调试呢,由于开发使用的工具是sublime的一个插件。好了,下面说一下解决方法:
终端进入到:“
”C:\Users\Fire\AppData\Roaming\Sublime Text 2\Packages\QuickXDev“
quickx.py
找到此位置降路径调整下就可以了。
playerPath=quick_cocos2dx_root+"/player/win/quick-x-player.exe"