I wrote this handy map conversion tool. Allows me to import: MCPC Anvil worlds MCPC McRegion worlds Minecraft PE v0.8.2 (or before) worlds. PocketMine-MP v1.3 worlds. You can download it from: Github It's main feature is that it will delete/convert blocks. I.e. blocks that are valid in PC edition but are not valid with Pocket Edition that normally cause the client to crash, with this tool, they are either deleted or converted to another block type. For more information see the README file. Conversion speeds are low, so please be patient.
Thank you. I have just published a small update. * Added pmentity to dump entity data * Added region settings to MCPE0.2.0 and PMF1.3 formats. * Fixed offset functionality. * Filter out Dropped Item entities.
BTW, in case you didn't notice, if you add the pmimporter.phar to your PocketMine plugins directory it will load as a plugin called ImportMap. This provides with a "/im" command to import maps. However, I myself just use it from the command line.
No sorry, LevelDB maps (MCPE 0.9.0 or later) are not supported. The documentation on LevelDB that I could find is currently poor, and also the PHP LevelDB extension is only available on Linux.
Im talking about anvil. Now there is a way to convert db to anvil and thats why... also cant you just make a converter using anvil/mcregion so we can directly convert pc maps... PM reads mcregion maps...
In the first post it says: MCPC here means Minecraft PC Edition. So yes, Anvil and McRegion formats are supported. I have downloaded several maps for PC editions and tested them succesfully. My favorite is minecraftmaps.com.
Are you using MacOS? I haven't tested it there. Also, it looks like you are using DevTools. The source can be found in my Github repository. You must use the build.php there to create the phar file, otherwise it will not work. Also, the plugin only works as a phar file, not as a source/folder plugin from DevTools. I don't know why it is trying to use the opcache.
xFlare, if you can get a command line you could enter there: /Users/flower/Desktop/Flare/bin/php5/bin/php /Users/flower/Desktop/Flare/plugins/pmimporter.phar pmconvert '/Users/flower/Desktop/way/' '/Users/flower/Desktop/Flare/worlds/as/' Where '/Users/flower/Desktop/way/' is the Anvil world folder (it should contain a level.dat file for example).
Sorry, that wouldn't work. The build.php is required. What happens is that the phar file is used to execute a new pmimporter process. This is to avoid blocking the PocketMine-MP server. Doing a devtool phar file misses all the stuff that pmimporter requires.
I am afraid I wasn't clear. What you do is go to the source directory for pmimporter and enter: Code: /Users/flower/Desktop/Flare/bin/php5/bin/php build.php That will create a new pmimporter.phar file which then you place in the PocketMine-MP plugin folder. To make sure that the plugin works enter: Code: /im version It should show: Code: pmimporter #.#rel Then you would do: Code: /im /Users/flower/Desktop/way crash That will start the conversion process which is very slow. Eventually you will get a converted map called crash.
I don't know MacOsX, but if I was to guess, there should be a php.ini file in your /Users/flower/Desktop/Flare/bin/php5/bin/ folder. Unless it is a symlink. In there you have to edit and change the line: opcache.enable=1 And set to 0. On the other hand, I find it weird that the opcache is causing you problems. I have tested pmimporter on Windows and Linux, so I know it works there without having to do any opcache tricks. The plugin should be using the same binary as PocketMine which would have opcache set correctly already.
You could run it as a plugin, if so, just copy the pmimporter.phar into your plugin directory and do: Code: /im map-folder brand_new_world It will do the conversion for you. Now, it is very slow, so I prefer to run from the command line. If you do run from the command line you need to know how to use the php executable that comes with PocketMine.