geek-ai / MAgent

A Platform for Many-Agent Reinforcement Learning
MIT License
1.68k stars 332 forks source link

Cannot watch video by ./render in macOS #67

Closed znnby1997 closed 4 years ago

znnby1997 commented 4 years ago

$ ./render [2019-12-20 00:26:05] [0x1080ad5c0] Listening on port 9030 [2019-12-20 00:26:15] [0x1080ad5c0] successfully connected to the client [2019-12-20 00:26:17] [0x1080ad5c0] message receive: lconfig.json,video_1.txt [2019-12-20 00:26:17] [0x1080ad5c0] magent::render::RenderException: "invalid handle of the map data file" [2019-12-20 00:26:24] [0x1080ad5c0] the client closed the connection ^C (base) clicking the index.html file will lead to the RenderException: "invalid handle of the map data file"

Kipsora commented 4 years ago

Please refer to these existing issues #65 #48 #21. If you cannot solve it, please show how you execute the render (i.e. working path) and your files under the directory ./build/render. The error is caused by the render not being able to find the video data file (e.g. video_1.txt).

znnby1997 commented 4 years ago

MAgent/build/render on git:master x [0:42:15] $ ls config.json index.html js render static.map vendor (base) I find there is no video_1.txt in /build/render/

Kipsora commented 4 years ago

Could you please provide your building messages and the files in /build/render as well? We need these information to pinpoint the problem.

znnby1997 commented 4 years ago
屏幕快照 2019-12-20 上午12 50 58 屏幕快照 2019-12-20 上午12 52 31
Kipsora commented 4 years ago

You need to first run the scripts to generate the video file and then are able to watch it. Please follow the README to execute any of the training scripts (i.e. battle/gathering/pursuit)

znnby1997 commented 4 years ago

only executing demo_api.py couldn't generate the video file? I execute the demo_api.py.

Kipsora commented 4 years ago

No. api_demo.py is only showing examples on how to use our APIs. Please follow the README and Get Started to use our codes.

Kipsora commented 4 years ago

Issue closed since duplicate of #48. If you still have problems, please reopen the issue.