mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
Minecraft game add skill_manager & ignore bug fix
This commit is contained in:
parent
dfc59422d9
commit
d41cf7cad6
25 changed files with 941 additions and 81 deletions
32
Temp.md
32
Temp.md
|
|
@ -2,11 +2,11 @@ ## MG-MC记录文档
|
|||
|
||||
### 0926: 环境信息获取和更新 on_event()实际内容
|
||||
|
||||
1. Nodejs + Mineflayer配置
|
||||
1.Nodejs + Mineflayer配置
|
||||
|
||||
A.自行安装[Node.js (nodejs.org)](https://nodejs.org/en)
|
||||
|
||||
B.Mineflayer配置
|
||||
B.clone完之后,必须重新继续Mineflayer配置
|
||||
|
||||
```bash
|
||||
cd metagpt/mineflayer_env/mineflayer
|
||||
|
|
@ -19,9 +19,13 @@ ### 0926: 环境信息获取和更新 on_event()实际内容
|
|||
npm install
|
||||
```
|
||||
|
||||
2.在mg环境上额外执行
|
||||
|
||||
```python
|
||||
pip install -r mc_requirement.txt
|
||||
```
|
||||
|
||||
2.配置完游戏后,在 minecraft_run.py 下修改
|
||||
3.配置完游戏后,在 minecraft_run.py 下修改
|
||||
|
||||
```python
|
||||
mc_player.set_port(2465) # Modify this to your LAN port
|
||||
|
|
@ -41,3 +45,25 @@ ### 0927:Action_developer 更新
|
|||
测试结果
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
### 0930:Curriculum agent 更新
|
||||
|
||||
对应需实现 DesignTask和DesignCurriculum,以及与Environment 的信息传递。
|
||||
|
||||
|
||||
|
||||
**BUG FIX(0930):**
|
||||
|
||||
A.在前面的提交中,由于ignore了mineflayer下的lib,会造成如下报错
|
||||
|
||||
```bash
|
||||
metagpt.minecraft_team:on_event:143 - Failed to retrieve Minecraft events: HTTPConnectionPool(host='127.0.0.1', port=3000): Max retries exceeded with url: /start (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7a0556130>: Failed to establish a new connection: [Errno 111] Connection refused'))
|
||||
```
|
||||
|
||||
解决方法:
|
||||
|
||||
1. 若本地已克隆项目不好更改可尝试:删除 metagpt/mineflayer_env/mineflayer + 重新copy voyager/env/mineflayer到目录下 + (npm install...0926.B命令)
|
||||
2. 重新拉取最新提交+重新配置
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue