Convert Minecraft server world files into MCserver world files.
#58
I've got the converter parsing everything without crashing or coming up with unknown tag errors now. There's still a problem with the converter closing compound tags too early if there's an entity list that contains double or float tags though.

http://code.google.com/p/mc-server/sourc...BTData.cpp


The converter is closing the compound before it parses a list that should belong to that compound. Here's an example:

Code:
Coord(X,Z): 29,13
Working on chunk 1012 :: 4587520
==== STRUCTURED NBT DATA ====
COMPOUND ( )
     COMPOUND
         COMPOUND (Level)
            LIST (Entities)
                 COMPOUND (...)
                     COMPOUND (Item)
                        SHORT Damage (0)
                        SHORT id (368)
                        BYTE Count (1)
                    LIST (Motion)
                    LIST (Pos)
                    SHORT Age (4395)
                    SHORT Air (300)
                    SHORT Health (5)
                    LONG UUIDLeast (6750471726475532170)
                    LONG UUIDMost (-123531473670072665)
                    LONG WorldUUIDLeast (-3115241454721806157)
                    Double  (0.000000)
                    BYTE OnGround (1)
            LIST (Rotation)
            SHORT Fire (-1)
            FLOAT  (0.000000)
            FLOAT FallDistance (0.000000)
            LONG WorldUUIDMost (-3365198326412606504)
            BYTE ARRAY Data (length: 8)
    LIST (TileEntities)
    INTEGER xPos (27)
    INTEGER zPos (16)
    LONG LastUpdate (17511934580490240)
    BYTE TerrainPopulated (1)
    BYTE ARRAY BlockLight (length: 8)
    BYTE ARRAY Blocks (length: 8)
    BYTE ARRAY HeightMap (length: 8)
    BYTE ARRAY SkyLight (length: 8)
=============================

and how it *should* look:

Code:
Coord(X,Z): 29,13
Working on chunk 1012 :: 4587520
==== STRUCTURED NBT DATA ====
COMPOUND ( )
     COMPOUND
         COMPOUND (Level)
            LIST (Entities)
                 COMPOUND (...)
                     COMPOUND (Item)
                        SHORT Damage (0)
                        SHORT id (368)
                        BYTE Count (1)
                        LIST (Motion)
                        LIST (Pos)
                        SHORT Age (4395)
                        SHORT Air (300)
                        SHORT Health (5)
                        LONG UUIDLeast (6750471726475532170)
                        LONG UUIDMost (-123531473670072665)
                        LONG WorldUUIDLeast (-3115241454721806157)
                        Double  (0.000000)
                        BYTE OnGround (1)
                        LIST (Rotation)
                        SHORT Fire (-1)
                        FLOAT  (0.000000)
                        FLOAT FallDistance (0.000000)
                        LONG WorldUUIDMost (-3365198326412606504)
            BYTE ARRAY Data (length: 8)
            LIST (TileEntities)
            INTEGER xPos (27)
            INTEGER zPos (16)
            LONG LastUpdate (17511934580490240)
            BYTE TerrainPopulated (1)
            BYTE ARRAY BlockLight (length: 8)
            BYTE ARRAY Blocks (length: 8)
            BYTE ARRAY HeightMap (length: 8)
            BYTE ARRAY SkyLight (length: 8)
=============================


I'm not sure what's up with "FLOAT (0.000000)" That would be another tag that's not getting parsed correctly.
Reply
Thanks given by:


Messages In This Thread
RE: Convert Minecraft server world files into MCserver world files. - by rs2k - 10-31-2011, 01:01 PM



Users browsing this thread: 4 Guest(s)