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

Don't get how to create a bot #35

Open
NiemandmagBananen opened this issue Sep 4, 2024 · 18 comments
Open

Don't get how to create a bot #35

NiemandmagBananen opened this issue Sep 4, 2024 · 18 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@NiemandmagBananen
Copy link

I don't get how to create a bot. I run the script and open the website. Then I click on create a bot, enter my MC username and then enter a server (I used mc.hypixel.net ; I just wanted to test because it was late). I choose my port displayed in the shell and I try to choose the version, but it says “No versions available”.
image
I clicked the “create bot” button, but obviously it wouldn't work. Do I need to enter my Nvidia API first? Btw, it wouldn't let me either. It just says failed.
image

Btw, the admin portal thing, documentation, and settings buttons don't work for me and you misspelled give. image
Also, great UI!

Will try a PC restart. Btw I am on W11, 4080 Super and R5 5600G.

@NiemandmagBananen
Copy link
Author

Still doesn't work after a restart.

@SilkePilon
Copy link
Owner

hi @NiemandmagBananen the issue here (i think) is that you run the backend on a different pc than the frontend

the frontend try's to connect to localhost:3000 (im going to change this in the next update to allow setting the ip and port for the backend)

@SilkePilon
Copy link
Owner

{5C51CB31-DCD4-4901-8114-80D709D68A24}

this is how it will look like in the upcoming update

@SilkePilon SilkePilon added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Sep 5, 2024
@SilkePilon SilkePilon self-assigned this Sep 5, 2024
@NiemandmagBananen
Copy link
Author

NiemandmagBananen commented Sep 5, 2024

I reinstalled today after your changes. I originally ran it on the same PC.
After the changes, the UI changed in the front- and backend. (How it should have).
Now I am running into the problem, that I can't press the “Create bot” button:
image
It's greyed out. (In the picture, I used the local host option from the instructions you provided in PowerShell).
I also tried to do it from another PC in my home network (I opened the port in the firewall previously) and it also wouldn't let me.

Pls let me know if I'm doing something wrong.

@SilkePilon
Copy link
Owner

SilkePilon commented Sep 5, 2024

You did nothing wrong! Actually i did i switched to using self singed certs for https but they don't work on different pc's. I'm making it so the backend makes the keys itself.

for now can you please install openssl on your system (I'm going to make some docs for it on how to install)

I'm going to commit a new update in a few minutes that will probably work fine

@SilkePilon
Copy link
Owner

SilkePilon commented Sep 5, 2024

{8A9EE10C-1EAE-4093-9E56-03B9895529C7}
i just updated the code to also add an refresh button to check the ip again. and some instructions if there is an error.

please let me know if this fixed your issues.

@NiemandmagBananen
Copy link
Author

No, I'm sorry, the button keeps showing red
image
and the link just says: “Cannot GET /“.
image
I made sure to disable all Ad Blockers and Privacy Badger, but the Link still wouldn't work.
(I also clicked the new refresh button a few times, just to check)
I had openssl installed in the process described in this comment, btw.

@NiemandmagBananen
Copy link
Author

image
Got this under the Backend UI, btw, I think as I opened the link described in the troubleshooting section of creating a bot.

@SilkePilon
Copy link
Owner

The 404 errors are fine. can you open up devtools (f12) on the main site and go to the network tab then input the api ip and then check if some request are red. if able send a screen shot the request should say what the error is.

@SilkePilon
Copy link
Owner

for installing i can also recommend curl its a bit better as PowerShell kind of bugs out sometimes. On most pc's curl is installed in CMD

@NiemandmagBananen
Copy link
Author

Idk if this helps, but it says that some things are deprecated here:
image

@NiemandmagBananen
Copy link
Author

I reinstalled with curl and retried and made a screenshot of it:
image
image
image

@SilkePilon
Copy link
Owner

SilkePilon commented Sep 6, 2024

can you try and use the "same network" ip given in the terminal. something in your browser is blocking the site.

or maybe its an adblock thing?

@NiemandmagBananen
Copy link
Author

NiemandmagBananen commented Sep 6, 2024

Let me try using Chrome, I was using Brave, maybe Brave was too strict, although I had previously disabled the ad blocker.

@NiemandmagBananen
Copy link
Author

It was in fact the Browser and/or AdBlock that was blocking the access. With Chrome, it worked. I could generate a Node with my Nvidia Playground API and the Bot could join my server and navigate around a little. I couldn't figure out how to use the Nodes, because most of them required an item name, but I wasn't sure how the item had to be named (minecraft:clay/Clay/clay/the item ID…). The errors in the console were going wild about a “block null” that couldn't be found:
image
The Delivery bot menu was a little confusing, why are there three bots? Why can't there be just one bot, that can do everything? And I couldn't choose Items. I clicked the deliver Items just to test and the bot just went to a spawner underground and stood on a chest.
image
Is there some way, of stopping a delivery or node "flow"?
Btw, this is what the bot in the picture above sees rn:
image

@NiemandmagBananen
Copy link
Author

But you did an excellent job, I can imagine very well, where this project could go in the future! Automated item delivery seems cool. You could add waypoints.

@SilkePilon
Copy link
Owner

SilkePilon commented Sep 7, 2024

Thx, yeah so the delivery system is broken atm because the frontend and backend don't work together as good as i wanted them to. some things don't work in the frontend and are a WIP.

At the moment there is no way of stopping a node from running but i can certainly add it. If you would be able to make a "bug" report on this GitHub repo with some more info on how you would like it to work and look. this way i can easily see what i need to add next.

@SilkePilon
Copy link
Owner

also for the live view there is a known bug in the viewer that any blocks below 0 don't render to save performance. As I'm not the owner of that specific project i cant really fix it atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants