ottomated / turtle-gambit

[OLD] code to connect to minecraft turtles
234 stars 64 forks source link

UI not laoding #11

Closed Script20 closed 3 years ago

Script20 commented 3 years ago

I have everything working and loaded but the Turtle control panel doesn't have any UI, it's just a grey screen.

ghost commented 3 years ago

I am also having this issue Image

Myoozik commented 3 years ago

This occurs when there are no turtles connected to the server via websocket. See issue #7, I used ngrok like Ottomated did to proxy/forward the connection from the turtle to the server.

Script20 commented 3 years ago

I did the same, I saw through the Ngrok that I had a connection.

Myoozik commented 3 years ago

Are you using the proper port number when launching ngrok?

Script20 commented 3 years ago

yes 3000

Myoozik commented 3 years ago

Port 3000 is the one used for the frontend to communicate with the backend or something like that, the port that is used to communicate with the turtle in game is port 5757 by default when using this repo because that's what Ottomated used. Try that.

Script20 commented 3 years ago

ngrok is using 5757? and the turtle control panel is still launching on localhost 3000

Myoozik commented 3 years ago

The turtle control panel will launch using port 3000 because the front-end is using that to communicate with the back-end. Launch ngrok using ngrok http 5757 and copy and paste the new URL into the turtle.lua file on the turtle.

Script20 commented 3 years ago

Yeah I got it working thank you so much brother!

Myoozik commented 3 years ago

All good, glad to hear that it works! Also since this is issue is done you should close it.

damemer456 commented 3 years ago

what is turtle.lua?

Myoozik commented 3 years ago

what is turtle.lua?

It is the file that is run on the turtle inorder for it to connect to the control panel

watermelonpro commented 2 years ago

Where is turtle.lua