clausewitzcpu0 / sc2ai Goto Github PK
View Code? Open in Web Editor NEW星际2 AI中文教程 StarCraft2 AI with python-sc2/pysc2 API
License: GNU General Public License v3.0
星际2 AI中文教程 StarCraft2 AI with python-sc2/pysc2 API
License: GNU General Public License v3.0
ch3 中有点拼写问题
worker = self.select_build_worker(vespene.position)
if worker is None:
break
if not self.units(ASSIMILATOR).closer_than(1.0, vespene).exists:
await self.do(worker.build(ASSIMILATOR, vespene))
vespenes 而不是vespene
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C1083 无法打开包括文件: “s2clientprotocol/sc2api.pb.h”: No such file or directory sc2api (sc2api\sc2api) C:\Users\Administrator\Sc2LadderServer\cpp-sc2\src\sc2api\sc2_action.cc 6
正常运行会有报错,把报错的语句改掉后会找不到地图 提示E:\ProgramData\Anaconda3\envs\python36\python.exe E:/ProgramData/SC2AI-master/ch1.0_Collecting_Minerals.py
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:sc2.sc2process:kill_switch: Process cleanup
INFO:sc2.sc2process:Cleaning up...
INFO:sc2.sc2process:Cleanup complete
Traceback (most recent call last):
File "E:/ProgramData/SC2AI-master/ch1.0_Collecting_Minerals.py", line 33, in
main()
File "E:/ProgramData/SC2AI-master/ch1.0_Collecting_Minerals.py", line 29, in main
Computer(Race.Protoss, Difficulty.Easy)], realtime=True)
File "E:\ProgramData\Anaconda3\envs\python36\lib\site-packages\sc2\main.py", line 326, in run_game
_host_game(map_settings, players, **kwargs)
File "E:\ProgramData\Anaconda3\envs\python36\lib\asyncio\base_events.py", line 473, in run_until_complete
return future.result()
File "E:\ProgramData\Anaconda3\envs\python36\lib\site-packages\sc2\main.py", line 250, in _host_game
client = await _setup_host_game(server, map_settings, players, realtime, random_seed)
File "E:\ProgramData\Anaconda3\envs\python36\lib\site-packages\sc2\main.py", line 230, in _setup_host_game
r = await server.create_game(map_settings, players, realtime, random_seed)
File "E:\ProgramData\Anaconda3\envs\python36\lib\site-packages\sc2\controller.py", line 21, in create_game
req = sc_pb.RequestCreateGame(local_map=sc_pb.LocalMap(map_path=str(game_map.relative_path)), realtime=realtime)
AttributeError: 'NoneType' object has no attribute 'relative_path'
求指点
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.