ljyloo / LevelDb2Avnil

Convert Minecraft: Pocket Edition(LevelDb) map to Minecraft(Avnil) map
GNU General Public License v2.0
100 stars 31 forks source link

Add support for 1.2+ worlds #49

Closed 0x9fff00 closed 6 years ago

0x9fff00 commented 6 years ago

Adds support for Zlib raw compression using updated leveldb from https://github.com/0x9fff00/leveldb

Fixes #34

gothic3 commented 6 years ago

Good day, I'm planning my project, I was building a map on version 1.2.8 mcpe, I would like to ask you for help in porting the to leveldb card to the PC anvil, I just can notunderstand what and how to do the files, please be of help, I waited your converter for a year.

BadCivets commented 6 years ago

Me too

hstr0100 commented 6 years ago

For 1.2+ As far as I'm aware, you have to ignore reading the skylight and blocklight arrays (4096 => 2048) because MCPE now calculates them on the fly (Which sucks for many reasons, but whatever).

This is the output that your updated version produces BTW:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at com.ljyloo.PE2PC.ConvertSource.convertSubChunk(ConvertSource.java:127) at com.ljyloo.PE2PC.PE2PC.convert(PE2PC.java:102) at com.ljyloo.PE2PC.PE2PC.main(PE2PC.java:35)

0x9fff00 commented 6 years ago

@hstr0100 That error doesn't happen for me. Do you have a world that I can test on?

Aarkena commented 6 years ago

Hey there, I have the same problem as user hstr0100. Server log doesn't show much

--START OF LOG-- Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at com.ljyloo.PE2PC.ConvertSource.convertSubChunk(ConvertSource.java:127) at com.ljyloo.PE2PC.PE2PC.convert(PE2PC.java:102) at com.ljyloo.PE2PC.PE2PC.main(PE2PC.java:35) --END OF LOG--

I'm kind of new here and tried my best. But I can't get to convert my world. I get that log and nothing in the "Worldanvil" folder. I've attached my "world" as of now (it's only a small world which I started to work on with my son, now he want's friends to play with him in this world so I started a PocketMine Server at home, but I can't seem to convert the world .. )

Thanks for your time and effort, I hope solving this might end up in helping others too! World.zip