-
Notifications
You must be signed in to change notification settings - Fork 26
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
Endless loop when trying to run any command #14
Comments
I'm seeing a similar issue, did you ever get this resolved? |
I am using the "Learn to Program with Minecraft" book, too. I am able to use the API on both Windows 10 and Mac OS X 10.13.1. I am on Python 3.6.1. I used the Minecraft setup tool located at: https://www.nostarch.com/programwithminecraft
|
@marcin-zbijowski, here you use the port Minecraft is listening to |
Haha hi @marcin-zbijowski - it made my evening that I found you here and with the very same problem (we work together, actually sitting 3m from each other) :D So today I had similiar issues you guys mentioned above. In my case the source of all this was actually that I wanted to install the Spigot server on Fedora (not Raspbian nor any other Debian - related distro). And there are no specific packages of Spigot for Fedora so you need to build it manually unfortunately. I described the whole process here: https://maciej.lasyk.info/2018/Feb/04/minecraft-python-and-fedora/ Tl-dr: First problem was already mentioned by @eah123 - I needed to build Spigot with exactly same version as my Minecraft client (the game I run on laptop). If this is not satisfied you will not be able to connect from your game to your server:
The second problem - after installing server you need to also build RaspberryJuice plugin for Bukkit that actually create socket API on TCP port :4711 that will be used by Python API helper. Otherwise Minecraft.create() will not be able to connect to it. So:
And now just copy jar file to Minecraft server plugins directory:
Restart your server and you're all good :) |
Just in case somebody else stumbles here like I did... I had similar issue as described above ("Drained Data... Last Message") because I was connecting to the Minecraft server's main port instead of the RasperryJuice plugin server's port. For me the root cause was because the RasperryJuice plugin didn't start correctly due to running on Java 1.7.x instead of 1.8.x. (I noticed the UnsupportedClassVersionError 52.0 in the logs) The only open port was the server main port at 25565. I initially discounted the RasperryJuice plugin issue, thinking "oh it's just a random plugin failing but the server itself starts up just fine and I can connect to it". Anyway, thanks @aleksey-kutepov for your comment! |
Ok. Now I think I'm ready to add PR "fixing" this. So my ideas is to:
coming soon) |
The author of the book did not mention RasperryJuice. He just provided an outdated Spigot server with plugins. Shame on the author. |
Stop using Spigot / Bukkit / Raspberry Juice. |
@eah123 The book deals with Spigot and Raspberry Juice. If you teach a class, then provide your lectures, please. |
@aleksey-kutepov Is there any progress of developing the "fix"? |
Hi,
I bought a book for my kid "Learn to Program with Minecraft" and I'm following setup guide. I've installed everything and I'm checking if it works. Basically, everything looks installed but as far as I can tell, there is something wrong with the module API. I don't know Python and I'm stuck when I try to run anything more then
Minecraft.create()
.and that's it.
LOG:
Any help with that will be very much appreciated.
The text was updated successfully, but these errors were encountered: