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

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

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

by paramat » Sat Jun 25, 2016 03:34

Related to https://forum.minetest.net/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.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

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

by paramat » Fri Jul 29, 2016 00:41

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.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

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

by paramat » Thu Aug 04, 2016 06:04

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: 605
Joined: Thu Sep 20, 2012 03:16

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

by addi » Thu Sep 29, 2016 13:18

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

I have the following configuration in minetest.conf:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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 :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

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

by paramat » Thu Sep 29, 2016 18:11

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: 605
Joined: Thu Sep 20, 2012 03:16

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

by addi » Fri Sep 30, 2016 09:14

Thanks for your help.
 


Return to Minetest News

Who is online

Users browsing this forum: No registered users and 10 guests

cron