World size

User avatar
LouisDB
Member
 
Posts: 14
Joined: Wed Oct 12, 2016 16:23
GitHub: DBLouis

World size

by LouisDB » Wed Nov 16, 2016 18:12

Hi,

I was wondering why the world size is 62000? Why this number?
Is it possible to change it? Is it hardcoded or is there some kind of limit?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: World size

by Krock » Wed Nov 16, 2016 19:06

It comes from the fact that node positions are sent and handled as 16-bit numbers. This means we could have a world that's about 65500^3 nodes big. The world generator stops some kilometers earlier to prevent occasional bugs due to overflows etc.
This topic might be interesting for you: Infinite world size
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
LouisDB
Member
 
Posts: 14
Joined: Wed Oct 12, 2016 16:23
GitHub: DBLouis

Re: World size

by LouisDB » Thu Nov 17, 2016 11:48

I knew it was something like that but 62000 seems odd.
Thanks :)
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: World size

by Wuzzy » Thu Nov 17, 2016 12:37

The world is a cube of side length 61840. Coordinates go from −30912 to 30927 in any direction.

The side length is a multiple of 80, an important number in Minetest.

773 × 80 = 61840

80 is the side length of a Mapchunk. A Mapchunk is a cube of 80×80×80 blocks which is a piece of the world which is generated by the map generator at once. (80 in turn is a multiple of 16, and 16 is the side length of a MapBlock, a cube which can be loaded at once. This means 5×5×5 MapBlocks neatly fit into a Mapchunk. But back to topic.)
This explains why the world side length is a multiple of 80 but it doesn't explain where the 773 comes from, however. This seems like a fairly odd number.

Maybe you need to ask in the Minetest chatroom to find out more.

And yes, you can change the size of the world. But it is only possible to make it smaller.
Edit the advanced configuration setting “map_generation_limit”. Explanation:

# Where the map generator stops.
# Please note:
# - Limited to 31000 (setting above has no effect)
# - The map generator works in groups of 80x80x80 nodes (5x5x5 MapBlocks).
# - Those groups have an offset of -32, -32 nodes from the origin.
# - Only groups which are within the map_generation_limit are generated
# type: int min: 0 max: 31000


I do not recommend using this setting if you're not an experienced user. It it fairly odd to use.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
LouisDB
Member
 
Posts: 14
Joined: Wed Oct 12, 2016 16:23
GitHub: DBLouis

Re: World size

by LouisDB » Thu Nov 17, 2016 19:31

Somewhat related question :
When implementing a plot manager, is it better to align with MapChunk or MapBlock coordinates?
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: World size

by sfan5 » Thu Nov 17, 2016 20:05

MapChunks are only used during map generation and don't really matter.
If you absolutely want to align to something I suggest using MapBlocks.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Andrey01
Member
 
Posts: 431
Joined: Wed Oct 19, 2016 15:18
In-game: Andrey01

Re: World size

by Andrey01 » Sun Nov 20, 2016 16:47

LouisDB wrote:Hi,

I was wondering why the world size is 62000? Why this number?
Is it possible to change it? Is it hardcoded or is there some kind of limit?

I think what map size much more than you wrote.For example i longly dug under land and i dug possible 100000 blocks!
 

User avatar
firefox
Member
 
Posts: 1185
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox

Re: World size

by firefox » Sun Nov 20, 2016 17:49

Andrey01 wrote:
LouisDB wrote:Hi,

I was wondering why the world size is 62000? Why this number?
Is it possible to change it? Is it hardcoded or is there some kind of limit?

I think what map size much more than you wrote.For example i longly dug under land and i dug possible 100000 blocks!

press F5 to display debug info and see your coordinates. the middle number is depth.
at -31000 there should be an "invisible wall" with nothing below it, so you can see the sky.
the same applies the "edge of the world" on the surface.

maybe you went down to 10.000, not 100.000 :P
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 14 guests

cron