| Jeb's New World Format | |
|
+5GLaDOS Keon Danice123 Laibach fr0stbyte124 9 posters |
|
Author | Message |
---|
fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
| Subject: Jeb's New World Format Tue Feb 14, 2012 3:19 pm | |
| It's called "Anvil". http://www.mojang.com/2012/02/14/new-minecraft-map-format-anvil/ - Quote :
Jon and I have been working on a new map format for Minecraft that we’ve dubbed “Anvil” (it’s just a name). The purpose of the new format is to prepare for modding, especially to allow for more block types, but also to improve other areas of the game (such as map height). The changes are:
* Maximum build height has been increased to 256 (was 128) * Empty sections of the world are not loaded into memory * Block ids have been increased to 4096 (was 256) by adding a 4 bit data layer (similar to how meta data is stored) * Block ordering have been changed from x/z/y to y/z/x in order to improve compression * Packets for sending chunks have been updated (a full 128-high chunk is smaller than the old format, and a chunk with lots of empty space is much smaller) * Biomes are saved per x/z column, which means they can be altered by tools
The next snapshot, and Minecraft 1.2, will automatically convert worlds to the new format. The files of the current format (“McRegion”) will remain in your save folder, if you need to restore them for some reason.
I’ve prepared a converter (with source code) for tool makers that wants to be prepared. You do not need to use this to convert your maps! It’s only for reference!
Download the converter+source here
Some info:
* The 16x128x16 “Blocks”, “Data”, “SkyLight” and “BlockLight” tags are removed * A “Sections” tag has been added with up to 16 compound tags * Each section has 16x16x16 “Blocks”, “Data”, “SkyLight” and “BlockLight” tags * Each section has a “Y” integer tag saying which section it is (note that some Y positions can be skipped). 0 is at the bottom of the world and 15 is the topmost section * Each section also has a “AddBlocks” tag, which is a DataLayer byte array just like “Data”. The “AddBlocks” tag is not included in the converter since the old format never had block ids above 255. This extra tag is created whenever a block requires it, so the getTile() method needs to check if the array exists and then combine it with the default block data. In other words, blockId = (addBlock << 8) + baseId. * Each chunk has a 16×16 byte array with biome ids called “Biomes”. If this array is missing it will be filled when the game starts. The converter doesn’t include any biome sources, though (it had too many dependencies to be included). * Note that the old format is XZY and the new format is YZX (see the difference between DataLayer and OldDataLayer). * The new format uses the extension “.mca” instead of “.mcr” (the old format is kept for safety, with the level.dat backed up as “level.dat_mcr”)
Finally, a shoutout to Robinton’s hard work on his mods: http://www.minecraftforum.net/topic/310298-100robintons-mods/
Cheers,
// jeb_
I don't yet know what this will mean for Futurecraft, but it is interesting. Besides doubling the world height, it's got a bit of a cubic chunks feel to it, like isolating chunks to 16^3 sections. Also the block ID slots have been increased from 256 to 4096, which is fantastic. And I think before this is done there will also be native support for both HD textures and multiple texture pages. In short, Minecraft is all of a sudden taking on lots of engine mods from the community, and that's fantastic. But regarding the save model, that alone shouldn't affect us terribly, but its implications on what that does to the internal world format will. Gonna be playing this one by ear. | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 3:40 pm | |
| - fr0stbyte124 wrote:
- It's called "Anvil".
http://www.mojang.com/2012/02/14/new-minecraft-map-format-anvil/
- Quote :
stuff jeb said
I don't yet know what this will mean for Futurecraft, but it is interesting. Besides doubling the world height, it's got a bit of a cubic chunks feel to it, like isolating chunks to 16^3 sections. Also the block ID slots have been increased from 256 to 4096, which is fantastic. And I think before this is done there will also be native support for both HD textures and multiple texture pages. In short, Minecraft is all of a sudden taking on lots of engine mods from the community, and that's fantastic. But regarding the save model, that alone shouldn't affect us terribly, but its implications on what that does to the internal world format will.
Gonna be playing this one by ear. that looks like good news, from what i can understand anyway thanks for posting it! | |
|
| |
Danice123 DEV
Posts : 607 Join date : 2012-01-06 Age : 30 Location : The Dankins
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 4:45 pm | |
| I feel like this solves a lot of problems for us. Now to wait until it's released... | |
|
| |
Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 7:14 pm | |
| Yep, saw this a while ago, nearly jumped for joy. Frost, as you were saying, Jeb isn't they guy who likes to fix the engine, he just steals it from the modders! (Actually that would be a big honor.) Good news, I guess! | |
|
| |
fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 10:27 pm | |
| I didn't say that. I said he doesn't like working on the engine, so he collaborates with modders. Which is like stealing only you get free technical support, so really it's even better. | |
|
| |
Danice123 DEV
Posts : 607 Join date : 2012-01-06 Age : 30 Location : The Dankins
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 10:37 pm | |
| Collaboration: Stealing with free technical support. Thats a quotable quote | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 10:43 pm | |
| - fr0stbyte124 wrote:
- I didn't say that. I said he doesn't like working on the engine, so he collaborates with modders. Which is like stealing only you get free technical support, so really it's even better.
wait, so does he work with you??? (I'm not really joking, and would you offer to let them(mojang) integrate part of this mod into vanilla minecraft if they wanted to?) | |
|
| |
fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 10:59 pm | |
| Oh man, I would collaborate with them so hard, you don't even wanna know. | |
|
| |
Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 11:02 pm | |
| They would never. Except maybe Copernicus. Not spaceships. | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 11:03 pm | |
| - Keon wrote:
- They would never. Except maybe Copernicus. Not spaceships.
that's what i meant | |
|
| |
fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 11:24 pm | |
| I'll be doing work at some point on the network protocol. That, at least, would probably be something worth integrating.
I'm also a little surprised they haven't done anything with Optifine yet. I know there is a story behind that but I don't remember the details.
*edit* Found it. He couldn't come to an agreement with Mojang over compensation. It's like he doesn't know how collaborating works... | |
|
| |
Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 11:34 pm | |
| Or the fact that they are mojang. I mean, if I had an epic mod and Notch/Jeb said "Would you let us put it it?" I would stuff money in their face and beg them to. | |
|
| |
GLaDOS Infantry
Posts : 703 Join date : 2011-12-12 Age : 54 Location : At Aperture Science, testing P-Body and Atlas.
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 11:46 pm | |
| I would Avada Kedavera both of them and take over Mojang with my Dark Arts. | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Tue Feb 14, 2012 11:55 pm | |
| - daman200 wrote:
- I would Avada Kedavera both of them and take over Mojang with my Dark Arts.
... is that.. good? I assume no | |
|
| |
GLaDOS Infantry
Posts : 703 Join date : 2011-12-12 Age : 54 Location : At Aperture Science, testing P-Body and Atlas.
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 12:03 am | |
| Haven't sen Harry Potter? Avada Kedavera!
Mod Edit: Expelliarmus! But seriously, Magic doesn't mix with Technology. | |
|
| |
Cool3303 Recruit
Posts : 205 Join date : 2012-01-21 Age : 111 Location : In a bunker waiting for the wl invasion
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 9:31 am | |
| Little Question why is the server world from Tacokingbob 64 Blocks high??? | |
|
| |
Pat Best Marine
Posts : 1497 Join date : 2012-01-30 Location : I am here. I am there. I am everywhere.
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 10:37 am | |
| - Cool3303 wrote:
- Little Question why is the server world from Tacokingbob 64 Blocks high???
It's not, you're just not very bright. | |
|
| |
Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 11:43 am | |
| If I could sig, that would be my sig. Anybody want to enlighten him, because I don't. Let him stay in the darkness forever. | |
|
| |
Cool3303 Recruit
Posts : 205 Join date : 2012-01-21 Age : 111 Location : In a bunker waiting for the wl invasion
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 12:57 pm | |
| Okay If the world from Tacokingbob is higher than 64 how do you explain that I just can build 64 Blocks | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 1:30 pm | |
| - Cool3303 wrote:
- Okay If the world from Tacokingbob is higher than 64 how do you explain that I just can build 64 Blocks
look down, add to the 64 | |
|
| |
Cool3303 Recruit
Posts : 205 Join date : 2012-01-21 Age : 111 Location : In a bunker waiting for the wl invasion
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 1:39 pm | |
| | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Wed Feb 15, 2012 2:04 pm | |
| | |
|
| |
Cool3303 Recruit
Posts : 205 Join date : 2012-01-21 Age : 111 Location : In a bunker waiting for the wl invasion
| Subject: Re: Jeb's New World Format Thu Feb 16, 2012 2:25 am | |
| - CoalMiningAlchemist wrote:
- glad to help
Who are you and what have you Done with our Coal Mining Alchemist? | |
|
| |
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Jeb's New World Format Thu Feb 16, 2012 12:42 pm | |
| - somebannedguy wrote:
- CoalMiningAlchemist wrote:
- glad to help
Who are you and what have you Done with our Coal Mining Alchemist? am I that much of a troll? | |
|
| |
Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Jeb's New World Format Thu Feb 16, 2012 12:49 pm | |
| I get the happys from seeing Cools avatar and location. No, you aren't. You seem pretty sane, actually. | |
|
| |
Sponsored content
| Subject: Re: Jeb's New World Format | |
| |
|
| |
| Jeb's New World Format | |
|