1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Leveldb support for StorageVersion 7

Discussion in 'General discussion' started by Kingslayer3173, May 3, 2018.

  1. Kingslayer3173

    Kingslayer3173 Creeper

    Messages:
    5
    Hi,

    I compiled and installed support for leveldb on my minecraft server, but when I tried to import a world from my sons mcpe I got a message saying "Could not load level "mesa": Specified LevelDB world format version (7) is not supported by PocketMine-MP". In php-leveldb there is a const constraining the leveldb support to 6. Is there a Quick fix for this? I tried looking around for the specs on leveldb 7 to change the php-leveldb code acording to spec, but found no information on the format Any pointers?.
     
    Last edited: May 3, 2018
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Are there any files in the world/region folder with the extension ".mcr", ".mca" or ".mcapm" (or some weird extension)?
     
    Last edited: May 4, 2018
  3. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Could I just ask what Minecraft version you generated that world with?
     
  4. Kingslayer3173

    Kingslayer3173 Creeper

    Messages:
    5
    Umm.. nope, the files was just copied from the world-folder on the mcpe-device. The directory looks like this:
    $ ls -ltra
    -rw-rw-r-- 1 5 May 3 00:48 world_resource_packs.json
    -rw-rw-r-- 1 23811 May 3 00:48 world_icon.jpeg
    -rw-rw-r-- 1 5 May 3 00:48 world_behavior_packs.json
    drwxrwxr-x 2 4096 May 3 00:48 resource_packs
    -rw-rw-r-- 1 5 May 3 00:48 levelname.txt
    -rw-rw-r-- 1 1647 May 3 00:48 level.dat_old
    -rw-rw-r-- 1 1647 May 3 00:48 level.dat
    drwxrwxr-x 2 4096 May 3 00:48 db
    drwxrwxr-x 2 4096 May 3 00:48 behavior_packs
    --
    Is it not possible to import worlds this way?
     
  5. Kingslayer3173

    Kingslayer3173 Creeper

    Messages:
    5
    --
    Starting Minecraft: PE server version v1.2.13
    --
    Compiled using the php-build-script (https://github.com/pmmp/php-build-scripts)
     
  6. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    it's a constraint on the **world** version, not on the database format version. The chunk format for MCPE changed in 1.2.13, PocketMine-MP doesn't support this new format yet.
     
  7. Kingslayer3173

    Kingslayer3173 Creeper

    Messages:
    5
    Aha.. that makes sense, thanks!. Do you have the specs for the new format available?.
     
  8. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    Work is in progress to support the new format, but this update is quite a lot more complex than previous ones have been.
     
  9. Kingslayer3173

    Kingslayer3173 Creeper

    Messages:
    5
    I see, great work! Let me know if you need a rubber duck.
     
    Last edited: May 7, 2018
  10. MrTechno

    MrTechno Creeper

    Messages:
    4
    What sort of work are we talking about? Is there a known new spec you have to port PMMP to or are you having to reverse engineer it?
     
  11. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    it's a bit of both, but the format isn't the problem. There are actual technical barriers to supporting the new format which require significant code changes to PocketMine-MP itself.
     
    MrTechno likes this.
  12. MrTechno

    MrTechno Creeper

    Messages:
    4
    That makes sense. I mean if it was as simple as changing CURRENT_STORAGE_VERSION to 8 you'd have done it already.
     
  13. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    version numbers don't get bumped for no reason.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.