Page 2 of 2

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Nov 04, 2014 03:08
by kidmondo
Me again :P would you be able to make the flat map have city roads (like roads set already so you could just build a city?)

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Nov 04, 2014 10:21
by RHR
paramat already created a mod that adds city streets:
viewtopic.php?f=11&t=9296

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Nov 04, 2014 18:35
by Krock
You also can try Sokomines mg_villages mod.
It adds some nice towns to your world.

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Jan 20, 2015 13:49
by superschizo
What are the dimensions of this world? I seem to have reached the end of it, so that one without fly privileges enabled would fall off the edge of the world.

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Jan 20, 2015 15:20
by srifqi
superschizo wrote:What are the dimensions of this world?
There are no dimensions in Minetest.
superschizo wrote:I seem to have reached the end of it, so that one without fly privileges enabled would fall off the edge of the world.
No, you can't. The Minetest's collision algorithm forbid that. You can't pass through the edge.

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Jan 20, 2015 15:36
by superschizo
"What are the dimensions of this world?"

There are no dimensions in Minetest.


"I seem to have reached the end of it, so that one without fly privileges enabled would fall off the edge of the world."

No, you can't. The Minetest's collision algorithm forbid that. You can't pass through the edge.

my world must be corrupted then, because my map just drops off and one could fly off and down the edge. how do i fix it?

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Jan 20, 2015 18:58
by Krock
superschizo wrote:my world must be corrupted then, because my map just drops off and one could fly off and down the edge. how do i fix it?
Thanks for the report. I fixed that problem and added a new chat command:

Code: Select all

/regenerate (<chunk size>*8)
It requires server privileges and can regenerate/reset areas of up to 64*64*64 nodes.
I updated the links in the first post, it can be found on GitHub now.

Re: [Mod] flatgen [100% flat maps]

Posted: Tue Jan 20, 2015 22:02
by superschizo
Thank you Krock for the quick response in posting a fix. Does this work with minetest 0.4.10? I'm using 0.4.10 from the ubuntu software center on ubuntu 14.10, since there is no stable 0.4.11 for download for my OS yet that I'm aware of (I just checked as of 20 Jan 2015). Maybe I am typing the command wrong? /regenerate (<8>*8) I've also tried various variations like "/regenerate 8" "/regenerate (<8>*8)^3" "regenerate (8*8)" and so on...
Image

Re: [Mod] flatgen [100% flat maps]

Posted: Wed Jan 21, 2015 19:31
by Krock

Re: [Mod] flatgen [100% flat maps]

Posted: Thu Jan 22, 2015 12:22
by superschizo
Image

Thank you for the fix. This is how it turned out on the corrupted map, with the dirt sticking out being the result of the command {/regenerate (100*8)}. It would probably be better for me to use worldedit to paste the stadium into another world, right?

I suspect that the world got corrupted when I used the "fixlight" command from worldedit, minetest had trouble with that and I had to close it.

Re: [Mod] flatgen [100% flat maps]

Posted: Thu Jan 22, 2015 17:46
by Krock
superschizo wrote:<snip>
Yes, I think saving the building is a better soulation than using /regenerate <size> in all broken areas.
Fixlight was not the problem, a Minetest engine change broke this mod.

Re: [Mod] flatgen [100% flat maps]

Posted: Mon Mar 16, 2015 06:09
by huang11
why i cant download

Re: [Mod] flatgen [100% flat maps]

Posted: Fri Mar 20, 2015 10:01
by Topywo
huang11 wrote:why i cant download
Go to post 1. Press: Browse code (to go to GitHub). Press: Download ZIP

Re: [Mod] flatgen [100% flat maps]

Posted: Thu Jan 26, 2017 15:42
by senzo53
Hi guys, i would like to know how to use this mod. I already install it on my "mods folder" on minetest. But i don't understand how i do change my world into a flatland full of grass !

Anyone ? thank you ! :)

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Fri Mar 31, 2017 23:13
by Sokomine
senzo53 wrote: Hi guys, i would like to know how to use this mod. I already install it on my "mods folder" on minetest. But i don't understand how i do change my world into a flatland full of grass !
You don't need a mod anymore with more recent versions of Minetest. Just choose the mapgen "flat" when creating a new world.

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Mon Jan 22, 2018 20:42
by Warrior_4_Christ
I loaded the mod. Why are there black lines all over the place?

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Mon Jan 22, 2018 22:16
by Chibi ghost
this mod is very very old it's not a good idea to use it
if you delete your world and create a new one look in the magpen you will find a flat magpen amongst them load that instead okay

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Mon Jan 22, 2018 22:29
by Warrior_4_Christ
Chibi ghost wrote:this mod is very very old it's not a good idea to use it
if you delete your world and create a new one look in the magpen you will find a flat magpen amongst them load that instead okay
Yeah I tried using that. The only difference between the "flat" mapgen and other mapgens are the profound abundance in trees, and the lack of hills.

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sat Jan 27, 2018 05:59
by Sokomine
Warrior_4_Christ wrote: Yeah I tried using that. The only difference between the "flat" mapgen and other mapgens are the profound abundance in trees, and the lack of hills.
The flat mapgen only makes the land flat. If you want no trees, no caves, no dungeons etc., then you need to set the mg_flags variable.

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sat Jan 27, 2018 06:12
by TumeniNodes
Warrior_4_Christ wrote:
Chibi ghost wrote:this mod is very very old it's not a good idea to use it
if you delete your world and create a new one look in the magpen you will find a flat magpen amongst them load that instead okay
Yeah I tried using that. The only difference between the "flat" mapgen and other mapgens are the profound abundance in trees, and the lack of hills.
when you use flatgen, you can add the flags for hills and/or lakes

1- create your new world, selecting flat
2- go to the settings tab
3- select server/single player / mapgen / Advanced / Mapgen Flat
4- when you click on Mapgen Flat you will see Mapgen flat specific flags... (click on it)
5- you will see a field appear, click the "edit" button and type lakes,hills
6- click SAVE

Go back to settings page, then select "local game"

start your world and enjoy.

later, there are other ways you can tweak the map to suit your tastes but, start with this first, and then start looking into info related to mapgen.
A good place to ask questions is viewtopic.php?f=47&t=15272

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sun Nov 11, 2018 09:43
by bosapara
Any idea how to fix random shadows?

Its old mod topic, btw may be exist better simple mapgen mod for flat world?

Image

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sun Nov 11, 2018 12:27
by Krock
bosapara wrote:Any idea how to fix random shadows?
In older releases shadows occurred when the "light" mapgen param was set. Now it seems to be the opposite. I fixed the bug and also made use of the "flat" mapgen in case the mod is used for a new world.

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sun Nov 11, 2018 17:20
by bosapara
Krock wrote:
bosapara wrote:Any idea how to fix random shadows?
In older releases shadows occurred when the "light" mapgen param was set. Now it seems to be the opposite. I fixed the bug and also made use of the "flat" mapgen in case the mod is used for a new world.
thanx you very much for updated mod, now shadows works good

How to set settings of limit for 'y'? Im used this y_min = -30, for init.lua, but doesnt work, this (bellow) for config doesnt works too

flatgen.depth = 2
flatgen.limit_y = true
___________________

settings for layers doesnt works too (or i do something wrong)

local layers = {
{ "default:dirt_with_grass", 1 },
{ "default:dirt", 3 },
{ "default:stone", 35 }, -- nil = no limit
{ "default:obsidian", 2 }
-- Fake ignore to generate whenever you want: { "ignore_me", 1 }
}

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sun Nov 11, 2018 19:05
by Krock
bosapara wrote:settings for layers doesnt works too (or i do something wrong)
1) Open "init.lua"
2) Change "if file then" to "if file or true then" to make use of the settings file
3) Join the world, leave it again
4) Edit "flatgen_terrain.txt" inside the world directory to the wanted layers
5) Re-join the world and occasionally run "/deleteblocks here" to regenerate the map

The new flatgen code yet does not allow terrain customization.

Re: [Mod] flatgen: 100% flat maps [flatgen]

Posted: Sun Nov 11, 2018 19:23
by bosapara
Krock wrote:
bosapara wrote:settings for layers doesnt works too (or i do something wrong)
1) Open "init.lua"
2) Change "if file then" to "if file or true then" to make use of the settings file
3) Join the world, leave it again
4) Edit "flatgen_terrain.txt" inside the world directory to the wanted layers
5) Re-join the world and occasionally run "/deleteblocks here" to regenerate the map

The new flatgen code yet does not allow terrain customization.

all works perfect, thanx you again

would to tell about good function '/regenerate', very useful