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

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

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

by paramat » Post

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.

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

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

by Jordach » Post

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
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

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

by philipbenr » Post

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....

User avatar
Sokomine
Member
Posts: 4014
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Post

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.

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

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

by davidforsure!!! » Post

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

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

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

by Krock » Post

davidforsure!!! wrote:Ummm your mod does'nt work for me...its just mountains but no roads
paramat wrote:Unlimited road grid integrated into a singlenode mapgen.

Very nice! That's an interesting mapgen for creative servers. (Too less wood there for survival)
Look, I programmed a bug for you. >> 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 » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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

User avatar
Sokomine
Member
Posts: 4014
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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.

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

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

by Jordach » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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: 4508
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

Well, done. Great work!
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Hybrid Dog
Member
Posts: 2748
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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

User avatar
Hybrid Dog
Member
Posts: 2748
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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: 2748
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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
GitHub: HeroOfTheWinds
IRC: WindHero
Location: Hawaii

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

by HeroOfTheWinds » Post

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 » Post

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

User avatar
Hybrid Dog
Member
Posts: 2748
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

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

by Hybrid Dog » Post

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: 3626
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

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
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

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

by philipbenr » Post

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

User avatar
webdesigner97
Member
Posts: 1327
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

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

by webdesigner97 » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests