If at first you don't succeed, add more RAM and try again.
BlockLauncher 1.5.2 beta 1 is built with this principle in mind: 256KB of RAM will be allocated for parsing scripts instead of the default 8KB so nested else if statements won't crash with a "too much recursion while parsing" error.
If at first you don't succeed, add more RAM and try again.
BlockLauncher 1.5.2 beta 1 is built with this principle in mind: 256KB of RAM will be allocated for parsing scripts instead of the default 8KB so nested else if statements won't crash with a "too much recursion while parsing" error.
Key mappings for controls? For Moga Controllers. Something like DeadTrigger2's key mapping where you select the control you want to edit and you press any key on your phone/connected controller and that key will take the job of running that control.
Ohh goodness I really hate it when I try to run the block launcher it always say unfortunately block launcher has stopped . . Ive done a lot of stuff just to fix this up . . But then it isn't helping . . Can someone tell me how to fix it . .imma jellynean user . .oh Come on guys I'm so confuse
Okay, anyone wanting saving data to SD Card - it is possible already:
var f = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "test.txt");
f.createNewFile();
try{
var fos = new java.io.FileOutputStream(f);
fos.write(new java.lang.String("This file was written by a ModPE script!").getBytes());
fos.flush();
fos.close();
print("Success :)");
}catch(err){
print("Failed :(");
}
Paste it to any place of the script. (can be even at the beggining of it).
I did not know about this and are other java methods available as well?
I've added taking screenshots (which runs astonishingly slowly). MrARM is investigating whether recording is possible.
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:
Okay, anyone wanting saving data to SD Card - it is possible already:
var f = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "test.txt");
f.createNewFile();
try{
var fos = new java.io.FileOutputStream(f);
fos.write(new java.lang.String("This file was written by a ModPE script!").getBytes());
fos.flush();
fos.close();
print("Success :)");
}catch(err){
print("Failed :(");
}
Paste it to any place of the script. (can be even at the beggining of it).
Why (can) not use java.io.OutputStreamWriter, like this?
function newFile(dir,name,content){
try{
var file=new java.io.File(android.os.Environment.getExternalStorage()+"/"+dir,name);
if(file.exists()) throw new Exception("File already exists");
file.createNewFile();
var oWrite=new java.io.OutputStreamWriter(new java.io.FileOutputStream(file));
oWrite.write(content);
oWrite.close();
}catch(e){print("ERROR:"+e.toString);}
}
BTW Should your fs.write() new java.lang.String() be added with a bracket?
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:
To post a comment, please login or register a new account.
Why not just substitute the function with this?
function getId(ent){ Entity.getEntityTypeId(ent); }That way it wouldn't cause a big change in anybody's scripts.
ModPE, Level, Entity, and Player are all objects. Each object has parameters (in my knowledge). What are the parameters for those objects?
I wanted to test something like this:
So is there any parameters?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThey are like the Math class in JavaScript: you cannot create instances of them.
But then this might get confusing if I added the ability to get the entity id (not the type id, the id MCPE uses to keep track of entities)
Sure
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBlockLauncher 1.5.2 beta 1 is built with this principle in mind: 256KB of RAM will be allocated for parsing scripts instead of the default 8KB so nested else if statements won't crash with a "too much recursion while parsing" error.
http://tinyw.in/bl
Have you worked on ModPE.importLib() yet? And is it true you are adding screen recording?
King of Page 65
-
View User Profile
-
View Posts
-
Send Message
Curse Premium1) No
2) I've added taking screenshots (which runs astonishingly slowly). MrARM is investigating whether recording is possible.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWill fix if someone makes a skin index website where people can upload skins.
I guess in the worst case scenario, you can use Rhino's Java bridge support to call into Java code from your ModPE script.
I did not know about this and are other java methods available as well?
Have you tried creating an AlertDialog? Some Android methods work like running another package using it's package name.
Heal button?
http://us.virtualgladiators.com/multicraft/index.php?r=status/3670.png
I used the screenshot feature and It worked very smooth for me.
http://us.virtualgladiators.com/multicraft/index.php?r=status/3670.png
Why (can) not use java.io.OutputStreamWriter, like this?
function newFile(dir,name,content){ try{ var file=new java.io.File(android.os.Environment.getExternalStorage()+"/"+dir,name); if(file.exists()) throw new Exception("File already exists"); file.createNewFile(); var oWrite=new java.io.OutputStreamWriter(new java.io.FileOutputStream(file)); oWrite.write(content); oWrite.close(); }catch(e){print("ERROR:"+e.toString);} }BTW Should your fs.write() new java.lang.String() be added with a bracket?