You'll need to have "unknown sources" enabled to install it. You probably already do since your phone is rooted.
Step 2 - Install Rhino
Run SL4A and hit Menu -> View -> Interpreters, then Menu -> Add -> Rhino.
SL4A should download the Rhino JavaScript interpreter. You may need to install the APK it downloaded by tapping the notification.
Step 3 - Install Quick Patch
Now we'll install Quick Patch. Hit back, or run SL4A again to get to the "Scripts" screen.
Hit Menu -> Add -> Rhino. Create a file named quickpatch.js, enter the code below, and save:
Note: You may want to change "/mnt/sdcard" to another location, such as "/cache", depending on your setup. See here. Credits to DanXCI for providing and testing the workaround.
Part 2 - Quick Patch setup
Step 1 - Launcher
This step is optional.
Long-press on your desktop, hit Shortcuts, hit Scripts (next to the SL4A icon), and choose quickpatch.js.
Step 2 - Install patches
Run quickpatch.js from your launcher (or from SL4A if you skipped step 1).
Hit "Manage gists." Hit "add gist." Enter this number: 4680960
Read "advantages" in the top post. Basically lets you patch and run MPE immediately instead of reinstalling. Also tries to organize patches in a nice way.
It's good for patches with values that change frequently, like the server IP patch, if you want to try a few different servers without reinstalling MPE and nuking your settings each time.
my suggestions:
if possible change it to one apk, because the sl4a has to much permissions for me....
That's a good point. Quick Patch doesn't really need all those permissions, but SL4A asks for pretty much everything, so that you can write scripts that can do everything. If it makes you feel any better, the entire program is completely transparent, so if you wanted to you could read through the thousand lines or so of script and look for anything suspicious...
At some point, though, I'll probably make an APK. I was hoping people wouldn't mind the tricky install that much, at least while it's in alpha... I figure if you can root your phone, you can probably follow these instructions
That's a good point. Quick Patch doesn't really need all those permissions, but SL4A asks for pretty much everything, so that you can write scripts that can do everything. If it makes you feel any better, the entire program is completely transparent, so if you wanted to you could read through the thousand lines or so of script and look for anything suspicious...
At some point, though, I'll probably make an APK. I was hoping people wouldn't mind the tricky install that much, at least while it's in alpha... I figure if you can root your phone, you can probably follow these instructions
Or they bought their phone rooted
Rollback Post to RevisionRollBack
"It's not what your country can do for you, it's what you can do for this country."
Yeah, the code is a mess, wrote it in a really simple way (just a bunch of global functions and variables) because I'm thinking about porting the whole thing to Java or C++... I'm even considering writing a dialog(1) replacement using the Android APIs and doing the whole thing as a shell script. Decisions, decisions.
Yeah, the code is a mess, wrote it in a really simple way (just a bunch of global functions and variables) because I'm thinking about porting the whole thing to Java or C++... I'm even considering writing a dialog(1) replacement using the Android APIs and doing the whole thing as a shell script. Decisions, decisions.
[sarcasm]Why don't you just write it in Windows Batch files?[/sarcasm]
Seriously, though, dynamic patch options that would allow a byte, a short, or an int would be helpful.
[sarcasm]Why don't you just write it in Windows Batch files?[/sarcasm]
Seriously, though, dynamic patch options that would allow a byte, a short, or an int would be helpful.
Agreed, byte is already in the newest version (not tested or published, onekaf/55) and I'd like to have the rest as well, but I'm waiting for some example patches to come along to use for test cases.
What's up with Mef's fish eye mod, for example, where you get a number multiplied by 4... is that the mantissa part of a float or something? I feel like something has not clicked with me yet with all this patching business, and I'm hoping it does soon (I have had success with this stuff, years ago... successfully cracked a windows program... so I don't know why it's not clicking for me now, if it's just the ARM stuff or what).
Agreed, byte is already in the newest version (not tested or published, onekaf/55) and I'd like to have the rest as well, but I'm waiting for some example patches to come along to use for test cases.
Try http://jsbin.com/umaxid/2 . It's the mystery patch you linked to in the OP, with byte input. Try 46 as the input.
Advantages:
- Patches are applied immediately, no need for re-installing MCPE.
- Patch format is flexible; patches can have interactive elements.
- Patches can be reverted to their original state.
Disadvantages:- Installation is not straightforward.
- Must have a rooted device.
- Must be online to use alpha versions. This will change.
If you want to try it out, the installation and setup instructions follow.Part 1 - Installing Quick Patch
Step 1 - Install SL4A
Step 2 - Install Rhino
Run SL4A and hit Menu -> View -> Interpreters, then Menu -> Add -> Rhino.
SL4A should download the Rhino JavaScript interpreter. You may need to install the APK it downloaded by tapping the notification.
Step 3 - Install Quick Patch
Now we'll install Quick Patch. Hit back, or run SL4A again to get to the "Scripts" screen.
Hit Menu -> Add -> Rhino. Create a file named quickpatch.js, enter the code below, and save:
load("https://raw.github.com/gist/2955835/quickpatch.js"); main("/mnt/sdcard");Note: You may want to change "/mnt/sdcard" to another location, such as "/cache", depending on your setup. See here. Credits to DanXCI for providing and testing the workaround.
Part 2 - Quick Patch setup
Step 1 - Launcher
Step 2 - Install patches
Run quickpatch.js from your launcher (or from SL4A if you skipped step 1).
Hit "Manage gists." Hit "add gist." Enter this number: 4680960
This will install win4263's collection of patches for 0.6.1.
If patches are added to a collection at a later time, you'll automatically be updated with the new patches, but keep an eye out for new gists.
For modders: qpdiff
Old Patches
Patches for older versions of Minecraft PE.
gist IDs 4086171, 4103127, 4142713 maintained by win4263
Patches for 0.4.0 maintained by 500 Internal Server Error: gist ids 3682058 and 3797503
Patches for 0.4.0 maintained by win4263: gist id 3657008
0.3.3
gist - 3366326
gist - 3366365
0.3.2
Server IP converted for 0.3.2 by ChrisMCMine -
Patches by 500ISE -
AntiFog:
InstaDestroy:
FlyInSurvival:
SmoothLighting:
DisableTNT:
0.3.0
Hotbar Slots by 500ISE - http://jsbin.com/iqurom/22
Server IP by 500ISE - http://jsbin.com/ucivub/5
Antifog by 500ISE - http://jsbin.com/ulenav/3
Fish Eye by Mef - http://jsbin.com/ujisay/2
A mystery patch by 500ISE - http://jsbin.com/umaxid
TNT, Water, Lava by win4263 - http://jsbin.com/egitim/2
InstaDestroy by 500ISE - http://jsbin.com/usaqux/2/
Day Length by 500ISE - http://jsbin.com/iwixiz/2
Read "advantages" in the top post. Basically lets you patch and run MPE immediately instead of reinstalling. Also tries to organize patches in a nice way.
It's good for patches with values that change frequently, like the server IP patch, if you want to try a few different servers without reinstalling MPE and nuking your settings each time.
Yeah, feel free to make suggestions on how to improve it (other than installation, I know that's a pain and sort of have plans to fix it).
That's a good point. Quick Patch doesn't really need all those permissions, but SL4A asks for pretty much everything, so that you can write scripts that can do everything. If it makes you feel any better, the entire program is completely transparent, so if you wanted to you could read through the thousand lines or so of script and look for anything suspicious...
At some point, though, I'll probably make an APK. I was hoping people wouldn't mind the tricky install that much, at least while it's in alpha... I figure if you can root your phone, you can probably follow these instructions
Or they bought their phone rooted
Add patch -> http://jsbin.com/egitim/2
Were you looking for more information about the file format this tool uses, or just general help with assembly?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt seems that the version of Quick Patch linked to above doesn't support interactive patches yet, so that patch probably won't load.
It should work... the function is `getCustomSz` in this version, called from `writeOption`
http://jsbin.com/onekaf/48/edit
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOh, didn't notice that. Thanks!
-
View User Profile
-
View Posts
-
Send Message
Curse Premium[sarcasm]Why don't you just write it in Windows Batch files?[/sarcasm]
Seriously, though, dynamic patch options that would allow a byte, a short, or an int would be helpful.
Agreed, byte is already in the newest version (not tested or published, onekaf/55) and I'd like to have the rest as well, but I'm waiting for some example patches to come along to use for test cases.
What's up with Mef's fish eye mod, for example, where you get a number multiplied by 4... is that the mantissa part of a float or something? I feel like something has not clicked with me yet with all this patching business, and I'm hoping it does soon (I have had success with this stuff, years ago... successfully cracked a windows program... so I don't know why it's not clicking for me now, if it's just the ARM stuff or what).
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTry http://jsbin.com/umaxid/2 . It's the mystery patch you linked to in the OP, with byte input. Try 46 as the input.
It won't work like that yet. It should work like this: http://jsbin.com/umaxid/4
...but it doesn't. Playing with it now.
Edit: crap, I can't name it `byte` because it's reserved by Rhino I think
Edit 2: 46 decimal or hex?
Edit 3: something's not working still, crashes during level generation... probably something on this end