MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.36k stars 492 forks source link

Can we use the minecraft-server instead of minecraft-client? #88

Closed MeMeTaTa closed 11 months ago

MeMeTaTa commented 1 year ago

Because my server doesn't have the gui. Could the voyager run in a nogui server with minecraft-server?

xieleo5 commented 1 year ago

Yes, Mineflayer works on a headless server theoretically. However, we didn't test it. You may need to do some investigation yourself. The key point is publishing the server to LAN and getting the mc_port. Then you can use mc_port to connect to the game and play.

MeMeTaTa commented 1 year ago

i mean could the voyager interactive with minecraft-server directly?

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月7日(星期三) 下午5:55 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [MineDojo/Voyager] Can we use the minecraft-server instead of minecraft-client? (Issue #88)

Yes, Mineflayer works on a headless server theoretically. However, we didn't test it. You may need to do some investigation yourself. The key point is publishing the server to LAN and getting the mc_port. Then you can use mc_port to connect to the game and play.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

theblazehen commented 1 year ago

Yes, it works. Will write the docs later today

GoingMyWay commented 1 year ago

i mean could the voyager interactive with minecraft-server directly? ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月7日(星期三) 下午5:55 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [MineDojo/Voyager] Can we use the minecraft-server instead of minecraft-client? (Issue #88) Yes, Mineflayer works on a headless server theoretically. However, we didn't test it. You may need to do some investigation yourself. The key point is publishing the server to LAN and getting the mc_port. Then you can use mc_port to connect to the game and play. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

I managed to run Voyager on the server without gui as shown in the following. Left: the output of Voyager, right: the output of the Minecraft server (headless).

image

GoingMyWay commented 1 year ago

Yes, it works. Will write the docs later today

@theblazehen Hi, have you successfully reproduced the results with MineCraft Server? I tried many times on running the code with MineCraft server and the results were very bad.

MeMeTaTa commented 1 year ago

How did you do it? In my understanding, the minecraft on the server side is used to connect to the client and let the client run. It directly interacts without client, and then the server runs independently?

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月16日(星期五) 上午9:57 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [MineDojo/Voyager] Can we use the minecraft-server instead of minecraft-client? (Issue #88)

i mean could the voyager interactive with minecraft-server directly? … ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月7日(星期三) 下午5:55 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [MineDojo/Voyager] Can we use the minecraft-server instead of minecraft-client? (Issue #88) Yes, Mineflayer works on a headless server theoretically. However, we didn't test it. You may need to do some investigation yourself. The key point is publishing the server to LAN and getting the mc_port. Then you can use mc_port to connect to the game and play. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

I managed to run Voyager on the server without gui.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

theblazehen commented 1 year ago

@GoingMyWay Yeah, it works. Check out https://github.com/MineDojo/Voyager/pull/100/files

GoingMyWay commented 1 year ago

@GoingMyWay Yeah, it works. Check out https://github.com/MineDojo/Voyager/pull/100/files

Great. Thank you @theblazehen. BTW, how did you manage to set the right configurations of the server, especially the value of spawn-protection?

theblazehen commented 1 year ago

I'm not sure I understand your question @GoingMyWay ?

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 11 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.