Will it be possible for you to make a ModPE IDE? That would be reallt cool. And you guys seem really good with java. Why not create a new Modding API rather than using the ModPE API?
It does You just need a method of activation... There have been a lot if scripts that use them. Have you not seen them?
If you think so, see what happens here:
function useItem(x,y,z,i,b,s){
if(b==49){
var yaw=getYaw();
var pitch=getPitch();
var player=getPlayerent();
var MCPEV="okay you say getmcpe doesnt work i wont test it";
var levelv="so does getlevel";
clientMessage(yaw+","+pitch+","+player+","+MCPEV+","+levelv);
}
}
When called: (yeah I type them myself)
Quote from And the error message »
Error occurred in script: getRot.js
org.mozilla.javascript.EcmaError: TypeError: Cannot find default value for object.
(getRot.js#7)
at
org...etcyouknowwhat...Runtime.constructError(Unknown Source)
at
org...unowot...constructError(Unknown Source)
at
org...etc...typeError1(Unknown Source)
{ at
etc.ScriptableObject.getDefaultValue(Unknwn Src the same)}*2
at
etc.ScriptRuntime.add(Unk Src)
at
etc.Interpreter.doAdd(Unk Src)
at
etc.Interpreter.interpretLoop(U S)
at script.useItem(gotRot.js:7)
at
etc.Interpreter.interpret(U S)
at
etc.InterpretedFunction.call(U S)
at
etc.ContextFactory.doTopCall(U S)
at
etc.ScriptRuntime.doTopCall(U S)
at
etc.InterpretedFunction.call(U S)
at
net.zhuowei.etcyouknowwhat.ScriptManager.callScriptMethod(ScriptManager.java:115)
at
net.zh...etc...ScriptManager.useItemOnCallback(ScriptManager.java:125)
at dalvik.system.NativeStart.run(Native Method)
Don't read this unless you don't want to read this:
BTW My hands are aching typing all these in.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
In the Level.playSound function will you be able to change mob sounds? And will you be able to make if you break a stone block it says "Congrats" And can it be recorded with Voice Recorder but what should it be saved as .?
Will it be possible for you to make a ModPE IDE? That would be reallt cool. And you guys seem really good with java. Why not create a new Modding API rather than using the ModPE API?
Seems that all of us have forgotten the fact that there is this (aged?) thing in BlockLauncher called
ADDONS.
However so far there is only one developer I know who had made some, and he is called
500 Internal Server Error.
My purporse in saying this is to remind that few people know how to make addons. (Yes I visited your github MCPELauncher-addons repo I know the answer is to use Android NDK and libminecraftpe.so) I don't know assembly language so I can't test, but I am thinking about an addon that uses assets images and sounds.
HOWEVER I believe the number of people capable to learn and write and publish ADDONS successfully is <10% that of ModPE Script.
If you kindly remember what Treebl wrote in the topic in ModPE v1.0 alpha release, it said ModPE is for those "with littleno coding experience". Obviously addons aren't so.
If people yell at me for proposing rubbish ideas I would delete this post, but as I mentioned before, ModPE is in a trend to becoming something like APK or EXE (self-extraction), or like texture packs (modding packs?). Obviously anybody with the most basic knowledge about javascript would know that inserting multimedia into a javascript is impossible (yes if you make a javascript-based PNG reader but no one is stupid (not really, I would if I only know JS) enough to do so). If one is to use multimedia (like terrain.png, sound tracks, etc.) for ModPE Scripts, a self-extraction is most ideal for such an action to avoid invalid URLs. In fact what I want to say is that TEXTURE PACKS, ADDONS and MODPE can be combined to make a self-extraction mod. In my mind, texture pack patching is a kind of modding, only that Mojang officially approves it. It can contain multiple texture packs, addons and ModPE Script and whatever. The mod contains an onRun script to control setTexturePack(dirname), un/patchAddon/ModPE(pathname), and switchToMap(name). This isn't very difficult, just changing a bit on your settings class. This is neither an idea requesting too much I think. I bet if you do this thing it won't even be more than the work you did to update for MCPE alpha 0.7.0. I really don't think this is a spamming comment. If this is done, it is really a great change to the whole MCPE modding. The pratical use for the above is most significant when one makes a challenge map. He (or she) no longer has to ask the user to install this map, install that texture pack, download this introduction textfile, import that ModPE Script, blah blah. What the user does is just to import the integrated mod. This thing can even be done solely by a third-party program (not BlockLauncher nor MCPE, but like PocketInvEditor). (I found that I sound like advertising a function more than proposing one) It sounds like a lot to do, but it is just part of what I am doing to the app I'm developing. Of course if a map maker has the time to do he would just make an APK and tell the user "you launch it and hurray now choose the first map by BlockLauncher and play everything is installed" but doing such thing in BlockLauncher would make things a lot better, because this is what PocketTool and BlockLauncher are originally designed for. (Or else the mod/texture pack/map makers could tell the downloader to extract the apk and delete assets and libminecraftpe.so and put my mods and texture files in)
Oh I think I am saying things as if it is already out.
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
blocklauncher seems to crash instantly on the Note 3, I suspected it was at first samsung's pesky Knox, but after disabling and then deleting all 6 knox related apps, i still get a crash on start right after the screen rotates. The mprotect message looks like the key, but it can't load gui elements, are those pulled from the original minecraft? Anyway, at this point i really dont know if i should be continuing to try and expose knox elements, or if its just not working on the note 3 for one reason or another (4.3 incompatible or something like that) Any help would be most appreciated.
Here's the logcat:
E/SELinux ( 1828): selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts
I/System.out( 1828): MCPELauncher: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:eu.chainfire.mobileodin.pro flg=0x8000010 cmp=net.zhuoweizhang.mcpelauncher.pro/net.zhuoweizhang.mcpelauncher.AddonInstallReceiver (has extras) }
I/System.out( 1828): Is lib loaded? false
I/System.out( 1828): oncreate
I/System.out( 1828): libminecraftpe.so is at /mnt/asec/com.mojang.minecraftpe-1/lib/libminecraftpe.so
W/System.err( 1828): java.io.FileNotFoundException: gui/gui_blocks.png
W/System.err( 1828): at android.content.res.AssetManager.openAsset(Native Method)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:316)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:290)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.doesRequireGuiBlocksPatch(MainActivity.java:1178)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.onCreate(MainActivity.java:225)
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.pro.LauncherProActivity.onCreate(LauncherProActivity.java:34)
W/System.err( 1828): at android.app.Activity.performCreate(Activity.java:5369)
W/System.err( 1828): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
W/System.err( 1828): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
W/System.err( 1828): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2348)
W/System.err( 1828): at android.app.ActivityThread.access$700(ActivityThread.java:159)
W/System.err( 1828): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
W/System.err( 1828): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1828): at android.os.Looper.loop(Looper.java:137)
W/System.err( 1828): at android.app.ActivityThread.main(ActivityThread.java:5414)
W/System.err( 1828): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1828): at java.lang.reflect.Method.invoke(Method.java:525)
W/System.err( 1828): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
W/System.err( 1828): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err( 1828): at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm( 1828): Trying to load lib /data/data/net.zhuoweizhang.mcpelauncher.pro/app_patched/libminecraftpe.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /data/data/net.zhuoweizhang.mcpelauncher.pro/app_patched/libminecraftpe.so 0x428ec408
D/SThemeManager( 1828): Load theme icons for theme
I/System.out( 1828): width
I/System.out( 1828): height
D/dalvikvm( 1828): Trying to load lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libgnustl_shared.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libgnustl_shared.so 0x428ec408
D/dalvikvm( 1828): No JNI_OnLoad found in /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libgnustl_shared.so 0x428ec408, skipping init
D/dalvikvm( 1828): Trying to load lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher_tinysubstrate.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher_tinysubstrate.so 0x428ec408
D/dalvikvm( 1828): No JNI_OnLoad found in /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher_tinysubstrate.so 0x428ec408, skipping init
D/dalvikvm( 1828): Trying to load lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher.so 0x428ec408
I/System.out( 1828): 1000
I/System.out( 1828): Found minecraft location
I/System.out( 1828): Calling mprotect with 1955966976 and 9383936
I/System.out( 1828): mprotect result is -1
I/System.out( 1828): Well, that sucks!
W/System.err( 1828): java.io.FileNotFoundException: gui/gui_blocks.png
W/System.err( 1828): at android.content.res.AssetManager.openAsset(Native Method)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:316)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:290)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.doesRequireGuiBlocksPatch(MainActivity.java:1178)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.applyBuiltinPatches(MainActivity.java:1236)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.onCreate(MainActivity.java:263)
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.pro.LauncherProActivity.onCreate(LauncherProActivity.java:34)
W/System.err( 1828): at android.app.Activity.performCreate(Activity.java:5369)
W/System.err( 1828): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
W/System.err( 1828): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
W/System.err( 1828): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2348)
W/System.err( 1828): at android.app.ActivityThread.access$700(ActivityThread.java:159)
W/System.err( 1828): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
W/System.err( 1828): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1828): at android.os.Looper.loop(Looper.java:137)
W/System.err( 1828): at android.app.ActivityThread.main(ActivityThread.java:5414)
W/System.err( 1828): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1828): at java.lang.reflect.Method.invoke(Method.java:525)
W/System.err( 1828): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
W/System.err( 1828): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err( 1828): at dalvik.system.NativeStart.main(Native Method)
I/System.out( 1828): Patching guiblocks: true
W/System.err( 1828): java.lang.NullPointerException
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.patch.PatchUtils.patch(PatchUtils.java:17)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.applyBuiltinPatches(MainActivity.java:1242)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.onCreate(MainActivity.java:263)
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.pro.LauncherProActivity.onCreate(LauncherProActivity.java:34)
W/System.err( 1828): at android.app.Activity.performCreate(Activity.java:5369)
W/System.err( 1828): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
W/System.err( 1828): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
W/System.err( 1828): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2348)
W/System.err( 1828): at android.app.ActivityThread.access$700(ActivityThread.java:159)
W/System.err( 1828): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
W/System.err( 1828): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1828): at android.os.Looper.loop(Looper.java:137)
W/System.err( 1828): at android.app.ActivityThread.main(ActivityThread.java:5414)
W/System.err( 1828): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1828): at java.lang.reflect.Method.invoke(Method.java:525)
W/System.err( 1828): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
W/System.err( 1828): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err( 1828): at dalvik.system.NativeStart.main(Native Method)
F/libc ( 1828): Fatal signal 11 (SIGSEGV) at 0x74ba73dc (code=2), thread 1828 (cpelauncher.pro)
I/DEBUG ( 295): pid: 1828, tid: 1828, name: cpelauncher.pro >>> net.zhuoweizhang.mcpelauncher.pro <<<
I/DEBUG ( 295): [email protected] -k -t -z -d -o /data/log/dumpstate_app_native -m 1828
D/CrashAnrDetector( 662): pid: 1828, tid: 1828, name: cpelauncher.pro >>> net.zhuoweizhang.mcpelauncher.pro <<<
I/ActivityManager( 662): Process net.zhuoweizhang.mcpelauncher.pro (pid 1828) (adj 9) has died.
D/Zygote ( 306): Process 1828 terminated by signal (11)
blocklauncher seems to crash instantly on the Note 3, I suspected it was at first samsung's pesky Knox, but after disabling and then deleting all 6 knox related apps, i still get a crash on start right after the screen rotates. The mprotect message looks like the key, but it can't load gui elements, are those pulled from the original minecraft? Anyway, at this point i really dont know if i should be continuing to try and expose knox elements, or if its just not working on the note 3 for one reason or another (4.3 incompatible or something like that) Any help would be most appreciated.
Here's the logcat:
Edit: you are right about the mprotect. In the meantime, you can still use texture packs in safe mode. I'll see whether this is a Samsung kernel problem or what.
blocklauncher seems to crash instantly on the Note 3, I suspected it was at first samsung's pesky Knox, but after disabling and then deleting all 6 knox related apps, i still get a crash on start right after the screen rotates. The mprotect message looks like the key, but it can't load gui elements, are those pulled from the original minecraft? Anyway, at this point i really dont know if i should be continuing to try and expose knox elements, or if its just not working on the note 3 for one reason or another (4.3 incompatible or something like that) Any help would be most appreciated.
Here's the logcat:
1.4.6 was just pushed to Google Play, and should show up tomorrow.
It includes code to drop to a feature-limited mode when it detects that live-patching is prevented by Knox, so you can still patch .mods. Sadly, ModPE scripts won't work in this mode.
The error that comes up is getRot?
You need an entity I believe
getRot (getPlayerEnt())
Where did you see in my post getRot()?
I just tried to use it to figure out what get methods return.
E.g. Are the units degree or rad? What is getPlayerEnt()
BTW I know it is Ent not ent, but it still (verb)errors.Shinkamui pls use spoilers next time.Im quite sure rhe error's about double+String. But I think this is about mozilla, not 500ISE.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
You said the error that came up had invalid parameters foe (did you mean for?) getRot
getRot(entity).
Example:
function attackHook (a, v)
{
if (getCarriedItem() == 280)
{
var lol = getRot (v);
print "Rot is "+lol+"!");
}
}
My BlockLauncher did not load your ModPE Script (I don't know why when I click enable nothing happens - zhuowei you can consider this as a bug report of BlockLauncher 1.5) but even if you test it successfully, maybe Mozilla (used in BlockLauncher) doesn't accept this:
var int1=1;//int
var dbl1=1.5;//double
var String1="ABC";//String
var String2=int1+String1+dbl1;//String of (String)int+String+(String)double
//what happens when mozilla runs the fourth line?
There isn't something called int.toString() or double.toString(), or cast a double/int to String, so that's why it said in the error message Interpretor error and doAdd error.
This is just my guess.
Oh and I just found out from the BlockLauncher source code the type of returner of
getPlayerEnt()
is called NativeEntity. So surely no one would bother to define what to do when running
NativeEntity ne = new NativeEntity();
String a = (String)ne;
, right? However, it is defined somewhere else that it returns int. (Yes I am a bit confused too)
By the way, DonaldDoesMC, no one ever said that the function getPlayerEnt() can only be used at setRot()! For example, setFireTicks() also requires a NativeEntity parameter as parameter 1.
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
A suggestion: Can BlockLauncher preload nearby chunks before entering an external server?
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Where did you see in my post getRot()?
I just tried to use it to figure out what get methods return.
E.g. Are the units degree or rad? What is getPlayerEnt()
BTW I know it is Ent not ent, but it still (verb)errors.
Shinkamui pls use spoilers next time.
Im quite sure rhe error's about double+String. But I think this is about mozilla, not 500ISE.
My BlockLauncher did not load your ModPE Script (I don't know why when I click enable nothing happens - zhuowei you can consider this as a bug report of BlockLauncher 1.5) but even if you test it successfully, maybe Mozilla (used in BlockLauncher) doesn't accept this:
var int1=1;//int
var dbl1=1.5;//double
var String1="ABC";//String
var String2=int1+String1+dbl1;//String of (String)int+String+(String)double
//what happens when mozilla runs the fourth line?
There isn't something called int.toString() or double.toString(), or cast a double/int to String, so that's why it said in the error message Interpretor error and doAdd error.
This is just my guess.
Oh and I just found out from the BlockLauncher source code the type of returner of
getPlayerEnt()
is called NativeEntity. So surely no one would bother to define what to do when running
NativeEntity ne = new NativeEntity();
String a = (String)ne;
, right? However, it is defined somewhere else that it returns int. (Yes I am a bit confused too)
By the way, DonaldDoesMC, no one ever said that the function getPlayerEnt() can only be used at setRot()! For example, setFireTicks() also requires a NativeEntity parameter as parameter 1.
I will investigate. Entities handling is insane at this point - I'll probably switch to just passing the entity ID as a plain old integer.
Also, it's
getYaw()
and
getPitch()
:
first gets left-to-right rotation, second gets up-and-down. They are in degrees.
1.4.6 was just pushed to Google Play, and should show up tomorrow.
It includes code to drop to a feature-limited mode when it detects that live-patching is prevented by Knox, so you can still patch .mods. Sadly, ModPE scripts won't work in this mode.
Thanks a ton bro for such a quick response. If it helps, I have root, so if there's anything I can do to get back to fully functional, let me know.
Update: while i was writing this i checked the store for updates, your update is available. /me crosses fingers
Thanks a ton bro for such a quick response. If it helps, I have root, so if there's anything I can do to get back to fully functional, let me know.
Update: while i was writing this i checked the store for updates, your update is available. /me crosses fingers
If you have root, the rooting process should disable Knox's SELinux profile... Can you check Settings -> About Phone -> SELinux status? Your phone is probably on "Enforce". We need that to be turned off (i.e. "Permissive")
If you have root, the rooting process should disable Knox's SELinux profile... Can you check Settings -> About Phone -> SELinux status? Your phone is probably on "Enforce". We need that to be turned off (i.e. "Permissive")
yea, under about device, it says enforcing. However, under security, i can only change the change security level to high or normal, I have no option for low or anything else. Its on normal now. Im new to this kernel security, is there a way to unlock additional options or change the setting via a property or gui option?
yea, under about device, it says enforcing. However, under security, i can only change the change security level to high or normal, I have no option for low or anything else. Its on normal now. Im new to this kernel security, is there a way to unlock additional options or change the setting via a property or gui option?
I'll be looking at Samsung devices' compat this week. Contact me via e-mail - check your PMs on the forum for the address.
I'll be looking at Samsung devices' compat this week. Contact me via e-mail - check your PMs on the forum for the address.
Just an fyi, I spent half my work day looking into selinux and knox. It looks like selinux can only be disabled on the note 3 with a new custom kernel. We still dont have a fully functional recovery and some soft bricks have been reported with people trying to build their own kernels. Im gonna have to play the waiting game as far as going that route, so i hope you're able to finagle something in the mean time. The update launches with the warning. Since im brand new to mods on pe, im gonna spend the rest of the day looking at what options are available with only the .mod support. Im guessing stuff like the tekkit pe are out for now.
Just an fyi, I spent half my work day looking into selinux and knox. It looks like selinux can only be disabled on the note 3 with a new custom kernel. We still dont have a fully functional recovery and some soft bricks have been reported with people trying to build their own kernels. Im gonna have to play the waiting game as far as going that route, so i hope you're able to finagle something in the mean time. The update launches with the warning. Since im brand new to mods on pe, im gonna spend the rest of the day looking at what options are available with only the .mod support. Im guessing stuff like the tekkit pe are out for now.
SELinux's warning is triggered because I went the lazy route in BlockLauncher. It's fixable and in theory you should be able to run BlockLauncher without disabling Knox.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Will it be possible for you to make a ModPE IDE? That would be reallt cool. And you guys seem really good with java. Why not create a new Modding API rather than using the ModPE API?
If you think so, see what happens here:
function useItem(x,y,z,i,b,s){ if(b==49){ var yaw=getYaw(); var pitch=getPitch(); var player=getPlayerent(); var MCPEV="okay you say getmcpe doesnt work i wont test it"; var levelv="so does getlevel"; clientMessage(yaw+","+pitch+","+player+","+MCPEV+","+levelv); } }When called: (yeah I type them myself)
Seems that all of us have forgotten the fact that there is this (aged?) thing in BlockLauncher called
ADDONS.
However so far there is only one developer I know who had made some, and he is called
500 Internal Server Error.
My purporse in saying this is to remind that few people know how to make addons. (Yes I visited your github MCPELauncher-addons repo I know the answer is to use Android NDK and libminecraftpe.so) I don't know assembly language so I can't test, but I am thinking about an addon that uses assets images and sounds.
HOWEVER I believe the number of people capable to learn and write and publish ADDONS successfully is <10% that of ModPE Script.
If you kindly remember what Treebl wrote in the topic in ModPE v1.0 alpha release, it said ModPE is for those "with littleno coding experience". Obviously addons aren't so.
If people yell at me for proposing rubbish ideas I would delete this post, but as I mentioned before, ModPE is in a trend to becoming something like APK or EXE (self-extraction), or like texture packs (modding packs?). Obviously anybody with the most basic knowledge about javascript would know that inserting multimedia into a javascript is impossible (yes if you make a javascript-based PNG reader but no one is stupid (not really, I would if I only know JS) enough to do so). If one is to use multimedia (like terrain.png, sound tracks, etc.) for ModPE Scripts, a self-extraction is most ideal for such an action to avoid invalid URLs.
In fact what I want to say is that TEXTURE PACKS, ADDONS and MODPE can be combined to make a self-extraction mod. In my mind, texture pack patching is a kind of modding, only that Mojang officially approves it. It can contain multiple texture packs, addons and ModPE Script and whatever. The mod contains an onRun script to control setTexturePack(dirname), un/patchAddon/ModPE(pathname), and switchToMap(name). This isn't very difficult, just changing a bit on your settings class. This is neither an idea requesting too much I think. I bet if you do this thing it won't even be more than the work you did to update for MCPE alpha 0.7.0. I really don't think this is a spamming comment.
If this is done, it is really a great change to the whole MCPE modding. The pratical use for the above is most significant when one makes a challenge map. He (or she) no longer has to ask the user to install this map, install that texture pack, download this introduction textfile, import that ModPE Script, blah blah. What the user does is just to import the integrated mod. This thing can even be done solely by a third-party program (not BlockLauncher nor MCPE, but like PocketInvEditor). (I found that I sound like advertising a function more than proposing one) It sounds like a lot to do, but it is just part of what I am doing to the app I'm developing.
Of course if a map maker has the time to do he would just make an APK and tell the user "you launch it and hurray now choose the first map by BlockLauncher and play everything is installed" but doing such thing in BlockLauncher would make things a lot better, because this is what PocketTool and BlockLauncher are originally designed for. (Or else the mod/texture pack/map makers could tell the downloader to extract the apk and delete assets and libminecraftpe.so and put my mods and texture files in)
Here's the logcat:
E/SELinux ( 1828): selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts
I/System.out( 1828): MCPELauncher: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:eu.chainfire.mobileodin.pro flg=0x8000010 cmp=net.zhuoweizhang.mcpelauncher.pro/net.zhuoweizhang.mcpelauncher.AddonInstallReceiver (has extras) }
I/System.out( 1828): Is lib loaded? false
I/System.out( 1828): oncreate
I/System.out( 1828): libminecraftpe.so is at /mnt/asec/com.mojang.minecraftpe-1/lib/libminecraftpe.so
W/System.err( 1828): java.io.FileNotFoundException: gui/gui_blocks.png
W/System.err( 1828): at android.content.res.AssetManager.openAsset(Native Method)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:316)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:290)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.doesRequireGuiBlocksPatch(MainActivity.java:1178)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.onCreate(MainActivity.java:225)
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.pro.LauncherProActivity.onCreate(LauncherProActivity.java:34)
W/System.err( 1828): at android.app.Activity.performCreate(Activity.java:5369)
W/System.err( 1828): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
W/System.err( 1828): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
W/System.err( 1828): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2348)
W/System.err( 1828): at android.app.ActivityThread.access$700(ActivityThread.java:159)
W/System.err( 1828): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
W/System.err( 1828): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1828): at android.os.Looper.loop(Looper.java:137)
W/System.err( 1828): at android.app.ActivityThread.main(ActivityThread.java:5414)
W/System.err( 1828): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1828): at java.lang.reflect.Method.invoke(Method.java:525)
W/System.err( 1828): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
W/System.err( 1828): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err( 1828): at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm( 1828): Trying to load lib /data/data/net.zhuoweizhang.mcpelauncher.pro/app_patched/libminecraftpe.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /data/data/net.zhuoweizhang.mcpelauncher.pro/app_patched/libminecraftpe.so 0x428ec408
D/SThemeManager( 1828): Load theme icons for theme
I/System.out( 1828): width
I/System.out( 1828): height
D/dalvikvm( 1828): Trying to load lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libgnustl_shared.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libgnustl_shared.so 0x428ec408
D/dalvikvm( 1828): No JNI_OnLoad found in /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libgnustl_shared.so 0x428ec408, skipping init
D/dalvikvm( 1828): Trying to load lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher_tinysubstrate.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher_tinysubstrate.so 0x428ec408
D/dalvikvm( 1828): No JNI_OnLoad found in /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher_tinysubstrate.so 0x428ec408, skipping init
D/dalvikvm( 1828): Trying to load lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher.so 0x428ec408
D/dalvikvm( 1828): Added shared lib /mnt/asec/net.zhuoweizhang.mcpelauncher.pro-1/lib/libmcpelauncher.so 0x428ec408
I/System.out( 1828): 1000
I/System.out( 1828): Found minecraft location
I/System.out( 1828): Calling mprotect with 1955966976 and 9383936
I/System.out( 1828): mprotect result is -1
I/System.out( 1828): Well, that sucks!
W/System.err( 1828): java.io.FileNotFoundException: gui/gui_blocks.png
W/System.err( 1828): at android.content.res.AssetManager.openAsset(Native Method)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:316)
W/System.err( 1828): at android.content.res.AssetManager.open(AssetManager.java:290)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.doesRequireGuiBlocksPatch(MainActivity.java:1178)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.applyBuiltinPatches(MainActivity.java:1236)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.onCreate(MainActivity.java:263)
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.pro.LauncherProActivity.onCreate(LauncherProActivity.java:34)
W/System.err( 1828): at android.app.Activity.performCreate(Activity.java:5369)
W/System.err( 1828): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
W/System.err( 1828): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
W/System.err( 1828): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2348)
W/System.err( 1828): at android.app.ActivityThread.access$700(ActivityThread.java:159)
W/System.err( 1828): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
W/System.err( 1828): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1828): at android.os.Looper.loop(Looper.java:137)
W/System.err( 1828): at android.app.ActivityThread.main(ActivityThread.java:5414)
W/System.err( 1828): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1828): at java.lang.reflect.Method.invoke(Method.java:525)
W/System.err( 1828): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
W/System.err( 1828): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err( 1828): at dalvik.system.NativeStart.main(Native Method)
I/System.out( 1828): Patching guiblocks: true
W/System.err( 1828): java.lang.NullPointerException
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.patch.PatchUtils.patch(PatchUtils.java:17)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.applyBuiltinPatches(MainActivity.java:1242)
W/System.err( 1828): at com.mojang.minecraftpe.MainActivity.onCreate(MainActivity.java:263)
W/System.err( 1828): at net.zhuoweizhang.mcpelauncher.pro.LauncherProActivity.onCreate(LauncherProActivity.java:34)
W/System.err( 1828): at android.app.Activity.performCreate(Activity.java:5369)
W/System.err( 1828): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
W/System.err( 1828): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
W/System.err( 1828): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2348)
W/System.err( 1828): at android.app.ActivityThread.access$700(ActivityThread.java:159)
W/System.err( 1828): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
W/System.err( 1828): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1828): at android.os.Looper.loop(Looper.java:137)
W/System.err( 1828): at android.app.ActivityThread.main(ActivityThread.java:5414)
W/System.err( 1828): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1828): at java.lang.reflect.Method.invoke(Method.java:525)
W/System.err( 1828): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
W/System.err( 1828): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err( 1828): at dalvik.system.NativeStart.main(Native Method)
F/libc ( 1828): Fatal signal 11 (SIGSEGV) at 0x74ba73dc (code=2), thread 1828 (cpelauncher.pro)
I/DEBUG ( 295): pid: 1828, tid: 1828, name: cpelauncher.pro >>> net.zhuoweizhang.mcpelauncher.pro <<<
I/DEBUG ( 295): [email protected] -k -t -z -d -o /data/log/dumpstate_app_native -m 1828
D/CrashAnrDetector( 662): pid: 1828, tid: 1828, name: cpelauncher.pro >>> net.zhuoweizhang.mcpelauncher.pro <<<
I/ActivityManager( 662): Process net.zhuoweizhang.mcpelauncher.pro (pid 1828) (adj 9) has died.
D/Zygote ( 306): Process 1828 terminated by signal (11)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumEdit: you are right about the mprotect. In the meantime, you can still use texture packs in safe mode. I'll see whether this is a Samsung kernel problem or what.
Thanks for the detailed logcat.
Edit #2: https://plus.google.com/app/basic/stream/z13xxnmzvyeihn00w23wcdp55terwvove
Knox's SELinux profile is probably preventing BlockLauncher from mapping memory as read/write/exec at the same time.
I'll try to fix this - you might need Root though.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium1.4.6 was just pushed to Google Play, and should show up tomorrow.
It includes code to drop to a feature-limited mode when it detects that live-patching is prevented by Knox, so you can still patch .mods. Sadly, ModPE scripts won't work in this mode.
Where did you see in my post getRot()?
I just tried to use it to figure out what get methods return.
E.g. Are the units degree or rad? What is getPlayerEnt()
BTW I know it is Ent not ent, but it still (verb)errors.Shinkamui pls use spoilers next time.Im quite sure rhe error's about double+String. But I think this is about mozilla, not 500ISE.
The setItem x and y parameters are switched. X coordinate needs to go first.
My BlockLauncher did not load your ModPE Script (I don't know why when I click enable nothing happens - zhuowei you can consider this as a bug report of BlockLauncher 1.5) but even if you test it successfully, maybe Mozilla (used in BlockLauncher) doesn't accept this:
There isn't something called int.toString() or double.toString(), or cast a double/int to String, so that's why it said in the error message Interpretor error and doAdd error.
This is just my guess.
Oh and I just found out from the BlockLauncher source code the type of returner ofis called NativeEntity. So surely no one would bother to define what to do when running , right? However, it is defined somewhere else that it returns int. (Yes I am a bit confused too)
By the way, DonaldDoesMC, no one ever said that the function getPlayerEnt() can only be used at setRot()! For example, setFireTicks() also requires a NativeEntity parameter as parameter 1.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI will investigate. Entities handling is insane at this point - I'll probably switch to just passing the entity ID as a plain old integer.
Also, it's
and:
first gets left-to-right rotation, second gets up-and-down. They are in degrees.
Thanks a ton bro for such a quick response. If it helps, I have root, so if there's anything I can do to get back to fully functional, let me know.
Update: while i was writing this i checked the store for updates, your update is available. /me crosses fingers
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf you have root, the rooting process should disable Knox's SELinux profile... Can you check Settings -> About Phone -> SELinux status? Your phone is probably on "Enforce". We need that to be turned off (i.e. "Permissive")
yea, under about device, it says enforcing. However, under security, i can only change the change security level to high or normal, I have no option for low or anything else. Its on normal now. Im new to this kernel security, is there a way to unlock additional options or change the setting via a property or gui option?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'll be looking at Samsung devices' compat this week. Contact me via e-mail - check your PMs on the forum for the address.
Just an fyi, I spent half my work day looking into selinux and knox. It looks like selinux can only be disabled on the note 3 with a new custom kernel. We still dont have a fully functional recovery and some soft bricks have been reported with people trying to build their own kernels. Im gonna have to play the waiting game as far as going that route, so i hope you're able to finagle something in the mean time. The update launches with the warning. Since im brand new to mods on pe, im gonna spend the rest of the day looking at what options are available with only the .mod support. Im guessing stuff like the tekkit pe are out for now.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumSELinux's warning is triggered because I went the lazy route in BlockLauncher. It's fixable and in theory you should be able to run BlockLauncher without disabling Knox.