Convert Minecraft server world files into MCserver world files.
#19
(10-28-2011, 10:24 AM)FakeTruth Wrote: Yeah PHP looks a lot like C++ in some ways (mostly function names), so it shouldn't be too hard to convert it to C++
That's some weird looking dataTongue in JSON everything is stored in text which is pretty sweet, because you can actually read it. You can argue that it takes more space, but if you compress it it doesn't


Success!!...
I think.

I pulled this out a single chunk in an MCR file. It's set to loop over every chunk, but I stopped it at the first one for testing.

Does this look right to you?

Code:
Reading tag "Data" at offset 12
Reading in list of 0 tags of type 1.
Reading tag "Entities" at offset 16407
Reading tag "LastUpdate" at offset 16423
Reading tag "xPos" at offset 16444
Reading tag "zPos" at offset 16455
Reading in list of 0 tags of type 1.
Reading tag "TileEntities" at offset 16466
Reading tag "TerrainPopulated" at offset 16486
Reading tag "SkyLight" at offset 16506
Reading tag "HeightMap" at offset 32905
Reading tag "BlockLight" at offset 33177
Reading tag "Blocks" at offset 49578
Reading tag "Level" at offset 4
Reading tag "" at offset 1
Writing tag "" of type 10
Array
(
    [type] => 10
    [name] =>
    [value] => Array
        (
            [0] => Array
                (
                    [type] => 10
                    [name] => Level
                    [value] => Array
                        (
                            [0] => Array
                                (
                                    [type] => 7
                                    [name] => Data
                                    [value] => Array
                                        (
                                            [0] => 0
                                            [1] => 0
                                            [2] => 0
                                            [3] => 0
                                            [4] => 0
                                            [5] => 0
                                            [6] => 0
                                            [7] => 0
                                            [8] => 0

...... 1, 2, skip a few:

                                            [32753] => 0
                                            [32754] => 0
                                            [32755] => 0
                                            [32756] => 0
                                            [32757] => 0
                                            [32758] => 0
                                            [32759] => 0
                                            [32760] => 0
                                            [32761] => 0
                                            [32762] => 0
                                            [32763] => 0
                                            [32764] => 0
                                            [32765] => 0
                                            [32766] => 0
                                            [32767] => 0
                                        )

                                )

                        )

                )

        )

)
Reply
Thanks given by:


Messages In This Thread
RE: Convert Minecraft server world files into MCserver world files. - by rs2k - 10-28-2011, 10:55 AM



Users browsing this thread: 3 Guest(s)