Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kasmith11 opened this issue Apr 9, 2023 · 4 comments
Closed

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

kasmith11 opened this issue Apr 9, 2023 · 4 comments

Comments

@kasmith11
Copy link
Contributor

kasmith11 commented Apr 9, 2023

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
Copy link
Owner

edbeeching commented Apr 10, 2023

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
Copy link
Contributor Author

kasmith11 commented Apr 10, 2023

@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
Copy link
Owner

@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
Copy link
Contributor Author

@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

edbeeching added a commit that referenced this issue Apr 19, 2023
Added note to CUSTOM_ENV.md that addresses issue #100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants