[Mod] Path, bridge, tunnel network [0.3.1] [pathv6alt]

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

[Mod] Path, bridge, tunnel network [0.3.1] [pathv6alt]

by paramat » Post

Image


Download https://github.com/paramat/pathv6alt/archive/master.zip
Code https://github.com/paramat/pathv6alt

For Minetest 0.4.12 and later
Depends default stairs
Licenses: Code LGPLv2.1, textures CC BY-SA 3.0

Use with mapgen v6. Creates a worldwide network of paths, bridges and occasional tunnels.
Compatible with custom mapgen v6 noise parameters, you will need to enter your custom noise parameters 'terrain base' 'terrain higher' 'height select' 'mud' into the mod code.
By default will generate paths up to y = 127, raise parameter YMAXMINP for a higher limit, you will need to tune HSAMP to avoid paths becoming too steep.

Mgv6 noise parameters are used to calculate a path surface that smoothly conforms to the land without getting too steep to climb. Where the path leaves the ground it becomes a wooden bridge with random columns that reach to stone below.
There is an (enabled by default) option of using stair nodes to create walkable (no jumping) and drivable paths.
There are 4 path networks with 'spreads' of 1024, 2048, 4096 and 8192, the two larger spread paths are 5 nodes wide.

Mgv6 has 'base terrain' and 'higher terrain', and a third noise 'height select' controls the blend/mix between those two terrains. A fourth noise 'steepness' controls how fast the height select switches between base and higher, creating slopes and cliffs.
In this mod mgv6 mapgen is recreated in lua, the surface of the paths is essentially mgv6 as it would be if all slopes were gentle slopes instead of cliffs, i have set a fixed and low 'steepness'.


Image


Image


Image


^ I've been stuck at this traffic light for hours
Last edited by paramat on Mon Aug 24, 2015 02:23, edited 22 times in total.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by Sokomine » Post

Oh, that looks very intresting! It's difficult enough to build such roads manually. To do so automaticly is even better!

I'd love to have such roads between the villages :-)

Perhaps the supports for the bridges could be turned into fence posts. Those usually look slightly better than wooden planks.
A list of my mods can be found here.

User avatar
Kilarin
Member
Posts: 894
Joined: Mon Mar 10, 2014 00:36
GitHub: Kilarin

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by Kilarin » Post

Wow! That looks fascinating!

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

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by paramat » Post

Yes making this work with mg_villages is something i'm considering, i think there is a way to have villages spawn at or near path crossroads. I tried fence posts but they make air columns underwater, a full node looks best, i'll probably make a new node and texture.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by Sokomine » Post

paramat wrote: Yes making this work with mg_villages is something i'm considering, i think there is a way to have villages spawn at or near path crossroads.
That would be great!
paramat wrote: I tried fence posts but they make air columns underwater, a full node looks best, i'll probably make a new node and texture.
That's pretty easy: If it's under water (or below height of 0), just place a cobblestone instead of the fence post. Fence posts tend to get complicated whenever slabs are involved, but that ought to be no problem here.
A list of my mods can be found here.

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

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by paramat » Post

A simple and fast mod, keeping the server lag low makes a vehicle more controllable, so this can be a realtime road generator for a vehicle mod.
Last edited by paramat on Fri Sep 12, 2014 00:22, edited 2 times in total.

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

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by Krock » Post

+1000 I love those tunnels
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Path, bridge, tunnel network [0.1.0] [pathv6]

by ExeterDad » Post

Wow! I can't wait to get home and try it out!

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Path, bridge, tunnel network [0.1.1] [pathv6]

by ExeterDad » Post

Heh, heh!! I really like this! Really gives players a excuse to explore.
Anyway to make paths walkable? Like slabs and stairs?
I was amazed how little code in the init.lua it took to make all this. You are a wizard for sure :P

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

Re: [Mod] Path, bridge, tunnel network [0.1.1] [pathv6]

by paramat » Post

Here's an alternative version of this mod that has fixed width paths formed by a 3x3 node 'brush' https://github.com/paramat/pathv6alt
Less organic, more level, much cleaner design, and central supports under bridges. This branch mod may be able to do stair paths, thats my next task. I'll make stairs optional if i can.

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

Re: [Mod] Path, bridge, tunnel network [0.1.1] [pathv6]

by srifqi » Post

+1024

Another way to explore the world!
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Path, bridge, tunnel network [0.1.1] [pathv6]

by ExeterDad » Post

paramat wrote:Here's an alternative version of this mod that has fixed width paths formed by a 3x3 node 'brush' https://github.com/paramat/pathv6alt
Less organic, more level, much cleaner design, and central supports under bridges. This branch mod may be able to do stair paths, thats my next task. I'll make stairs optional if i can.
Having fun with this! I like the clean paths and bridges.
Image
Couldn't resist laying some rail into the closer tunnel. Which set off a lightbulb... since the brush is 3x3, couldn't the center ones contain a rail on generation? Would be fun to hop on a cart and go until... well a very long ways.

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

Re: [Mod] Path, bridge, tunnel network [0.1.1] [pathv6]

by paramat » Post

Good idea i'll try that.

pathv6alt v0.2.0 has optional walkable paths, enabled by default, currently all wooden.
Last edited by paramat on Fri Sep 12, 2014 00:23, edited 1 time in total.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by Sokomine » Post

paramat wrote: pathv6alt v0.2.0 has optional walkable paths, enabled by default, currently all wooden.
Very good! Nice to see the progress this makes. Would it be possible to change it so that the paths are embedded into their sourroundings? So that the middle of the path is not much higher than the borders? The bridge looks a bit frightening now!
A list of my mods can be found here.

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

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by paramat » Post

Yes i agree, the way the path is so often a few nodes above the terrain is a problem, and difficult to solve. There are some variables that can shift the whole path system up or down a few nodes or change the vertical range, these could be tuned to make the paths lower and tunnels more common, but then you would have many places where the path runs in a trench which is even more impractical than the skywalks.
Mgv6 has 'base terrain' and 'higher terrain', and a third noise 'height select' controls the blend/mix between those two terrains. A fourth noise 'steepness' controls how fast the height select switches between base and higher, creating slopes and cliffs.
In this mod mgv6 mapgen is recreated in lua, the surface of the paths is essentially mgv6 as it would be if all slopes were gentle slopes instead of cliffs: i have set a fixed and low 'steepness', doing this to make paths to climbable is resulting in paths not following the terrain so closely. I'll try to tune the parameters for a better fit to the terrain.
The beautiful 'carved' look and surface patterns of the bridges were unexpected and are unavoidable due to the use of nodeboxes. It would be possible for the path to be 5 or 7 nodes wide to be less scary or act as a drivable 2-way road.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by jojoa1997 » Post

Wow this mod is amazing paramat. Good job!
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by ExeterDad » Post

Sokomine wrote:So that the middle of the path is not much higher than the borders? The bridge looks a bit frightening now!
Agreed the surface of the bridge "looks" high in the middle and a bit rocky. But the entire top surface is walkable with little issue. There are many corner stairs not only in the path, but along the edges so it looks rough. But I can sprint the bridges without too much difficulty provided I can steer at that speed. :P

This version (0.2.0) isn't nearly as clean looking, but is certainly very walkable now. So far a very promising mod. In fact pretty darn epic in my book.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by Sokomine » Post

ExeterDad wrote: is certainly very walkable now. So far a very promising mod. In fact pretty darn epic in my book.
Certainly! I wouldn't have thought it possible. Paramat does excellent work with mapgens. I would be a further plus if the final bit could also work out. :-)
A list of my mods can be found here.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by twoelk » Post

Ah these paths surely invite to be walked.

I wonder if the paths could be made to find and connect certain destinations, like villages or pyramides.
It would probably have to wait until at least two possible destinations have been generated and then revisit the generated map to add a new path connecting the two. Hmm this could include a "travelling salesman" solution of a new kind including information on preferred terrain to build the path on or through.
I guess we really could use some sort of crystal ball by now that gives a pregenerated view of the landscape to come so that secondary structures can take the yet ungenerated into account. This would also aid rivers and the such.

Something more simple that might be of interest for building new maps might be a road system that is attached to spawns. This could make a regular pattern around a single spawn such as the central cross and ringroad system on VanessaE's creative server or add some grid based system at a given location (there had been something like that before but it would great to have it connected with this). Or the most interresting and challenging would be a server map with multiple spawns connected by a road system.

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

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by paramat » Post

These paths and the ones in 'path', 'noisegrid' and 'riverdev' mapgen mods are all defined by 2D noise, they follow the curves where the absolute value of noise is zero. The only way to align with other structures is for those other structures to be located by the same 2D noise pattern. So in those 3 mapgen mods the paths courses' are dominant and landscape is placed around them: mountains are placed either side of a path to make it look like the path was formed intentionally in a valley.

Sokomine, so having paths link villages is not a problem, i will edit mg_villages to use 2 path noises to locate the villages, this way they will only appear at junctions of those 2 paths. Since your villages are usually lower than the paths they might get chopped up in the air on the village edge, perhaps some clever path blending could be manged somehow to bring them in at the correct height. But of course they won't align with the villages own roads.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Path, bridge, tunnel network [0.2.0] [pathv6alt]

by Sokomine » Post

paramat wrote: Sokomine, so having paths link villages is not a problem, i will edit mg_villages to use 2 path noises to locate the villages, this way they will only appear at junctions of those 2 paths. Since your villages are usually lower than the paths they might get chopped up in the air on the village edge, perhaps some clever path blending could be manged somehow to bring them in at the correct height. But of course they won't align with the villages own roads.
I'm afraid we'll have to do some path blending in order for it to look convincing. It might also be possible to place a village somewhere and to connect it to the nearest path by a straight line.
A list of my mods can be found here.

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

Re: [Mod] Path, bridge, tunnel network [0.2.4] [pathv6alt]

by paramat » Post

0.2.4
I tried reducing the persistence of height select instead of octaves, this seems to make the paths follow the terrain more closely. I also removed a '+1' y offset from the mapgen code so that dirt paths are more often embedded or eroded into the ground.
There are now 4 path networks with noise 'spreads' of 1024, 2048, 4096 and 8192 nodes, the two larger networks are the new 5-wide paths. 5 wide bridges have a pattern of quadruple columns reaching to stone below.

New screenshots in first post.

User avatar
Casimir
Member
Posts: 1204
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

Re: [Mod] Path, bridge, tunnel network [0.2.4] [pathv6alt]

by Casimir » Post

I put the mapgensettings I use into it, but it seems that made the mod reach its limits.
Image

User avatar
aldobr
Member
Posts: 316
Joined: Sun Nov 25, 2012 05:46

Re: [Mod] Path, bridge, tunnel network [0.2.4] [pathv6alt]

by aldobr » Post

Can you compress the path heights in order to make it more flat ?

Like only allow height changes that are above a certain threshold...

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

Re: [Mod] Path, bridge, tunnel network [0.2.4] [pathv6alt]

by paramat » Post

Casimir, thanks i had not thought of mgv6 with custom noise parameters, i'll try to make it compatible with your game and higher terrains.

EDIT
aldobr, parameter HSOFF controls the bias towards base or higher terrain, setting this to -2 means low paths and lots of tunnels, setting to 2 results in high paths that are mostly skywalks.
Reducing HSAMP will compress the vertical range around the average of base and higher.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests