Attention those with 'flat' or 'notrees' mgv6 worlds

Locked
User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Attention those with 'flat' or 'notrees' mgv6 worlds

by paramat » Post

Related to viewtopic.php?f=18&t=14954

Months ago (10th and 15th November 2015) i moved the 'trees' and 'flat' flags from 'mg flags' to 'mgv6 spflags'.
The flags are a little messy at the moment because to maintain backwards compatibility i could not remove those two flags from 'mg flags', although they are no longer documented as being there. So currently in a world's 'map_meta.txt' file those two flags appear in both 'mg flags' and 'mgv6 spflags'.

Hmmmm is making changes to mapgen settings, and at 0.4.15 these two flags will hopefully be removed from 'mg flags' to cleanup this mess. So it is a good idea, although not essential yet, to set these flags correctly in 'mgv6 spflags' to prepare for future changes.
Mgv6 worlds created after 15 November 2015 will not need this edit, as long as you used 'mgv6 spflags' for 'trees' and/or 'flat', if unsure you should check.

Edit 'worlds/worldname/map_meta.txt' in a text editor.
Find the two lines 'mg_flags = ' and 'mgv6_spflags = '.
Check the 'trees' and 'flat' flags in each line.
Set them to the desired state ('trees', 'notrees', 'flat', 'noflat') in 'mgv6_spflags = '
and remove them from 'mg_flags = '.

The reason this only affects those using 'notrees' or 'flat' flags is that the new defaults in 'mgv6 spflags' are 'noflat, trees', so those will already be correctly set.
Last edited by paramat on Thu Sep 29, 2016 18:13, edited 1 time in total.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Attention those with 'flat' or 'notrees' mgv6 worlds

by paramat » Post

A second warning on this, i will now be submitting a PR to remove 'trees' and 'flat' flags completely from 'mg flags'.
You should now follow the advice in the first post to avoid broken worlds.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Attention those with 'flat' or 'notrees' mgv6 worlds

by paramat » Post

Third warning, PR is now merged into 0.4.14dev.
If you have mgv6 worlds using 'flat' or 'notrees' flags please follow the advice in the first post.

User avatar
addi
Member
Posts: 666
Joined: Thu Sep 20, 2012 03:16
GitHub: adrido
Location: Black-Forest, Germany

Re: Attention those with 'flat' or 'notrees' mgv6 worlds

by addi » Post

Thanks for your warnings, but Im still not sure what to change now.

I have the following configuration in minetest.conf:

Code: Select all

mg_flags = trees, caves, nodungeons, noflat, light
mg_name = v6
mgv6_freq_beach = 0.15
mgv6_freq_desert = 0.45
mgv6_spflags = jungles, biomeblend, mudflow, nosnowbiomes
...
and in map_meta.txt :

Code: Select all

...
mg_flags = caves, nodungeons, light, decorations
mg_name = v6
mgv6_freq_beach = 0.15
mgv6_freq_desert = 0.45
...
mgv6_spflags = jungles, biomeblend, mudflow, nosnowbiomes, noflat, trees
...
Its a really old map that have migrated from Minetest 0.4.2-RC1 to 0.4.14-dev (latest) over the years. So I just want to get sure before Im doing something wrong.
Thanks.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Attention those with 'flat' or 'notrees' mgv6 worlds

by paramat » Post

Only the map_meta.txt matters, existing worlds are not affected by .conf.

Since you have 'trees' and 'flat' flags set in mgv6_spflags and not present in mg_flags you don't have to change anything. My advice to set those flags in both places was a little confusing.

User avatar
addi
Member
Posts: 666
Joined: Thu Sep 20, 2012 03:16
GitHub: adrido
Location: Black-Forest, Germany

Re: Attention those with 'flat' or 'notrees' mgv6 worlds

by addi » Post

Thanks for your help.

Locked

Who is online

Users browsing this forum: No registered users and 9 guests