Taller, Slower, Larger!!

It's old but gold. If it could help you out we've probably chucked it in here.
User avatar
Blackadder51
Retired
Posts: 2274
Joined: 29 Oct 2010, 11:22
Location: Australia

Taller, Slower, Larger!!

Post by Blackadder51 » 20 Jul 2011, 02:41

I am really surprised this is not posted yet,

Anywho are you tired of the small 128 hight limit? Well according to a new blog post from Notch himself so is he.
18heightmap.png
Spoiler! :
Notch wrote:Sharing an interesting email
I briefly talked to the crazy engineers over at Bat Country Entertainment about mods that alter the height limit in Minecraft. Ryan send me this interesting email about what different tradeoffs there are, and his experiences working with it
:

Very cool! Off the top of my head, here’s a list of the main points:

Implications behind changing height:

- Memory Implications: Due to the way chunks are architected internally, the only relatively-easy way of increasing level height is to double it. As a result, memory usage can spiral out of control very quickly when increasing the number of bits available to the Y axis. A somewhat short-sighted view would be to point out that this is wholly manageable in SSP, but pragmatically, SMP is already a hornet’s nest when it comes to RAM usage, and the only way to increase the level height would be to neatly double the memory footprint. Ouch!

- CPU Implications: Chunk terrain generation occurs in pieces on the X/Z plane, but expects the chunk to be fully populated along the Y axis, from bedrock to sky. To be fair, much of this can be mitigated by the fact that any terrain above a certain cutoff can be assumed to be completely air, and any terrain below a certain cutoff can be assumed to be completely stone, thus eliminating the need for temperature / humidity / biome calculations far down in the level or high up in the level. Nonetheless, it’s still a cache-thrashing memory-fill operation. Worse still, due to the fact that subterranean features are populated per-chunk, to maintain a consistent distribution of ore you would need to double the number of calls made to any given feature generator as well for each doubling of the Y axis. While this is relatively cheap for things like ore, it’s eclipsed by the idea that cave generation would need to occur along the entire Y axis, and being a recursive function, this has the potential to get very costly very quickly.

- Storage Implications: Anything stored in memory needs to be serialized to disk and read back from disk. Given the fact that in SSP, the number-one performance killer - even on my beastly computer - is disk I/O, it would be a highly questionable idea to double the amount of data that needs to be written out to disk. I’m not completely sure if chunks are gzipped before being written to disk, or if that only occurs to chunks when transmitted over the network, but if they are, this simply robs from Peter to pay Paul - it mitigates the disk I/O issue while increasing the enormity of the CPU issue.

- Network Implications: On SMP, Chunks need to be sent to many more people many times more often than in SSP. It can be taken for granted, from a client’s perspective, just how much data needs to be shoved around by the server, and although network packets are gzipped, it’s still an additional networking load, and still an additional CPU load as well.

Regarding changing the level height, it was “easy” to the extent that it took me around 4 hours yesterday morning to do it, but only because I’ve been poking around the engine internals since January and have been mentally keeping track of all of the assumptions in the code on exactly that topic. From top to bottom:

- Search through the codebase for « 11 and « 7, replace with « 12 and « 8 as necessary.
- Search through the codebase for 128, this will hit the majority of places that assume the map height as being 128, such as tile height checks.
- When changing the above locations, save yourself a recompile and make sure to change any variables from bytes to shorts or ints if you’re increasing them past 128. Being a C++ engineer, I keep forgetting that everything is implied as signed in Java.
- Search through the codebase for 127, this will hit the remainder of places that assume the map height as being 128.
- Search through the codebase for 64 and 63, this will hit the places that assume sea level is at 64, as well as Iron’s ore generator height cutoff. Personally, I dialed sea level up to 96 from 64, rather than fully double it up to 128, in order to have 32 additional tiles’ worth of water height, but have an entire 96 additional tiles’ worth of land height.
- Fix up the level feature generators for Redstone, diamond, gold et al.
- Visually grep through all of the level feature generator classes, doubling the RNG baseline and spread for each one.
- Change a few instances of 32768 to 65536 to accommodate 16*256*16 rather than 16*128*16.
- I’m not sure how much of this is a result of JAD and how much of it is actual code, but there are a few instances of “char whatever = ‘\200’;” in the MCP codebase, change it to a short or int containing 256 instead of 128.

I have to say that the game was *remarkably* performant with the Y height pushed up to 256. I imagine 512 might not be too bad on my beast of a machine, either, though 1024 would be pushing it. That said, one of my short-term “just for fun” goals is to see if I can’t get the Nether to populate from 0-127, the main world from 128-255, your Sky dimension from 256-383, and then that one group of modders’ new dimension, the Aether, from 384-511. That would be epic.

Additionally, there’s a mod that some guy made that re-works chunks to be 16x16x16 (it appears), but I’m rather nonplused by it. The bug list is as long as my arm, and it doesn’t actually rescale any of the terrain-generation features, so you don’t get neat things like this: http://moogle-tech.com/bce/gorge.png

As a result, I’m in the process of just trying to re-do what he did on my own. I’m filling all chunks above Y=256 entirely with air, filling all chunks below 0 with stone, manually invoking the cave generator, and theoretically things should just work. In principle, theory is a flimsy thing to go on, and to that end I’ve been chasing down bugs for the past 4-5 hours. At present I’m able to get in-game, but the chunks are horribly mis-arranged, so I suspect I’ve missed an important hashing function somewhere, since that would also explain why it’s spitting out reams of “Wrong location!” exceptions that it’s spitting out whenever it tries to spawn animals - the level provider is providing the wrong chunk.

<snip>

Cheers,
- R

posted 20 hours ago
Really though this got me the most excited,
That said, one of my short-term “just for fun” goals is to see if I can’t get the Nether to populate from 0-127, the main world from 128-255, your Sky dimension from 256-383, and then that one group of modders’ new dimension, the Aether, from 384-511. That would be epic
That is a world that is four times higher then now. 0-511


And this should make Wokka cry,
Implications behind changing height:

- Memory Implications: Due to the way chunks are architected internally, the only relatively-easy way of increasing level height is to double it. As a result, memory usage can spiral out of control very quickly when increasing the number of bits available to the Y axis. A somewhat short-sighted view would be to point out that this is wholly manageable in SSP, but pragmatically, SMP is already a hornet’s nest when it comes to RAM usage, and the only way to increase the level height would be to neatly double the memory footprint. Ouch!
Also I really feel like chicken, do you?
18chicken.png
You do not have the required permissions to view the files attached to this post.
Image

The Building of The Imperial City
| The Blackadder Booze Fund

We're in the stickiest situation since Sticky the Stick Insect got stuck on a sticky bun.
-Captain Edmund Blackadder.

User avatar
Pinmissile
Retired
Posts: 1100
Joined: 27 Dec 2010, 05:39
Location: Sweden, Stockholm

Re: Taller, Slower, Larger!!

Post by Pinmissile » 20 Jul 2011, 02:51

Delicious.
Image
Image

User avatar
aflycon
Retired
Posts: 2582
Joined: 23 Jan 2011, 18:26

Re: Taller, Slower, Larger!!

Post by aflycon » 20 Jul 2011, 03:41

> go to future shift
> find nice floating island using jumpass
> island is at 128
> do some terraforming
> island is at 120
> still can't build anything tall
> keep terraforming
> island gone

Image

In other words, thank you, Notch.

User avatar
xidontcarex
Posts: 243
Joined: 15 Jul 2011, 18:48

Re: Taller, Slower, Larger!!

Post by xidontcarex » 20 Jul 2011, 04:34

im excited,that means even more crazy supertall skyscrapers, i would totally make a ladder to 511 and then jump to 0 XP
Image

User avatar
michaeld20
Posts: 810
Joined: 31 Dec 2010, 19:39
Location: Central New Jersey
Contact:

Re: Taller, Slower, Larger!!

Post by michaeld20 » 20 Jul 2011, 04:43

Now we need ICE PICKS!!
"Some people in this world, they think their invincible... well thats just not true... beacause if you make just ONE mistake it could all end in a matter of seconds and then really how invincible are you?"- Myself
Image
Image

User avatar
Iron_Fang
Retired
Posts: 2415
Joined: 31 Mar 2011, 12:11
Location: The Aett, Fenris

Re: Taller, Slower, Larger!!

Post by Iron_Fang » 20 Jul 2011, 04:44

what about the airships from blue xephos's yogbox they sound cool
Image
Image

User avatar
Hytro
Retired
Posts: 1150
Joined: 17 Jan 2011, 18:49
Location: Under Zins bed

Re: Taller, Slower, Larger!!

Post by Hytro » 20 Jul 2011, 04:46

ooooo, with this I can finaly make my super nether tower design :o
Made the design, then to realise that mc does not have the hight I need... so it was filed under the Secret Stuff folder... and I can make a really bad ass nether world to...
Iya AyemMeht YahklemOhtYoodtRoht DothAyemEkemDothRothIyaCess LyrOthRothDoth
Iya WebIyaLyrLyr CessOhtNethSethYoodtMehtEkem YahkemOthYoodtRoth SethOhtYoodtLyr

User avatar
Skunk_Giant
Retired
Posts: 2619
Joined: 05 Nov 2010, 23:14

Re: Taller, Slower, Larger!!

Post by Skunk_Giant » 20 Jul 2011, 05:57

:O AWESOME!
Oh hey, I have a signature now! 26/07/11


Image
Image
Image
haxxorzd00d wrote:Keep talking, Skunk. Everybody likes you and you're stunningly handsome.

User avatar
vallorn
Posts: 8839
Joined: 13 Nov 2010, 10:45

Re: Taller, Slower, Larger!!

Post by vallorn » 20 Jul 2011, 06:35

wait... wouldnt that mean we could have IC not in a crater and have plenty of space under it for dungeons and stuff? :D
Lord_Mountbatten wrote:I didn't quite hear you over the sound of my eyebrow shooting into the sky.
Image
OI YOU!
YES YOU!
WE HAVE A STEAM COMMUNITY GROUP!
JOIN US AND ADD PEOPLE FOR FUN TIMES!

CUT: Baldrick

User avatar
Hytro
Retired
Posts: 1150
Joined: 17 Jan 2011, 18:49
Location: Under Zins bed

Re: Taller, Slower, Larger!!

Post by Hytro » 20 Jul 2011, 07:49

O_O we could make the sewers (NO IDEA HOW TO SPELL IT)
Iya AyemMeht YahklemOhtYoodtRoht DothAyemEkemDothRothIyaCess LyrOthRothDoth
Iya WebIyaLyrLyr CessOhtNethSethYoodtMehtEkem YahkemOthYoodtRoth SethOhtYoodtLyr

User avatar
Aenir_bEPU
Nyan Master
Posts: 1237
Joined: 14 Jun 2011, 20:24
Location: Massachusetts

Re: Taller, Slower, Larger!!

Post by Aenir_bEPU » 20 Jul 2011, 08:15

Hytro wrote:O_O we could make the sewers (NO IDEA HOW TO SPELL IT)
You spelled sewers correctly.
Image

User avatar
Hytro
Retired
Posts: 1150
Joined: 17 Jan 2011, 18:49
Location: Under Zins bed

Re: Taller, Slower, Larger!!

Post by Hytro » 20 Jul 2011, 08:30

Aenir_bEPU wrote:
Hytro wrote:O_O we could make the sewers (NO IDEA HOW TO SPELL IT)
You spelled sewers correctly.
Yey, I'm so awesome :D
Iya AyemMeht YahklemOhtYoodtRoht DothAyemEkemDothRothIyaCess LyrOthRothDoth
Iya WebIyaLyrLyr CessOhtNethSethYoodtMehtEkem YahkemOthYoodtRoth SethOhtYoodtLyr

User avatar
random980
Posts: 1852
Joined: 23 Feb 2011, 03:32
Location: Australia, Vic

Re: Taller, Slower, Larger!!

Post by random980 » 20 Jul 2011, 10:17

I could raise the height of solar city so its ACTUALLY in the sky!! AND I WOULD STILL BE ABLE TO BUILD SKYSCRAPERS ON IT! :D :D :D :D :D :D
http://www.youtube.com/watch?v=XfR9iY5y94s
Eekum Bokum
Sti_Jo_Lew wrote:Random just won the thread. We should all just give up.

User avatar
aflycon
Retired
Posts: 2582
Joined: 23 Jan 2011, 18:26

Re: Taller, Slower, Larger!!

Post by aflycon » 20 Jul 2011, 10:28

vallorn wrote:wait... wouldnt that mean we could have IC not in a crater and have plenty of space under it for dungeons and stuff? :D
We could copypasta it up pretty easily with Regions, but that would break Blacks' rule of "no mod tools".

Still, that'd be really damn cool. :o

User avatar
Cho
Retired
Posts: 1691
Joined: 28 Oct 2010, 15:39
Location: Eastern Seaboard, USA

Re: Taller, Slower, Larger!!

Post by Cho » 20 Jul 2011, 10:37

Despite the 'coolness' of it - did no one read the section where Notch basically admits it's an smp server killer?? If he does make this change, I hope to heck that it's optional to turn it off; because it will kill us. We're already shrinking the border on Terra because it's too large. And he's talking about quadrupling the size with those proposed changes.
Before all else, be armed. -Machiavelli

User avatar
Wildwill002
Posts: 3162
Joined: 15 Dec 2010, 12:42
Location: Blackpool

Re: Taller, Slower, Larger!!

Post by Wildwill002 » 20 Jul 2011, 10:44

It'll kill us not only on memory but also on exclusives. If the skyworld is accessible to anyone with enough dirt for example then anybody can walk in and it would no longer be exclusive to vips
Image
Spoiler! :

Code: Select all

            ,             ,
           / '.         .' \
          /    '.     .'    \
           '-._  '. .'  _.-'
               '-. ; .-'
              _.-;(_);-._
          _.-'   .'_'.   '-._
          \    .'/[+]\'.    /
           \_.' /     \ '._/
                |  _  |
                | [_] |
               /III III\
               `"""""""`

User avatar
Lord_Mountbatten
The Future
Posts: 5963
Joined: 28 Oct 2010, 15:14
Location: CreepsUTrust Headquarters

Re: Taller, Slower, Larger!!

Post by Lord_Mountbatten » 20 Jul 2011, 10:47

You honestly think Skyworld can be accessed that way?
Image

User avatar
vallorn
Posts: 8839
Joined: 13 Nov 2010, 10:45

Re: Taller, Slower, Larger!!

Post by vallorn » 20 Jul 2011, 10:48

aflycon wrote:
vallorn wrote:wait... wouldnt that mean we could have IC not in a crater and have plenty of space under it for dungeons and stuff? :D
We could copypasta it up pretty easily with Regions, but that would break Blacks' rule of "no mod tools".

Still, that'd be really damn cool. :o
your already shoving it into its own world ;)
Lord_Mountbatten wrote:I didn't quite hear you over the sound of my eyebrow shooting into the sky.
Image
OI YOU!
YES YOU!
WE HAVE A STEAM COMMUNITY GROUP!
JOIN US AND ADD PEOPLE FOR FUN TIMES!

CUT: Baldrick

User avatar
aflycon
Retired
Posts: 2582
Joined: 23 Jan 2011, 18:26

Re: Taller, Slower, Larger!!

Post by aflycon » 20 Jul 2011, 11:31

Lord_Mountbatten wrote:You honestly think Skyworld can be accessed that way?
That is what's being implied by Notch. However, ours is different.

User avatar
Tulonsae
Plugin Queen
Posts: 3886
Joined: 19 May 2011, 17:35

Re: Taller, Slower, Larger!!

Post by Tulonsae » 20 Jul 2011, 11:53

I noticed that it would kill our server. I also noticed that if Ryan was working with Notch's source code (and not something disassembled), that Notch has some really horrible coding habits.
--Tulonsae

donkypoink
Posts: 201
Joined: 12 Feb 2011, 10:36
Location: The Netherlands

Re: Taller, Slower, Larger!!

Post by donkypoink » 20 Jul 2011, 12:12

oehh, does this mean my crippled cathedrals towers wont be crippled anymore :o

User avatar
Sti_Jo_Lew
Posts: 3251
Joined: 19 Dec 2010, 12:46
Location: Nevada

Re: Taller, Slower, Larger!!

Post by Sti_Jo_Lew » 20 Jul 2011, 15:47

It would be nice to have a larger hieght limit, then I could expand my project upwards so it has more than 5 floors.
Image
SMWasder: BEGONE FOUL BEATS, FOR I AM THE DJ OF THE APOCALYPSE

User avatar
Blackadder51
Retired
Posts: 2274
Joined: 29 Oct 2010, 11:22
Location: Australia

Re: Taller, Slower, Larger!!

Post by Blackadder51 » 20 Jul 2011, 16:59

Uh yeah cho thats why i bolded it
Image

The Building of The Imperial City
| The Blackadder Booze Fund

We're in the stickiest situation since Sticky the Stick Insect got stuck on a sticky bun.
-Captain Edmund Blackadder.

User avatar
Lathania
Retired
Posts: 935
Joined: 12 Nov 2010, 13:31

Re: Taller, Slower, Larger!!

Post by Lathania » 20 Jul 2011, 20:27

Cho wrote:Despite the 'coolness' of it - did no one read the section where Notch basically admits it's an smp server killer?? If he does make this change, I hope to heck that it's optional to turn it off; because it will kill us. We're already shrinking the border on Terra because it's too large. And he's talking about quadrupling the size with those proposed changes.
128 will remain as default, it says.
Image

User avatar
nart_21086
Retired
Posts: 365
Joined: 09 Feb 2011, 23:50
Location: Pandas

Re: Taller, Slower, Larger!!

Post by nart_21086 » 21 Jul 2011, 02:49

just wondering, was that first image enhanced in any way, or will notch program tall structures to 'bend' like that?
Image
I Serve Escapia

User avatar
derigin
Retired
Posts: 1189
Joined: 27 Feb 2011, 03:22

Re: Taller, Slower, Larger!!

Post by derigin » 21 Jul 2011, 05:14

I'm going to put this out there, and beat the dead horse, but...

... before notch goes ahead and does this, perhaps he ought to get someone to fix the problems associated with running MC on Java, first.

User avatar
mydrox
Posts: 808
Joined: 30 Nov 2010, 11:20
Location: Somewhere in Germany

Re: Taller, Slower, Larger!!

Post by mydrox » 21 Jul 2011, 06:13

derigin wrote:... before notch goes ahead and does this, perhaps he ought to get someone to fix the problems associated with running MC on Java, first.
... before notch goes ahead and does this, perhaps he ought to get someone to fix the problems associated with running MC, first.
Image

User avatar
vallorn
Posts: 8839
Joined: 13 Nov 2010, 10:45

Re: Taller, Slower, Larger!!

Post by vallorn » 21 Jul 2011, 07:56

mydrox wrote:
derigin wrote:... before notch goes ahead and does this, perhaps he ought to get someone to fix the problems associated with running MC on Java, first.
... before notch goes ahead and does this, perhaps he ought to get someone to fix the problems associated with running MC, first.
... before notch goes ahead and does this, perhaps he ought to get someone to fix the problems associated with running first.
Lord_Mountbatten wrote:I didn't quite hear you over the sound of my eyebrow shooting into the sky.
Image
OI YOU!
YES YOU!
WE HAVE A STEAM COMMUNITY GROUP!
JOIN US AND ADD PEOPLE FOR FUN TIMES!

CUT: Baldrick

User avatar
Notch
Posts: 2
Joined: 21 Jul 2011, 08:58

Re: Taller, Slower, Larger!!

Post by Notch » 21 Jul 2011, 09:06

Problem?

User avatar
Lord_Mountbatten
The Future
Posts: 5963
Joined: 28 Oct 2010, 15:14
Location: CreepsUTrust Headquarters

Re: Taller, Slower, Larger!!

Post by Lord_Mountbatten » 21 Jul 2011, 09:08

You can email the user Notch at thefakenotch@hotmail.com apparently.

...huh.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 99 guests