MineDojo / Voyager

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

Items not being added to inventory #40

Closed JesseRWeigel closed 1 year ago

JesseRWeigel commented 1 year ago

It seems like the bot is not recognizing items in it's inventory. I see it mining but the console output does not register the new items.

Is this a known issue? Would could be causing it? I am trying to go through the code to see what the issue might be but I haven't found anything so far.

JesseRWeigel commented 1 year ago

I noticed the note about this in the new F.A.Q. section. I increased the env_wait_ticks to 40. This caused a noticeable delay between actions but does not solve the inventory issue. Has anyone had any luck with this? If so, what did you set env_wait_ticks to?

xieleo5 commented 1 year ago

Hi, could you elaborate more about what the bot is mining? The asynchrony of inventory happens mostly due to the command we use to recycle the crafting table and furnace. Normal mining should not cause this problem. Other reasons may cause this problem, such as certain blocks not yielding any items or the bot encountering difficulties in picking up items.

In Voyager's experiments, we configured env_wait_ticks=20. This setting may also be influenced by the speed of your PC. Our experiments primarily use a gaming Windows 11 PC. You can choose an appropriate value depending on your situation.

JesseRWeigel commented 1 year ago

It seems to happen with any material being mined. I have observed the bot mining cobblestone specifically and have not seen any change in the reported inventory.

theblazehen commented 1 year ago

I'm observing the same issue, with wood

theblazehen commented 1 year ago

Following https://github.com/MineDojo/Voyager/issues/25#issuecomment-1567237266, make sure the game mode is set to survival, difficulty to peaceful. This is contrary to what the documentation states if I'm reading it correctly

Benjamin-eecs commented 1 year ago

Following #25 (comment), make sure the game mode is set to survival, difficulty to peaceful. This is contrary to what the documentation states if I'm reading it correctly

I have tested it, it is true, if the game mode is set to creative, then the inventory will always be empty. The game mode must be set to survival.

cc @xieleo5

JesseRWeigel commented 1 year ago

Should the documentation be updated for this? If so I can create a PR for it.

github-actions[bot] commented 1 year ago

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

github-actions[bot] commented 1 year ago

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