After spending a few weeks of work with Minecraft:PI, I have created a survival mode patch. It has a few bugs that I am working on fixing, but I am posting this as an early release. I also have some tips for people that are using arm assembly language to patch Minecraft:PI.
The first major bug is caused by my survival mode patch that switches vtable offsets around. You can only start a game once after you run Minecraft pi. You then have to fully close it before you can start the game again. The second major bug prevents mobs from being killed. I think it's caused by the difficulty setting.
The first minor bug is the options not being saved, and randomly changing. This will cause the x-axis on the mouse to be swapped randomly when first starting the game. The second minor bug is the right mouse button sometimes getting stuck.
Edit: PTPatch wasn't working right so I removed the old link.
Please test it to make sure it works, and let me know if there any more bugs that I don't know about.
The first tip is to buy Minecraft:PE. You can then use the PE version which has symbols to compare it with the PI version which doesn't have symbols. The best way to compare it is by looking at the vtables. You can find the vtables which look like "9Minecraft" or "7GameMode" They will always have a number before the name of the class. Above and below the vtables, there are multiple addresses. These are the addresses of the functions for the Class.
My second tip is to learn ARM assembly language. It will come in handy when patching almost any ARM linux/android based games.
To Install the patch files, you need to run these commands with the patch file in the mcpi directory.
The first command you only need for the very first install.
apt-get install bsdiff
bspatch minecraft-pi mcpipatched mcpifull.bsdiff
(or)
bspatch minecraft-pi mcpipatched <patchfile>
Once the patch has been installed make sure to enable ssh for the full screen one.
It is impossible to close it without typing blindly or using ssh.
To run the patched version run these two commands:
Could you add more crafting recipes? That's all I would need. How would you go about doing that?Also, I've been playing on survival mode using your patch for a few hours now, and it is AMAZING. They said it couldn't be done, but it has.
I found a graphical glitch where the item it shows you holding isn't actually the one you are holding. Example: When you hold the pickaxe it shows that you're holding a spawner, only it works like a regular pickaxe. Just thought I'd let you know
You need to be root to install bsdiff.
You can use sudo to run a command as root.
You can type "sudo apt-get install bsdiff" without the double quotes to install bsdiff and bspatch.
Could someone more familiar with this patch explain how to do crafting? I've read the "basic" howtos online, but can't seem to make the connection between what I'm reading and this patched version.
Could someone more familiar with this patch explain how to do crafting? I've read the "basic" howtos online, but can't seem to make the connection between what I'm reading and this patched version.
Thanks
I've been using this patch for a while. You have to have wood planks in your inventory, then press "E". Click craft in the top left corner, and then when the craft menu comes up, you click the screen and move the cursor up. Since this is basically a port of minecraft pe, this is basically using the cursor to simulate swiping your finger. Anyway, scroll down to the crafting bench. Click on the crafting bench, then click the box in the top right corner. Now you should have the crafting bench in your inventory. When you place the bench, and right click on it, a crafting menu will pop up and now you can craft things based on what you have in your inventory. So if you have 5 pieces of coal in the inventory and 5 sticks, you can go the the craft menu entry for "torch" and click on the box in the top right corner 5 times. You would then have 5 torches. The same would also apply to pickaxes and such. You know, like if you have three pieces of cobble or iron in your inventory, and two sticks, just select the correct pickaxe in the craft menu, and click on the box in the top right corner. Though if you make a sword, you still can't kill mobs. Although, the lack of ability to kill mobs, and lack of certain items, is the only difference between the full game and this patched version on Raspberry Pi.
Hope this helped. Sorry if it's too long to read. It's the simplest I could think of to explain it.
HELP! I downloaded and installed everything correctly, but when I try to boot up mc with the patch, it says, could not load SDL window. PLEASE help, I really want to play this patch. I've tried uninstalling and reinstalling everything, still get that error...
It seems that my inventory editor works with this patch. The inventory editor will allow you to obtain any 0.6.1 block in survival. If you wish to get it, follow the raspberry pi commands in this topic
jokes aside-- i get a somewhat interesting (however fully annoying) bug:
no textures load, at all. i can somewhat guess where everything is but the game ends up in pure white. example below:
The first major bug is caused by my survival mode patch that switches vtable offsets around. You can only start a game once after you run Minecraft pi. You then have to fully close it before you can start the game again. The second major bug prevents mobs from being killed. I think it's caused by the difficulty setting.
The first minor bug is the options not being saved, and randomly changing. This will cause the x-axis on the mouse to be swapped randomly when first starting the game. The second minor bug is the right mouse button sometimes getting stuck.
Edit: PTPatch wasn't working right so I removed the old link.
Please test it to make sure it works, and let me know if there any more bugs that I don't know about.
The first tip is to buy Minecraft:PE. You can then use the PE version which has symbols to compare it with the PI version which doesn't have symbols. The best way to compare it is by looking at the vtables. You can find the vtables which look like "9Minecraft" or "7GameMode" They will always have a number before the name of the class. Above and below the vtables, there are multiple addresses. These are the addresses of the functions for the Class.
My second tip is to learn ARM assembly language. It will come in handy when patching almost any ARM linux/android based games.
If you have any suggestions, please let me know.
Thanks for testing this.
Edit: PTPatch wasn't working right so I created a bsdiff patch: https://www.dropbox....survival.bsdiff
Edit: I created another patch that has full screen support for hdmi monitors: https://dl.dropbox.c...mcpifull.bsdiff
To Install the patch files, you need to run these commands with the patch file in the mcpi directory.
The first command you only need for the very first install.
apt-get install bsdiff
bspatch minecraft-pi mcpipatched mcpifull.bsdiff
(or)
bspatch minecraft-pi mcpipatched <patchfile>
Once the patch has been installed make sure to enable ssh for the full screen one.
It is impossible to close it without typing blindly or using ssh.
To run the patched version run these two commands:
chmod +x mcpipatched
./mcpipatched
You can use sudo to run a command as root.
You can type "sudo apt-get install bsdiff" without the double quotes to install bsdiff and bspatch.
Thanks
I've been using this patch for a while. You have to have wood planks in your inventory, then press "E". Click craft in the top left corner, and then when the craft menu comes up, you click the screen and move the cursor up. Since this is basically a port of minecraft pe, this is basically using the cursor to simulate swiping your finger. Anyway, scroll down to the crafting bench. Click on the crafting bench, then click the box in the top right corner. Now you should have the crafting bench in your inventory. When you place the bench, and right click on it, a crafting menu will pop up and now you can craft things based on what you have in your inventory. So if you have 5 pieces of coal in the inventory and 5 sticks, you can go the the craft menu entry for "torch" and click on the box in the top right corner 5 times. You would then have 5 torches. The same would also apply to pickaxes and such. You know, like if you have three pieces of cobble or iron in your inventory, and two sticks, just select the correct pickaxe in the craft menu, and click on the box in the top right corner. Though if you make a sword, you still can't kill mobs. Although, the lack of ability to kill mobs, and lack of certain items, is the only difference between the full game and this patched version on Raspberry Pi.
Hope this helped. Sorry if it's too long to read. It's the simplest I could think of to explain it.
Click on an image to view the section rules!









Click on an image to view the section rules!









So I'm new to programming, and i've been playing this patch for only a day and i get this error:
terminate called after throwing instance of std::bad_alloc
what(): std::bad_alloc
This also happens when i try to run the unpatched version.
Can anyone guide me through what to do here?
jokes aside-- i get a somewhat interesting (however fully annoying) bug:
no textures load, at all. i can somewhat guess where everything is but the game ends up in pure white. example below:
Go buy a USB dongle from staples or something (I recommend Belkin), they're pretty cheap.