Any time something tries to execute the "su" binary it should trigger the superuser permission dialog AFAIK. Look on line 84, you can see "su" is invoked through the Rhino runCommand function.
The latest QP version puts the command to be executed in a temporary file and then executes that file. This way, the shell command SuperUser sees is always the same, so it doesn't show you the confirmation dialog a zillion times every time you get a new patch.
Is it possible that you told SuperUser to deny it once and now it's just silently ignoring it? That happened to me once...
i mean thats possible im gonna redo my rom anyways and so if i can get it to work i think its the rom im using
i also cant get the local server to work but thats a seperate issue..thanks for your help i hope i can get it to work and help you make this a nice app.
Rollback Post to RevisionRollBack
try to join my mc server 69.14.203.98 - online now
i mean thats possible im gonna redo my rom anyways and so if i can get it to work i think its the rom im using
i also cant get the local server to work but thats a seperate issue..thanks for your help i hope i can get it to work and help you make this a nice app.
still the same issue no permission can you just post the tmp file for me i cant seem to get it
also didnt ask for Su so i couldnt deny it if i did last time. ill try to make my superuser auto accept and see if it works.
Awesome, glad you got it working! I'll check out SuperSU
Here's some info on what the temp files are for in case anyone is wondering:
quickpatch-tmp - stores the bytes that are about to be patched into .so file, or bytes read from the .so. Needs a temp file to get around SL4A not being privileged.
quickpatch-cmd - stores a shell command to be executed for the reason I mentioned earlier (stop SuperUser from going nuts).
quickpatch-mnt - this is a directory, not a file. Used as a mount point for the read-only stuff in /data/data/.
Not sure... the whole patch/gist thing is a little awkward the way it is now, I might try to fix that up a bit.
Also thinking about letting it import PT mods, but I'm not sure if it's a good idea... converted PT mods won't be as flexible as native QP patches (multiple options, user input). If QP imports PT mods, people may not bother doing patches for QP, so those features would end up not getting used. You don't need those features for every patch (or even for most patches), but I'm hoping that those features will lead to more interesting patches like 500ISE's coal trees and win4263's invisible bedrock patch.
Is there anything you'd like to see in particular?
Enter a block ID (10 for lava, for instance), and then explode some TNT or a creeper.mess, I guess.
Nice one!
Apparently I changed byte values to hex at some point, so it's A for lava right now (for a minute I was like this isn't working, but why is there so much coal down here?)
Whether the byte values are hex or decimal should be configurable by the patch, I'll add that.
Now that PocketTool is open source, maybe it could be modified to read QuickPatches. What would that Interface look like, though? A
That would be pretty cool not sure how it would look, could be basically the same, just menus in dialogs. I guess you'd use something like this to read the patches, and then go from there. We'd probably want to nail down some details of the format first just to make sure people are happy with it, even if everything's not implemented everywhere yet.
---
Lava TNT is absolutely vicious. I killed myself with some in the mine, and just now napalmed a zombie on the surface. Pretty awesome.
Want to hang MCPE? Set it to drop more TNT I just tried it near some water, reloaded the game and now the surface of the water is filled in with unexploded TNT...
Snow (4E) makes a pretty cool visual effect, like everything is covered with a layer of ash.
Apparently I changed byte values to hex at some point, so it's A for lava right now (for a minute I was like this isn't working, but why is there so much coal down here?)
That would be pretty cool not sure how it would look, could be basically the same, just menus in dialogs.
I guess you'd use something like this to read the patches
Want to hang MCPE? Set it to drop more TNT
Modifying explosions was not my idea; credit goes to whoever started the original ElementalTNT thread.
Thanks for the heads-up. I'll change the OP.
Maybe a list view of all mods downloaded or stored, so something like:
_________
bananas.mod
_________
moarfog.json
_________
removezombies.mod
_________
Tap on one and it goes to the next Activity:
I think Android ships with a light version of org.json.
A nice addition to the format might be a way to specify the version of Minecraft PE that it targets.
That's what I did during initial testing - I quickly realized that it was a very, very stupid idea. I had to use ddms to kill the app.
Maybe a list view of all mods downloaded or stored, so something like:
_________
bananas.mod
_________
moarfog.json
_________
removezombies.mod
_________
Tap on one and it goes to the next Activity:
I think Android ships with a light version of org.json.
If that doesnt work. A minimalist interpreter could be written to only parse the symbols required for the QuickPatch format, then when the user patches it, a PTPatch could be generated on the fly to patch the changes without having to write extra code to patch the data.
If you have patches for an older version installed, go to "manage patches" and delete everything there, hit back, go to "manage gists" and delete everything there, then add this gist ID - 3657008
Right now only the hotbar slots patch is included; others will appear as they are added.
Snow elemental explosions (4e) plus snow grenades is pretty awesome... I built some pretty big snow caves.
This might make a cool scorched earth multiplayer thing... maybe something like this:
Have two teams with two players on each team. Give each team lots of snow blocks when they join, and some shovels. Each team builds a snow fort out of sight of each other. One player from each team stays in the fort and tries to hit the other fort with snow grenades. The other player spies on the other team's location and tries to help the player in the fort hit his target (they communicate via skype or teamspeak). Spies can't attack each other or use snow grenades, but they can be blown up by the guys in the fort. The round ends when one of the guys in the snow forts is blown up.
What do you guys think? If anyone wants to try it out I can host a few matches
Snow elemental explosions (4e) plus snow grenades is pretty awesome... I built some pretty big snow caves.
This might make a cool scorched earth multiplayer thing... maybe something like this:
Have two teams with two players on each team. Give each team lots of snow blocks when they join, and some shovels. Each team builds a snow fort out of sight of each other. One player from each team stays in the fort and tries to hit the other fort with snow grenades. The other player spies on the other team's location and tries to help the player in the fort hit his target (they communicate via skype or teamspeak). Spies can't attack each other or use snow grenades, but they can be blown up by the guys in the fort. The round ends when one of the guys in the snow forts is blown up.
What do you guys think? If anyone wants to try it out I can host a few matches
My scripts (helloworld.js and yours) both crash with a class not found error about com.android.internal.util.WithFramework
anything that I can do about that? I want to switch from ptpatch
My scripts (helloworld.js and yours) both crash with a class not found error about com.android.internal.util.WithFramework
anything that I can do about that? I want to switch from ptpatch
I think it's an issue with file permissions under CyanogenMod...
i mean thats possible im gonna redo my rom anyways and so if i can get it to work i think its the rom im using
i also cant get the local server to work but thats a seperate issue..thanks for your help i hope i can get it to work and help you make this a nice app.
69.14.203.98 - online now
still the same issue no permission can you just post the tmp file for me i cant seem to get it
also didnt ask for Su so i couldnt deny it if i did last time. ill try to make my superuser auto accept and see if it works.
EDIT:.the auto accept didnt work either..
69.14.203.98 - online now
WOO!!! I GOT IT i went to the play store and got SUPERSU
Thanks for all the help sorry i was so much trouble..
69.14.203.98 - online now
Here's some info on what the temp files are for in case anyone is wondering:
quickpatch-tmp - stores the bytes that are about to be patched into .so file, or bytes read from the .so. Needs a temp file to get around SL4A not being privileged.
quickpatch-cmd - stores a shell command to be executed for the reason I mentioned earlier (stop SuperUser from going nuts).
quickpatch-mnt - this is a directory, not a file. Used as a mount point for the read-only stuff in /data/data/.
Not sure... the whole patch/gist thing is a little awkward the way it is now, I might try to fix that up a bit.
Also thinking about letting it import PT mods, but I'm not sure if it's a good idea... converted PT mods won't be as flexible as native QP patches (multiple options, user input). If QP imports PT mods, people may not bother doing patches for QP, so those features would end up not getting used. You don't need those features for every patch (or even for most patches), but I'm hoping that those features will lead to more interesting patches like 500ISE's coal trees and win4263's invisible bedrock patch.
Is there anything you'd like to see in particular?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumGist ID: 3492061
Only has one patch so far: https://raw.github.com/gist/3492061/elementaltnt.json
Enter a block ID in hex (A for lava, for instance), and then explode some TNT or a creeper.
Edit: this was inspired by http://www.minecraftforum.net/topic/1439659-elemental-tnt-mod-for-pe/ .
Edit:
Now that PocketTool is open source, maybe it could be modified to read QuickPatches. What would that Interface look like, though? A mess, I guess.
Edit 2: Autophil informed me that all byte ids are hex; read below.
Nice one!
Apparently I changed byte values to hex at some point, so it's A for lava right now (for a minute I was like this isn't working, but why is there so much coal down here?)
Whether the byte values are hex or decimal should be configurable by the patch, I'll add that.
That would be pretty cool
---
Lava TNT is absolutely vicious. I killed myself with some in the mine, and just now napalmed a zombie on the surface. Pretty awesome.
Want to hang MCPE? Set it to drop more TNT
Snow (4E) makes a pretty cool visual effect, like everything is covered with a layer of ash.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumModifying explosions was not my idea; credit goes to whoever started the original ElementalTNT thread.
Thanks for the heads-up. I'll change the OP.
_________
bananas.mod
_________
moarfog.json
_________
removezombies.mod
_________
Tap on one and it goes to the next Activity:
__________
Moar Fog mod
by 418 I'm a Teapot
Location: http://raw.github.com/12345/moarfog.json
Status: Unpatched
[patch, of course]
____________
or:
___________
removezombies
Location: /sdcard/stupid stuff/mods/stupid/removezombies.mod
Status: Patched
[unpatch]
___________
A nice addition to the format might be a way to specify the version of Minecraft PE that it targets.
That's what I did during initial testing - I quickly realized that it was a very, very stupid idea. I had to use ddms to kill the app.
I was seconds away from suggesting the same idea!
If that doesnt work. A minimalist interpreter could be written to only parse the symbols required for the QuickPatch format, then when the user patches it, a PTPatch could be generated on the fly to patch the changes without having to write extra code to patch the data.
If you have patches for an older version installed, go to "manage patches" and delete everything there, hit back, go to "manage gists" and delete everything there, then add this gist ID - 3657008
Right now only the hotbar slots patch is included; others will appear as they are added.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumRepo: 3682058
Smooth Lighting.
More will be added; please wait!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumRaw: https://gist.github.com/raw/3682058/snowgrenade.json
Snow Grenades - because Mojang didn't give us lemons.
Also, elemental explosions has been ported.
Same ID.
Raw: https://raw.github.com/gist/3682058/elementalexplosion.json
Try it with Snow Grenades.
This might make a cool scorched earth multiplayer thing... maybe something like this:
Have two teams with two players on each team. Give each team lots of snow blocks when they join, and some shovels. Each team builds a snow fort out of sight of each other. One player from each team stays in the fort and tries to hit the other fort with snow grenades. The other player spies on the other team's location and tries to help the player in the fort hit his target (they communicate via skype or teamspeak). Spies can't attack each other or use snow grenades, but they can be blown up by the guys in the fort. The round ends when one of the guys in the snow forts is blown up.
What do you guys think? If anyone wants to try it out I can host a few matches
-
View User Profile
-
View Posts
-
Send Message
Retired Staff-
View User Profile
-
View Posts
-
Send Message
Curse Premiumanything that I can do about that? I want to switch from ptpatch
I think it's an issue with file permissions under CyanogenMod...
http://www.minecraftforum.net/topic/1298856-quick-patch-public-alpha-with-patches-for-040/page__st__80#entry17254588