Page 1 of 2

Minecraft Pi edition

Posted: Sat Dec 29, 2012 4:22 pm
by dmtben
Does anyone have any ideas whether the pi edition of minecraft has been released and if so, where can i download it? Also, if it has not been released, does anyone know when it will be?

Re: Minecraft Pi edition

Posted: Sat Dec 29, 2012 5:03 pm
by Jim JKla
Client or Server?

Re: Minecraft Pi edition

Posted: Sat Dec 29, 2012 5:26 pm
by three14
Minecraft Pi Edition (0.1.0) was released a while ago but the download was pulled because it's riddled with bugs. Bookmark this page: http://pi.minecraft.net/

Shouldn't be too difficult to find the leak, just Google 'minecraft pi 0.1.0' or something to that effect. The download will be no more than 1.5MB.

Re: Minecraft Pi edition

Posted: Sat Dec 29, 2012 5:32 pm
by 6677
It has not been released yet but there was a leak recently. The leak is buggy though. It was hosted on a dropbox account and it appears the link has been pulled. I still have it on my desktop PC's hard drive, havent tried it out yet.

I'm pretty sure when its released it will have a mention on the news page.

Re: Minecraft Pi edition

Posted: Sun Dec 30, 2012 4:35 pm
by Kbho
It would be cool if this did come out, there would be lots of possibilities, but then you'd get people that made some code to build a giant mansion and crash their Pi.

Re: Minecraft Pi edition

Posted: Sun Dec 30, 2012 4:36 pm
by Kbho
Do you still have the files for this? If so have you got a link to the download?

Re: Minecraft Pi edition

Posted: Sun Dec 30, 2012 4:40 pm
by ShiftPlusOne
Given that the files are leaked and are not supposed to be out, this is probably not the best place to share them.

Re: Minecraft Pi edition

Posted: Sun Dec 30, 2012 5:24 pm
by three14
Daniel Frisk from Mojang already said that he didn't care if people used the leaked alpha:
I don't mind if people use the leaked build, but be aware that it's pre-alpha quality.
https://twitter.com/danfrisk/status/283682787033247744

You can find the leaked alpha here:
http://www.minecraftforum.net/topic/158 ... se-leaked/

Re: Minecraft Pi edition

Posted: Sun Dec 30, 2012 5:28 pm
by ShiftPlusOne
Ah great, thanks.

Re: Minecraft Pi edition

Posted: Mon Dec 31, 2012 2:21 pm
by Kbho
Thanks, But do you know how to do that code thing to make it build houses and stuff? :mrgreen:

Re: Minecraft Pi edition

Posted: Mon Dec 31, 2012 2:25 pm
by Kbho
Also, by the way, How am i supposed to run this?

Re: Minecraft Pi edition

Posted: Mon Dec 31, 2012 5:46 pm
by 6677
there is a file which says how to run. They include them things for a reason ;)

Re: Minecraft Pi edition

Posted: Tue Jan 01, 2013 11:35 am
by Kbho
The Only reason i posted that is because i got a permission denied error when i tried to run the file, with the instructions included with the file.

Re: Minecraft Pi edition

Posted: Tue Jan 01, 2013 12:10 pm
by 6677
did you try running the files from USB? you will hit permissions issues if so.

Re: Minecraft Pi edition

Posted: Tue Jan 01, 2013 12:15 pm
by Kbho
6677 wrote:did you try running the files from USB? you will hit permissions issues if so.
I haven't tried that, but i haven't got a USB hub, and is there a way to bypass the permissions?

Re: Minecraft Pi edition

Posted: Tue Jan 01, 2013 12:17 pm
by malakai
are you running it as pi or did you create a new user account

Re: Minecraft Pi edition

Posted: Tue Jan 01, 2013 12:19 pm
by Kbho
malakai wrote:are you running it as pi or did you create a new user account
running it as pi, as i don't know how to make a new user.

Re: Minecraft Pi edition

Posted: Tue Jan 01, 2013 5:21 pm
by Diln21
Kbho wrote:The Only reason i posted that is because i got a permission denied error when i tried to run the file, with the instructions included with the file.
I ran into the same issue. I used this tutorial to learn to change permissions:
http://catcode.com/teachmod/index.html

I opened LXTerminal and navigated to the mcpi folder and ran this command:
chmod u=rwx ./minecraft-pi

u (owner of file) = rwx (new pemissions, read write and execute) ./minecraft-pi (file to be changed)

Good luck I hope it works for you to

Re: Minecraft Pi edition

Posted: Wed Jan 02, 2013 2:52 pm
by Kbho
Diln21 wrote:
Kbho wrote:The Only reason i posted that is because i got a permission denied error when i tried to run the file, with the instructions included with the file.
I ran into the same issue. I used this tutorial to learn to change permissions:
http://catcode.com/teachmod/index.html

I opened LXTerminal and navigated to the mcpi folder and ran this command:
chmod u=rwx ./minecraft-pi

u (owner of file) = rwx (new pemissions, read write and execute) ./minecraft-pi (file to be changed)

Good luck I hope it works for you to
Thanks, Is this supposed to be a permenant fix, or will i have to keep doing this?

Re: Minecraft Pi edition

Posted: Wed Jan 02, 2013 3:46 pm
by poglad
It depends how you unzipped it all, you perhaps ended up without the correct permissions on the file. Once you've added them you should be fine. When I put it onto my Pi, the execute permission was already there so all I had to do was run it with:

Code: Select all

sudo ./minecraft-pi
Having said that, it has a lot of visual glitches - mainly related to the odd integration with X. It frequently gets out of sync with itself, and the Minecraft overlay starts following the wrong window or no window at all. It's pre-alpha leaked code, so fair enough. Also, on my system, it always seems to freeze after about 10 minutes. Not the whole Pi, just the X session. I can ssh in and kill it.

As for the demos where they write code in an immediate Python session to manipulate the world, it says here http://www.minecraftforum.net/topic/158 ... emo-video/ that you simply connect a socket to port 4711 and (on page 2) that you send commands of the form "set-block(x,y,z,type)\n" through the socket.

Therefore, the code below should work, but I can tell you that it doesn't seem to work for me. Without Minecraft running, it refuses to connect - good - and with Minecraft running, it successfully connects. However, invoking the setBlock method appears to have no effect at all. Either the blocks are going somewhere that I can't see, or the command on this leaked version is not "set-block". The trouble is, we simply don't have proper API documentation yet. I did a strings on the executable and looked for variations of set-block in the output, but didn't see anything obvious.

You need to open a separate Python window (in fact, I opened it on my laptop on the same wireless LAN) and do something like this:

Code: Select all

from mcrpi import McRpi

mc = McRpi()
mc.connect()
mc.setBlock(0, 0, 0, 1)
Anyway, it might give you something to investigate with, so I'll give you the code I wrote.

Code: Select all

import socket
import sys

class McRpi:
    def connect(self):
        try:
            self.mcsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        except socket.error:
            print "Socket creation failed."
            sys.exit()

        host = 'localhost'
        port = 4711

        try:
            remote_ip = socket.gethostbyname(host)
        except socket.gaierror:
            print "Hostname resolution failed."
            sys.exit()

        self.mcsock.connect((remote_ip , port))
        print "Connected to Minecraft server at " + remote_ip + ":" + port

    def setBlock(self, x, y, z, type):
        message = "set-block(" + x + "," + y + "," + z + ")\n"
        try:
            self.mcsock.sendall(message)
        except socket.error:
            print 'Failed to send setBlock message.'
            sys.exit()

# end of source program

Re: Minecraft Pi edition

Posted: Wed Jan 02, 2013 4:51 pm
by scootn405
I received some errors when I tried to run minecratft-pi. The first thing is that I had to put:
./minecraft-pi

Kind of new to linux command line and didn't realize I needed the ./ before the file name.

I also had an error and found that it was related to memory because I set the Video memory real low for MAME emulator. Set the memory back to at least 64 video memory and this corrected the problem.

Re: Minecraft Pi edition

Posted: Wed Jan 02, 2013 4:57 pm
by Kbho
The ChMod command worked for me, but i can't seem to get the console to open
1) is it because i need the pi connected to the network?
2) and will the console open as a new window (How does it open?)

Re: Minecraft Pi edition

Posted: Thu Jan 03, 2013 8:11 pm
by LetHopeItsSnowing
I managed to get it downloaded and installed with very little pain, I put some instructions on my blog, they might be of help

http://www.stuffaboutcode.com/2013/01/r ... eaked.html

LHIS

Re: Minecraft Pi edition

Posted: Sun Jan 13, 2013 9:00 pm
by LetHopeItsSnowing
I've been playing around with the Minecraft API, its surprisingly easy and mojang include some pretty good class libraries with the install to simplify it and get started.

Ive created a video and stuck it on youtube http://youtu.be/icrbqilD4Ng


Ive also put some instructions and code on my blog http://www.stuffaboutcode.com/2013/01/r ... asics.html

Let me know how you get on.

Martin

Re: Minecraft Pi edition

Posted: Tue Jan 15, 2013 9:11 am
by Mindrover
Just finished writing a C# version of the API so I can work with mono and get some reasonable speed for the builds "Public Class makeVillage()" anyone LOL