LevelDb2Avnil
LevelDb2Avnil copied to clipboard
Script Error
I always get this error, when I want to convert my MCPC wolrd:
D:\mc\LevelDb2Avnil-master (1)\LevelDb2Avnil-master>java -jar Converter.jar world worldanvil
Exception in thread "main" java.nio.BufferOverflowException
at java.nio.DirectByteBuffer.put(Unknown Source)
at org.iq80.leveldb.util.Zlib$ByteBufferBackedOutputStream.write(Zlib.java:91)
at org.iq80.leveldb.util.Zlib$ZLibSPI.copy(Zlib.java:108)
at org.iq80.leveldb.util.Zlib$ZLibSPI.uncompress(Zlib.java:118)
at org.iq80.leveldb.util.Zlib.uncompress(Zlib.java:181)
at org.iq80.leveldb.table.MMapTable.readBlock(MMapTable.java:121)
at org.iq80.leveldb.table.Table.openBlock(Table.java:79)
at org.iq80.leveldb.util.TableIterator.getNextBlock(TableIterator.java:102)
at org.iq80.leveldb.util.TableIterator.getNextElement(TableIterator.java:79)
at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48)
at org.iq80.leveldb.util.InternalTableIterator.getNextElement(InternalTableIterator.java:51)
at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48)
at org.iq80.leveldb.util.DbIterator.resetPriorityQueue(DbIterator.java:155)
at org.iq80.leveldb.util.DbIterator.
Any idea?
Seems like your map is too big for your memory. May I ask the size of the map and your computer memory?
PC has 16GB Ram, the MAP has 6GB. It is the same on a server with 24 Core and 64 GB RAM. How can I modify the script that it works? (It would be very important to me)
Maybe you don't allocate enough memory for java VM? Try this one
java -Xms10240m -Xmx10240m -jar Converter.jar world worldanvil
it`s the same:
C:\install\convert_mc\LevelDb2Avnil-master>java -Xms10240m -Xmx10240m -jar Converter.jar world worldanvil
Exception in thread "main" java.nio.BufferOverflowException
at java.nio.DirectByteBuffer.put(Unknown Source)
at org.iq80.leveldb.util.Zlib$ByteBufferBackedOutputStream.write(Zlib.java:91)
at org.iq80.leveldb.util.Zlib$ZLibSPI.copy(Zlib.java:108)
at org.iq80.leveldb.util.Zlib$ZLibSPI.uncompress(Zlib.java:118)
at org.iq80.leveldb.util.Zlib.uncompress(Zlib.java:181)
at org.iq80.leveldb.table.MMapTable.readBlock(MMapTable.java:121)
at org.iq80.leveldb.table.Table.openBlock(Table.java:79)
at org.iq80.leveldb.util.TableIterator.getNextBlock(TableIterator.java:102)
at org.iq80.leveldb.util.TableIterator.getNextElement(TableIterator.java:79)
at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48)
at org.iq80.leveldb.util.InternalTableIterator.getNextElement(InternalTableIterator.java:51)
at org.iq80.leveldb.util.AbstractSeekingIterator.hasNext(AbstractSeekingIterator.java:48)
at org.iq80.leveldb.util.DbIterator.resetPriorityQueue(DbIterator.java:155)
at org.iq80.leveldb.util.DbIterator.
I've never been dealing with such a huge map XD... If you don't mind can you send me your map? I need to do some experiment
You can send me link privately via twitter message @ljyloo
OK……I get it. The converter you are using is for converting Pocket Edition(PE) map to PC map……And you want to use it to convert your PC map to PE map…… Read the README first
thanks for the info. It is not easy to find the right thing, because the name is always equal (leveldb). I would need it from Windows 10 Edition (C++ leveldb) to pocketmine server. where can I get the right converter?
Wait, you are playing Minecraft Windows 10 Edition? That's using the same format(LevelDb) as the Pocket Edition. And my converter should do the job XD, but it failed. Can you send me your map to find out the bug, thanks.
The PC edition I am talking about is the JAVA edition
@rolipobi pocketmine in pmmp/PocketMine-MP actually can load these fully working soon. ´The last change was 10 days ago: https://github.com/pmmp/PocketMine-MP/commit/b4a149cce81bfce22bb57e07554946620ecb2f74#diff-0
Maybe try setting default level type to Leveldb in the properties.yml. As far as i remember leveldb would requiere an php extension which exists here: https://github.com/pmmp/php-leveldb/releases
I set the format to leveldb in properties.yml. but it won`t work. when I start it, the folder "region" is generated :-(
Nobody who can help me?
Sigh I told you to send me your map :|