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

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

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

by Krock » Wed Apr 02, 2014 12:47

Flat map generator


Deprecated, use the mapgen "flat" in the world creation dialog.

Image
This is how a flat map looks like.

Why? Well, it's for people which want to have a flat map for sure.

Since version 2, you can define the used nodes and create bedrock-like nodes at the bottom.

Define the used nodes: (init.lua)
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
-- Default, grass cover, dirt in between, stone under it
flatgen.cover   = "default:dirt_with_grass"
flatgen.under   = "default:dirt"
flatgen.ground   = "default:stone"

--[[ Templates:
- Sand everywhere
   flatgen.cover   = "default:sand"
   flatgen.under   = "default:sand"
   flatgen.ground   = "default:sand"
   
- Desert sand, sand, sandstone
   flatgen.cover   = "default:desert_sand"
   flatgen.under   = "default:sand"
   flatgen.ground   = "default:sandstone"

- Wool, wool, obsidian
   flatgen.cover   = "wool:white"
   flatgen.under   = "wool:white"
   flatgen.ground   = "default:obsidian"
]]


Other settings:
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
flatgen.cover_y      = 1      -- Y position of the cover node [1]
flatgen.depth      = 3      -- Depth of the "under" node [3]
flatgen.limit_y      = true   -- False = map generation stops at 100m under cover_y


License: WTFPL
Depends: none (Depends on the wanted terrain nodes)
Download: master.zip (GitHub), Browse code
Last edited by Krock on Sun Apr 02, 2017 12:51, edited 6 times in total.
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
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Wed Apr 02, 2014 13:56

Fantastico. this is perfect
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu Apr 03, 2014 08:50

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 = flat


What does your mod do compared to that?
 

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

by Krock » Thu Apr 03, 2014 10:17

Calinou wrote:
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 = flat


What does your mod do compared to that?

Using a mod for this is handier than editing world files or even the minetst.conf :)
Maybe it's faster than the builtin mapgen in flat-mode.
Also, this mod offers an unique setting of the dirt depth! Wow so amazing feature.
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>
 

jenova99sephiros
Member
 
Posts: 158
Joined: Sat Aug 03, 2013 15:16
In-game: Jenova

by jenova99sephiros » Thu Apr 03, 2014 10:37

This is easiest and better mod
I english google translator
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
IRC: kidmondo
In-game: kidmondo

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

by kidmondo » Tue Jun 24, 2014 07:22

I have searched so hard to find a flat mod
 

superschizo
Member
 
Posts: 109
Joined: Mon Aug 26, 2013 17:08

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

by superschizo » Tue Jul 15, 2014 06:55

Thank you. I tried messing with the mg flags already and was still getting lakes and trees. This mod created a perfectly flat world for me, although there are still flowers to remove.
 

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

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

by Krock » Tue Jul 15, 2014 09:19

superschizo wrote:Thank you. I tried messing with the mg flags already and was still getting lakes and trees. This mod created a perfectly flat world for me, although there are still flowers to remove.

Cool to see someone using this mod.

The "flowers" mod generates those flowers automatically and therefore it's not releated to this "mapgen".
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>
 

Daïmanu
Member
 
Posts: 12
Joined: Tue Feb 04, 2014 21:48

Re:

by Daïmanu » Tue Jul 15, 2014 21:30

Thanks for that mod, that was exactly what I am looking for!

Calinou wrote:
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 = flat

What does your mod do compared to that?


This flag makes the map flat, but doesn't deactivate biomes, so we can see some kind of "drawings" of stone, sand and dirt on the ground.

This mod makes a coherent ground of grass (or anything else like infinite water).
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Re:

by Calinou » Wed Jul 16, 2014 10:58

Daïmanu wrote:This flag makes the map flat, but doesn't deactivate biomes, so we can see some kind of "drawings" of stone, sand and dirt on the ground.

This mod makes a coherent ground of grass (or anything else like infinite water).


This is slightly better:
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 = flat, notrees, nocaves


But the upside of this mod is that it makes really flat maps, removing ores, springs an such, regardless of installed mods. So this mod does have an use, actually.
 

gunnercody
Member
 
Posts: 23
Joined: Sun Jul 20, 2014 18:26
In-game: gunnercody

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

by gunnercody » Wed Jul 23, 2014 22:39

Works great! I will be using this for my next titanic!
 

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

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

by Krock » Thu Jul 24, 2014 09:56

gunnercody wrote:Works great! I will be using this for my next titanic!

Stranded titanic? Uh...
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
srifqi
Member
 
Posts: 508
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi

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

by srifqi » Thu Jul 24, 2014 15:47

Krock wrote:The "flowers" mod generates those flowers automatically and therefore it's not releated to this "mapgen".


This mapgen.lua?
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Jul 25, 2014 09:33

Yes
 

mojuave
Member
 
Posts: 51
Joined: Wed Aug 13, 2014 16:43

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

by mojuave » Thu Sep 18, 2014 00:31

I am looking for something similar but not quite as flat lol, I am trying to build a server and want a more flat map(vs the current where you need a lot of digging to semi flat to build on a large area) maybe something where a node can be placed where the node is will level the land straight in all horizontal direction to same level as where node is placed but also configurable to distance IE 0-??? node space away saying I chose 10 then say it levels 10 blocks in all 4 directions to give a perimeter of 21x21 block area.

Ok that was a lot to say but do you know if that exists or maybe you know how to build it
 

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

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

by Krock » Thu Sep 18, 2014 14:52

mojuave wrote:<snip>

Sorry but I can't really understand what you wish in this mod.
I could add a perlin noise to add tiny hills if you want this.
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>
 

Amaz
Member
 
Posts: 328
Joined: Wed May 08, 2013 08:26
GitHub: Amaz1
IRC: Amaz
In-game: Amaz

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

by Amaz » Thu Sep 18, 2014 15:42

If I understand correctly, he wants a map where there are fairly large flat space.

Paramat's flatten mod might work best for want you want: viewtopic.php?f=11&t=7701
 

mojuave
Member
 
Posts: 51
Joined: Wed Aug 13, 2014 16:43

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

by mojuave » Thu Sep 18, 2014 21:51

Krock wrote:
mojuave wrote:<snip>

Sorry but I can't really understand what you wish in this mod.
I could add a perlin noise to add tiny hills if you want this.



no not tiny hills more like realistic world still have mountain ranges but have large areas for towns and cities to be built as well. This game has way too many bumps and holes you either are sitting at a cliff edge or falling in a hole. Amaz is right as far as what I am basically looking for but I don't know how that mod works, where its at or how to control it.


Basically look at it like the HV Quarry in technic. You place a node and set a parameter and lets say that is set at 8 so then the HV Quarry digs 8 blocks left 8 blocks right and whatever down. Now say you have a flat creation node and where it is placed and parameter is set will "dig" straight horizontally and upwards. So someone places this node and sets parameter of say 8 then this digs 8 blocks left, right, infront and behind the node and vertically(like digging a reversed mine) so now I have a flat walk-able area 17x17x17x17(17 because the "node" is in the center) and clear to the sky. Even a special touch of selecting the foundation like in the TBM, so now all that flat land can be cobble, sand, dirt, ect.....

So ideally say I wanted to create a beach resort mock up area(which I have never seen a large enough area near water to create. I would place this node at the waters edge and say set it to 20 and set "sand" as my foundation. BAMM I have a large sandy beach 41 blocks wide and 21 blocks inland where nothing happens to water because it is already at node level. You could place this out in the water to create shallow inland beach.

So after reading my reply in reality I guess im asking for the HV quarry to work upside down with a larger programmable area than just 8 maybe to 50 IDK and having ability to lay down a desired medium as the ground like TBM so merging the Quarry and TBM then making them work upside down I guess is what I am asking


Edit: uniflat is for linux and I have windows so that won't work for me
 

mojuave
Member
 
Posts: 51
Joined: Wed Aug 13, 2014 16:43

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

by mojuave » Fri Sep 19, 2014 06:06

ok so after i wrote my last post I was tired so took a nap and after I woke I realized I answered my own question so I studied the quarry file and saw where I needed to change numbers. So now my quarry is digging up not down and I widened the range to 50 and set it at 40 and its doing what I wanted to do. Only bad thing is i can only do this to build but will need to set it back to play normal with quarry.

But hey its still a great idea to create a machine to do this that would also be server friendly as far as not digging "owned" and setting limits on range either to add to or credit technic mod. I think people would love this to level land for builds, farming or just aesthetics for landscaping around home

still think laying down a certain material as the base would be fantastic so at the end you dont need to do that manually

Thank you for your time
 

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

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

by Krock » Fri Sep 19, 2014 19:36

mojuave wrote:I think people would love this to level land for builds, farming or just aesthetics for landscaping around home

still think laying down a certain material as the base would be fantastic so at the end you dont need to do that manually

I can not help you with this flatgen mod, but there are possibilities to make the area more flat.

1st soulation: With mapgen v6, you can do it with some changed values:
minetest_folder/worlds/your_world/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
# Perlin noise attributes for different map generation parameters
# Offset, scale, spread factor, seed offset, number of octaves, persistence
mgv6_np_terrain_base = -4, 80, (250, 250, 250), 82341, 5, 0.6
mgv6_np_terrain_higher = 50, 16, (500, 500, 500), 85039, 5, 0.6

Experimental.

2nd soulation: Using WorldEdit to make it flat
3rd soulation: Use an other mapgen which contains +/- flat areas. (this one?)

Sorry if I couldn't help you completely. I didn't understand everything.
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
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
IRC: kidmondo
In-game: kidmondo

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

by kidmondo » Fri Sep 19, 2014 21:30

Could you make a clone of this mod, but have lakes and rivers... but not as big as the normal game ones?
 

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

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

by Krock » Sat Sep 20, 2014 07:55

kidmondo wrote:Could you make a clone of this mod, but have lakes and rivers... but not as big as the normal game ones?

Image
https://github.com/SmallJoker/flatgen/tree/river
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>
 

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

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

by paramat » Sat Sep 20, 2014 08:41

mojuave wrote:I am looking for something similar but not quite as flat lol, I am trying to build a server and want a more flat map(vs the current where you need a lot of digging to semi flat to build on a large area) maybe something where a node can be placed where the node is will level the land straight in all horizontal direction to same level as where node is placed but also configurable to distance IE 0-??? node space away saying I chose 10 then say it levels 10 blocks in all 4 directions to give a perimeter of 21x21 block area.

This mapgen has chat commands that flatten or blend whole mapchunks (80x80) https://forum.minetest.net/viewtopic.php?f=9&t=10072
Very simple lua mapgen: trees, ores, fissures, flowers, grasses and no deserts (yet).
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
IRC: kidmondo
In-game: kidmondo

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

by kidmondo » Sat Sep 20, 2014 20:17

Krock wrote:
kidmondo wrote:Could you make a clone of this mod, but have lakes and rivers... but not as big as the normal game ones?

Image
https://github.com/SmallJoker/flatgen/tree/river


Wow, thanks just what I wanted, but how do I install this?
 

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

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

by Krock » Sat Sep 20, 2014 21:22

kidmondo wrote:Wow, thanks just what I wanted, but how do I install this?

Just download the zip file from github.

And install it like All other mods
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
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
IRC: kidmondo
In-game: kidmondo

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

by kidmondo » Tue Nov 04, 2014 03:08

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?)
 

User avatar
RHR
Member
 
Posts: 214
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

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

by RHR » Tue Nov 04, 2014 10:21

paramat already created a mod that adds city streets:
viewtopic.php?f=11&t=9296
 

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

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

by Krock » Tue Nov 04, 2014 18:35

You also can try Sokomines mg_villages mod.
It adds some nice towns to your world.
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>
 

superschizo
Member
 
Posts: 109
Joined: Mon Aug 26, 2013 17:08

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

by superschizo » Tue Jan 20, 2015 13:49

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.
 

User avatar
srifqi
Member
 
Posts: 508
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi

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

by srifqi » Tue Jan 20, 2015 15:20

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.
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 18 guests

cron