Voyager icon indicating copy to clipboard operation
Voyager copied to clipboard

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

Open MeMeTaTa opened this issue 1 year ago • 9 comments

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

MeMeTaTa avatar Jun 07 '23 08:06 MeMeTaTa

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.

xieleo5 avatar Jun 07 '23 09:06 xieleo5

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: @.***>

MeMeTaTa avatar Jun 07 '23 10:06 MeMeTaTa

Yes, it works. Will write the docs later today

theblazehen avatar Jun 08 '23 07:06 theblazehen

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 avatar Jun 16 '23 01:06 GoingMyWay

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.

GoingMyWay avatar Jun 25 '23 14:06 GoingMyWay

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: @.***>

MeMeTaTa avatar Jun 26 '23 03:06 MeMeTaTa

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

theblazehen avatar Jun 26 '23 08:06 theblazehen

@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?

GoingMyWay avatar Jun 26 '23 10:06 GoingMyWay

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

theblazehen avatar Jun 26 '23 10:06 theblazehen

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

github-actions[bot] avatar Jul 27 '23 02:07 github-actions[bot]

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

github-actions[bot] avatar Aug 10 '23 02:08 github-actions[bot]