Page 1 of 2

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

PostPosted: Fri May 16, 2014 22:33
by paramat
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.

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

PostPosted: Fri May 16, 2014 22:41
by Jordach
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?

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

PostPosted: Sat May 17, 2014 02:46
by philipbenr
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....

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

PostPosted: Sat May 17, 2014 02:53
by Sokomine
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.

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

PostPosted: Sat May 17, 2014 03:50
by davidforsure!!!
Ummm your mod does'nt work for me...its just mountains but no roads

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

PostPosted: Sat May 17, 2014 06:07
by Krock
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)

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

PostPosted: Sat May 17, 2014 08:31
by mauvebic
If you wanna take it one step further you could prolly include sewers, theyre usually built right under the street :-)

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

PostPosted: Sat May 17, 2014 18:38
by paramat
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).

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

PostPosted: Sat May 17, 2014 22:07
by Sokomine
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.

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

PostPosted: Sun May 18, 2014 04:20
by paramat
New version at github.
Add fissures, ores, appletrees with saplings, flowers, grasses.

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

PostPosted: Sun May 18, 2014 10:38
by Jordach
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.

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

PostPosted: Wed May 21, 2014 02:51
by paramat
Version 0.2.4
Sandstone paths throughout, code imported from path mod.
Tree areas with varying densities.
Removed zebra crossings, dot at junction centre.

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

PostPosted: Wed May 21, 2014 12:04
by Krock
Well, done. Great work!

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

PostPosted: Wed May 21, 2014 16:54
by Hybrid Dog
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.

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

PostPosted: Wed May 21, 2014 21:00
by paramat
^ Edited, we're up to 2 seconds per chunk now with the new features.

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

PostPosted: Thu May 22, 2014 17:31
by Hybrid Dog
paramat wrote:^ Edited, we're up to 2 seconds per chunk now with the new features.

I need to test...

EDIT:
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
19:32:35: ERROR[main]: ServerError: ~/.minetest/mods/noisegrid/functions.lua:168: attempt to concatenate local 'zsp' (a nil value)

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

PostPosted: Thu May 22, 2014 18:27
by paramat
I'll test and look into this, until then try changing lines 126 and 127 in functions.lua to:
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
      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.

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

PostPosted: Thu May 22, 2014 18:56
by Hybrid Dog
paramat wrote:I'll test and look into this, until then try changing lines 126 and 127 in functions.lua to:
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
      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.

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
[noisegrid] chunk minp (208 -32 -512)
[noisegrid] 631 ms
that's much faster than my swamps mod

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

PostPosted: Thu May 22, 2014 22:55
by paramat
0.2.5
Path node. Grass areas of varying density. Stability system. Spawnplayer at surface
Fix spawnplayer function.

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

PostPosted: Thu May 22, 2014 23:18
by HeroOfTheWinds
Looking better and better!

Also, I can't help but feel that the player scatter variable has a very unfortunate name...

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

PostPosted: Fri May 23, 2014 03:13
by Pavel_S
Nice! Will you add city houses not far from road and small wooden houses along sand path?

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

PostPosted: Fri May 23, 2014 17:23
by Hybrid Dog
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

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

PostPosted: Fri May 23, 2014 20:36
by paramat
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.

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

PostPosted: Fri May 23, 2014 23:03
by philipbenr
I like it how it is for now... I also think that webdesigner97 might take interest in this....

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

PostPosted: Sat May 24, 2014 15:49
by webdesigner97
philipbenr wrote:I like it how it is for now... I also think that webdesigner97 might take interest in this....

I already did ;)

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

PostPosted: Sat May 24, 2014 18:46
by paramat
LOL ... looking both ways at a junction. Good to see a video of this.

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

PostPosted: Sat May 24, 2014 19:42
by Hybrid Dog
ܚ䠥ڡŠԔ߹Գʡ˨ꉂ黧.ؽܬ

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

PostPosted: Sat May 24, 2014 20:47
by webdesigner97
paramat wrote:LOL ... looking both ways at a junction. Good to see a video of this.

You never know if a glitching car is coming :D And I wanted to see where to go next :P

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

PostPosted: Sun May 25, 2014 23:59
by philipbenr
I guess I am just too late. Oh well. :) I think that MT modding is coming along really nicely. I am of course, and novice, but some other people are amazing.

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

PostPosted: Tue May 27, 2014 17:14
by Sokomine
paramat wrote: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.

I'm currently experimenting with Nores MG and the villages therein (which are also used in Adventuretest). It's working to a degree, and I do get diffrent villages (similar to my villages mod). What's lacking there is some connection between those villages. Having them at the side of a road connecting them all like in this mod would be great :-)