[Mod] City grid, roads, paths mapgen [0.4.0] [noisegrid]

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

[Mod] City grid, roads, paths mapgen [0.4.0] [noisegrid]

by paramat » Fri May 16, 2014 22:33

Image


Download, rename to 'noisegrid' https://github.com/paramat/noisegrid/archive/master.zip
Browse code https://github.com/paramat/noisegrid

For Minetest 0.4.12 and later
Depends default
Licenses: Code LGPL 2.1, textures CC BY-SA

For use with 'singlenode' mapgen.
City street grid areas, coastal intercity roads, tunnel roads with lighting, 2 dirt paths with wooden bridges over fissures.
Underground fissures and 2 tunnel systems, with glowing 'luxore' craftable to lights.
All default ores.
White road lines, raised half-slab pavements.
Mountains up to y = 256.
Tree, grass and flower areas with varying density.
Mod's own appletree drops saplings that are grown by voxelmanip.
Overgeneration is used in x and z axes for continuous roads and paths over chunk borders.

Spawnplayer function randomly searches a large area for land to spawn players on.
Players are spawned scattered up to 1280 nodes from world centre.
The player scatter from world centre can be set by parameter 'PSCA' in the functions.lua file, since oceans can be up to 2kn across searches will fail when PSCA is set too small.


Image


Image


Image


Image


Image


Image


Image


Image


^ Tunnel, fissure and luxore.
Last edited by paramat on Tue Aug 25, 2015 22:11, edited 30 times in total.
 

User avatar
Jordach
Member
 
Posts: 4518
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
GitHub: Jordach
IRC: Jordach
In-game: Jordach

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by Jordach » Fri May 16, 2014 22:41

Could tunnels be possible as well as attempt to make bridges?

Sometimes there shouldn't be a junction at x paces - space that out on generation.

EDIT: Would it be possible to turn the roads off?
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

User avatar
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by philipbenr » Sat May 17, 2014 02:46

This and streets mod.... Hmmm. What do you think paramat? This mod is nice for making cities and developed areas. Another great magpen to download....
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by Sokomine » Sat May 17, 2014 02:53

This looks very intresting. It could be a great mapgen for servers where the focus is on building. People love to build alongside roads on flat land.

On the long run, orientation on the map might become difficult. Perhaps seperating these street-fields by patches of nature might be best - that way, there'd be plenty of area for building, and between all those towns, there'd be land for trees and general ressource gathering.
 

davidforsure!!!
Member
 
Posts: 72
Joined: Fri Oct 25, 2013 09:02

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by davidforsure!!! » Sat May 17, 2014 03:50

Ummm your mod does'nt work for me...its just mountains but no roads
 

User avatar
Krock
Developer
 
Posts: 4152
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by Krock » Sat May 17, 2014 06:07

davidforsure!!! wrote:Ummm your mod does'nt work for me...its just mountains but no roads

[quote=paramat]Unlimited road grid integrated into a singlenode mapgen.[/quote]


Very nice! That's an interesting mapgen for creative servers. (Too less wood there for survival)
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by mauvebic » Sat May 17, 2014 08:31

If you wanna take it one step further you could prolly include sewers, theyre usually built right under the street :-)
 

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

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by paramat » Sat May 17, 2014 18:38

Jordach, good ideas, tunnels and bridges are possible. Within each chunk it's possible to 'switch off' each of the 5 road elements (each has a true/false), i might try doing this randomly for more variation.
philipbenr, i was actually inspired by the road infrastructure mod, that has many useful nodes but i didn't like the idea of manually placing them :)
Sokomine, the structure of this mapgen has streets on the coast, it's possible for there to be up to 2km of mountains between city areas, there should theoretically be more hills than street areas.
davidforsure!!!, no idea, the mod will automatically select singlenode mapgen so you don't have to do that manually.
Krock, perhaps i'll add in basic ores and trees etc. just to keep players happy while i experiment, just note the mapgen will probably change.
mauvebic, from watching MC videos i'm a fan of 'toilets you can jump down to access sewers' but i want to keep this simple as possible :) I'm a bit tired of ultra complex 5 second per chunk mapgens, lua mapgen works best when simple (until threaded lua mapgen arrives).
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by Sokomine » Sat May 17, 2014 22:07

paramat wrote:I'm a bit tired of ultra complex 5 second per chunk mapgens, lua mapgen works best when simple (until threaded lua mapgen arrives).

Good :-) While your mapgens are very impressive, they're mostly for looking at...not so much for building in. It's just too big :-) This one seems to be very tiny and nice.
 

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

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by paramat » Sun May 18, 2014 04:20

New version at github.
Add fissures, ores, appletrees with saplings, flowers, grasses.
Last edited by paramat on Wed May 21, 2014 02:47, edited 1 time in total.
 

User avatar
Jordach
Member
 
Posts: 4518
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
GitHub: Jordach
IRC: Jordach
In-game: Jordach

Re: [Mod] City grid mapgen [0.2.3] [noisegrid]

by Jordach » Sun May 18, 2014 10:38

Is it possible to apply the roads after the world has been generated, because this way it makes it possible to make them follow hills and or other things, like tunnels, and here's a decent idea, when generating a tunnel, you should be able to check if the entrance is stone, because that will constitute a tunnel, while dirt would be a hill to drive up.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

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

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by paramat » Wed May 21, 2014 02:51

Version 0.2.4
Sandstone paths throughout, code imported from path mod.
Tree areas with varying densities.
Removed zebra crossings, dot at junction centre.
Last edited by paramat on Thu May 29, 2014 17:06, edited 1 time in total.
 

User avatar
Krock
Developer
 
Posts: 4152
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by Krock » Wed May 21, 2014 12:04

Well, done. Great work!
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Hybrid Dog
Member
 
Posts: 2685
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by Hybrid Dog » Wed May 21, 2014 16:54

paramat wrote:Chunk generation time less than 1 second.

The chunk generation of my swamps mod would be approximately as fast as your mapgen on your computer, I guess.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

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

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by paramat » Wed May 21, 2014 21:00

^ Edited, we're up to 2 seconds per chunk now with the new features.
 

User avatar
Hybrid Dog
Member
 
Posts: 2685
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by Hybrid Dog » Thu May 22, 2014 17:31

paramat wrote:^ Edited, we're up to 2 seconds per chunk now with the new features.

I need to test...

EDIT:
Code: Select all
19:32:35: ERROR[main]: ServerError: ~/.minetest/mods/noisegrid/functions.lua:168: attempt to concatenate local 'zsp' (a nil value)

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

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

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by paramat » Thu May 22, 2014 18:27

I'll test and look into this, until then try changing lines 126 and 127 in functions.lua to:
Code: Select all
      local x0 = 80 * math.random(-8, 8) - 32
      local z0 = 80 * math.random(-8, 8) - 32

My guess is a spawn location above sea level couldn't be found in 64 tries so this code makes the spawn search area larger.
 

User avatar
Hybrid Dog
Member
 
Posts: 2685
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] City grid mapgen [0.2.4] [noisegrid]

by Hybrid Dog » Thu May 22, 2014 18:56

paramat wrote:I'll test and look into this, until then try changing lines 126 and 127 in functions.lua to:
Code: Select all
      local x0 = 80 * math.random(-8, 8) - 32
      local z0 = 80 * math.random(-8, 8) - 32

My guess is a spawn location above sea level couldn't be found in 64 tries so this code makes the spawn search area larger.

Code: Select all
[noisegrid] chunk minp (208 -32 -512)
[noisegrid] 631 ms
that's much faster than my swamps mod

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

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

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by paramat » Thu May 22, 2014 22:55

0.2.5
Path node. Grass areas of varying density. Stability system. Spawnplayer at surface
Fix spawnplayer function.
Last edited by paramat on Thu May 29, 2014 17:06, edited 2 times in total.
 

User avatar
HeroOfTheWinds
Member
 
Posts: 470
Joined: Wed Apr 23, 2014 23:16
Location: Hawaii
GitHub: HeroOfTheWinds
IRC: WindHero

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by HeroOfTheWinds » Thu May 22, 2014 23:18

Looking better and better!

Also, I can't help but feel that the player scatter variable has a very unfortunate name...
Nam ex spatio, omnes res venire possunt.
Why let the ground limit you when you can reach for the sky?
Back to college now, yay for sophomore year schedules. :P
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by Pavel_S » Fri May 23, 2014 03:13

Nice! Will you add city houses not far from road and small wooden houses along sand path?
 

User avatar
Hybrid Dog
Member
 
Posts: 2685
Joined: Thu Nov 01, 2012 12:46

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by Hybrid Dog » Fri May 23, 2014 17:23

Pavel_S wrote:Nice! Will you add city houses not far from road and small wooden houses along sand path?

and please add ruins, mountains (shield and stratus) with glaciers and caves and tunnels

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

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

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by paramat » Fri May 23, 2014 20:36

Pavel_S, i was going to leave houses for players to build. Spawning houses is not my speciality i think i'll leave that to Sokomine and others.
Last edited by paramat on Sat May 24, 2014 18:35, edited 1 time in total.
 

User avatar
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by philipbenr » Fri May 23, 2014 23:03

I like it how it is for now... I also think that webdesigner97 might take interest in this....
 

User avatar
webdesigner97
Member
 
Posts: 1323
Joined: Mon Jul 30, 2012 19:16
Location: Bergisch Gladbach, Germany
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

Re: [Mod] City grid and paths mapgen [0.2.5] [noisegrid]

by webdesigner97 » Sat May 24, 2014 15:49

philipbenr wrote:I like it how it is for now... I also think that webdesigner97 might take interest in this....

I already did ;)
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests