edbeeching / godot_rl_agents

An Open Source package that allows video game creators, AI researchers and hobbyists the opportunity to learn complex behaviors for their Non Player Characters or agents
MIT License
942 stars 69 forks source link

Invalid get index '0' (on base: 'Array[Node]'). #100

Closed kasmith11 closed 1 year ago

kasmith11 commented 1 year ago

I am following the tutorial here and am running into an error (image below). This is happening after using gdrl within a conda environment on windows (second image). Please let me know if there is any further information I can provide.

image

image

edbeeching commented 1 year ago

It is possible that you need to add the AIController3D to a group called "AGENT". If you need more details on how to do this I can provide them. I will add this information to the tutorial as soon as I can.

kasmith11 commented 1 year ago

@edbeeching , since I'm newer to Godot and godot-rl could you provide more detail? Also, would it be helpful for me to add this information to the tutorial via a pull request once we figure out the solution?

edbeeching commented 1 year ago

@kasmith11 , sure. Click on the AIController3D, then on the top right you can add it to the agent group like this: image

I think a newer version of the plugin should do this automatically, I just need to push an update.

Let me know if that works.

kasmith11 commented 1 year ago

@edbeeching Adding the agent group fixed the error I was running into! Thank you.

My thinking now is that I can add your directions to this file here including what you mentioned above as a small note under this section:

image