[abandoned mod] Geomoria [geomoria]

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

[abandoned mod] Geomoria [geomoria]

by duane » Post

Edit: This mod is abandoned now that I've switched to Squaresville C.

This mod uses a simple table-based description of an underground region to create huge, geomorphic constructions. Think of it as nodeboxes for dungeon-making. My goal is to make it look a bit like Tolkien's Moria.

The complex extends horizontally in all directions, around 250 meters down.

How to make geomorphs:
Spoiler
The geomorphs are easy to make. Start with a fill, which looks like this.

Code: Select all

  {act = 'fill', node = 'air', coords = {1, 15, 21, 4, 10, 20}},
The coordinates are pairs describing the x, y, and z extents of the fill. In this case, we have a box at (x=1, y=21, z=10) with width (x)=15, height=4, and depth (z)=20. It will fill the box with air, creating a room.

Using many of those items, I constructed this:

Image

You can, of course, specify any node to fill with. You can also specify a param2 setting to rotate a node (see the minetest lua_api.txt for specifics on rotation). However, rotation will not work correctly except in the y-axis (param2 < 4). I may add double-rotations later, but don't count on it.

Fills can specify a "line" or "floor" parameter, which creates a shell of the specified node around (usually) an air fill or a floor under it. This lets you place something other than stone in the walls, floor, and ceiling.

Finally, you can specify a "random" number to place things through a volume at random. The number is the denominator of the fraction of the volume you want filled (e.g. 2 for half the volume).

The "act" parameter can also be "stair" or "ladder". See the plans.lua file for examples. Stairs are placed with stone underneath and air overhead. Ladders require special rotation, which ranges from param2 = 2 to 5 (see my examples). Otherwise, they work just like fills.

My method for making geomorphs is to diagram them in Inkscape on a document set to 80x80 pixels, like so:

Image

This lets you see exactly what you're going to get. Plus, since each box is an svg object, you can select it and look at the inkscape toolbar to see its exact coordinates for entry into a fill item.

I've attached the Inkscape document I use as a starter for all my plans.
The geomorphs are chosen randomly for each chunk of underground terrain and rotated randomly, for more variety.

Screenshots:
Spoiler
Image
Image
Image
Image
Note: This mod works very well with the goblins mod.


The source is available on github.

Code: LGPL2

Mod dependencies: default, stairs, doors

Download: https://github.com/duane-r/geomoria/archive/master.zip
Attachments
geomoria14.zip
(1.46 KiB) Downloaded 346 times
Last edited by duane on Tue Sep 26, 2017 03:12, edited 8 times in total.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

Problems

- no vertical exits
- no way to define subordinate constructions and add them by name to a geomorph
Last edited by duane on Mon Feb 27, 2017 23:57, edited 2 times in total.
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod] Geomoria [geomoria]

by azekill_DIABLO » Post

just missing the crawling goblins and here we are! YOU SHALL NOT PASS!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Geomoria [geomoria]

by burli » Post

As always, great idea

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

burli wrote:As always, great idea
Thanks. The geomorphs will rotate now. I've added two more. You can now get extremely lost within minutes. They're easy to make with inkscape, but I quickly figured out that all the entrances have to connect at some point or it ends up with closed loops.

Image

Image

Adding lighting everywhere is going to be difficult, and since I want the place dark, I'm not likely to work on it any time soon.
Attachments
geomorph03.png
geomorph03.png (7.74 KiB) Viewed 2028 times
geomorph02.png
geomorph02.png (7.48 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

User avatar
the_raven_262
Member
Posts: 343
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: [Discord unfortunately] corvus262

Re: [mod] Geomoria [geomoria]

by the_raven_262 » Post

Is there any way to generate ores around these?
Nice work by the way :D

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

the_raven_262 wrote:Is there any way to generate ores around these?
Nice work by the way :D
I put in a setting for that. It looks strange to me to have ores spawn in finished walls, so it's not on by default.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

I've added stairs, ladders, and false walls (hidden doors), for even more complexity. To test them out, I put in a few hidden passages, upper levels, and a submerged level in the reservoir.

Of course, taking full advantage of this means designing each geomorph will take even longer. /sigh

Image
Attachments
geomoria02.jpg
geomoria02.jpg (310.8 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

I've added fissures and chasms. These are optional, but enabled by default.

It's just not as terrifying with cute goblins.

Image

Image
Attachments
geomoria03.jpg
geomoria03.jpg (203.27 KiB) Viewed 2028 times
geomoria04.jpg
geomoria04.jpg (174.31 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod] Geomoria [geomoria]

by azekill_DIABLO » Post

lol for the goblins + 1 for mapgen improvements!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

Image

Image

Image
Attachments
geomoria08.jpg
geomoria08.jpg (259.37 KiB) Viewed 2028 times
geomoria07.jpg
geomoria07.jpg (313.9 KiB) Viewed 2028 times
geomoria06.jpg
geomoria06.jpg (289.26 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

Image
Attachments
geomoria09.jpg
geomoria09.jpg (196.17 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: [mod] Geomoria [geomoria]

by GreenXenith » Post

You sure do like messing with the mapgen. First the cylinder cave tunnels, now this (and maybe others I don't know of). What will ya think of next? :D
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
the_raven_262
Member
Posts: 343
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: [Discord unfortunately] corvus262

Re: [mod] Geomoria [geomoria]

by the_raven_262 » Post

I love how i see progress every time i open up this topic :D
I have a question, non mapgen related... why is the cobble and stone on your screenshots in the 32x32 resolution? It seems a bit odd.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

the_raven_262 wrote:I love how i see progress every time i open up this topic :D
I have a question, non mapgen related... why is the cobble and stone on your screenshots in the 32x32 resolution? It seems a bit odd.
Why not?

"And here we are at the stupendous Moria Underdome waiting for those fighting Balrogs to enter the arena!"

Image

I also added an automatic lighting option, but I don't recommend it. There's no easy way to make the lights look good, especially when they can come from either side of a wall.

Image
Attachments
geomoria10.jpg
geomoria10.jpg (266.42 KiB) Viewed 2028 times
geomoria11.jpg
geomoria11.jpg (255.97 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

Robsoie
Member
Posts: 104
Joined: Fri Apr 29, 2016 16:22

Re: [mod] Geomoria [geomoria]

by Robsoie » Post

Hello,

After just downloading and testing with a new v7 world without any other mods than the ones default to minetest_game, i am puzzled if i am doing something wrong or if that's just extremely rare that any of the structures from your screenshot generate ?

I mean i've been fast noclip/flying to explore the underground of my world for a dozen of minutes with
geomoria_mod.cheap_lighting = true in the mod init.lua
to help me locate any of those and found nothing out of the usual caves, dungeons and other big mapgen blobs.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [mod] Geomoria [geomoria]

by azekill_DIABLO » Post

well this is weird... have you gone deeper? they generate deep if i remember, about 250/260 blocks under sea level.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Robsoie
Member
Posts: 104
Joined: Fri Apr 29, 2016 16:22

Re: [mod] Geomoria [geomoria]

by Robsoie » Post

That could be it, i'll have to retry with going deeper.

EDIT :
That was it indeed, as soon as i went way down, below -200 , i saw this :
http://imgur.com/pCMi8gg

After browsing, i think then the depths is setup by those in the scripts

Code: Select all

geomoria_mod.geomoria_depth = -2

Code: Select all

(geomoria_depth - 1) * 80 - 32 
I'll have to play with that to change the actual depth

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

Robsoie wrote:That could be it, i'll have to retry with going deeper.

EDIT :
That was it indeed, as soon as i went way down, below -200 , i saw this :
http://imgur.com/pCMi8gg

After browsing, i think then the depths is setup by those in the scripts

Code: Select all

geomoria_mod.geomoria_depth = -2

Code: Select all

(geomoria_depth - 1) * 80 - 32 
I'll have to play with that to change the actual depth
The depth has to be in full chunks, by the nature of the mapgen. You can set it to -1 and you'll have occasional collisions with sea bottoms, but probably nothing noticeable. Setting it to 0 would, of course, cover your surface with stone blocks containing geomorphs (and a lot of embedded trees). Setting it higher would make a layer floating in the air.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

Don't be surprised if you hear the screams of the forgotten prisoners.

Image

Image

Edit: Be on the lookout for a hidden door in one of the cells leading to a secret level.

Edit: Ive also added treasure placement in the form of a "treasure" parameter. At the moment, it only supports my booty mod. The mushroom gardens are absolutely stuffed with buried chests, but you have to dig them up, of course.
Attachments
geomoria13.jpg
geomoria13.jpg (244.67 KiB) Viewed 2028 times
geomoria12.jpg
geomoria12.jpg (219.83 KiB) Viewed 2028 times
Last edited by duane on Wed Mar 01, 2017 05:13, edited 1 time in total.
Believe in people and you don't need to believe anything else.

User avatar
Wuzzy
Member
Posts: 4778
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [mod] Geomoria [geomoria]

by Wuzzy » Post

Woah, this is an epic mapgen!

Maybe it would be an interesting addition to Lord of the Test. This is the kind of mapgen I would totally expect a boss fight. :D
This also looks like the perfect home for dungeon masters. Large, open spaces, lots of stone, large areas are already destroyed.

I like that you made good use of the new stone blocks in Minetest Game.
I like the areas with small bridges.

I think the decay or destruction of the halls is often very extreme. This make it interesting and makes it challenging to navigate. I've seen broken bridges over lava lakes, ladders leading to nowhere but to a sheer drop, and many heavily broken rooms with deep holes everywhere. Interesting. You really have to watch your step becaue if not, you can easily fall into your doom. :D

But I would expect that at least *some* areas are a bit more intact than the others.
Are there even any sections which are intact? It seems large part of the structures have been badly damaged. Maybe you could make the mapgen so that all generated areas/regions/whatever have a “damage level” and the map generator applies damage based on that. It should be possible that larger areas be intact. This would also add greatly to the mapgen variety.

One question, does the underground structure extend to the entire horizontal plane? Because I have not seen any end so far.

The steel doors are a bit odd. Seeing the decay and destruction anywhere, it is surprising to see something as modern as steel doors. Besides, steel doors are normally owned in Minetest Game, so it seems odd that anyone can open or close them. It's as if you would place a locked chest with a mapgen. I would maybe replace them with wooden doors, and sometimes don't place a door at all (if part of decay).

I would spawn the mossy cobblestone not everywhere, only restricted to certain areas with some sort of “spread” (maybe use perlin noise if you don't do already) (to give the impression of a more “natural” spread). Moss could be more likely in areas with water, and it should never appear in lava rooms.

I think this mod would benefit if you also explore the 3rd dimension a bit more. The mapgen feels rather flat. I realize you used the 3rd dimension to some extent already, but I like to see more. I think about small walkways at the side of huge walls which.
or just more ways to connect multiple levels in general

Some other ideas for a “Moria” feeling:

- Sometimes generate cobblestone bridges over badly damaged areas
- More variations in wall and floor types: Currently, most walls and floors are a mix of stone, cobble and mossy cobble. I would like if there are areas which are supposed to be more “clean” / less damaged with only cobblestone, or only stone. This idea is just to make all the rooms a bit more unique


But you did impressive work with this mapgen alreay and I am curious about the future of this mod. I'm pretty sure you have many ideas on your own as well. :-)
Good job!

User avatar
TheReaperKing
Member
Posts: 531
Joined: Sun Nov 22, 2015 21:36
Contact:

Re: [mod] Geomoria [geomoria]

by TheReaperKing » Post

With a little skin rework I was thinking maybe this could be the Balrog:
viewtopic.php?f=9&t=15899

Image

Maybe some rotation on the horns, some wings, and fire particles :D
Become A Real Life Superhero - http://SuperheroHill.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

TheReaperKing wrote:With a little skin rework I was thinking maybe this could be the Balrog:
viewtopic.php?f=9&t=15899

Image

Maybe some rotation on the horns, some wings, and fire particles :D
That would be cool, but I'm not going to put any specific mob support in geomoria itself. My thought is that if you want specific mobs, you can add a spawner block (e.g. from mobs redo) to the map descriptions, at the appropriate places. That would be as simple as adding this line.

Code: Select all

{act = 'fill', node = '[spawner]', coords = {0, 1, 21, 1, 19, 1}}
Then you'd get a constant stream of goblins, balrogs, etc. where you want them. I think the mobs redo block can even be tweaked to only spawn one balrog at a time.

If you have the original goblins mod active, they'll spawn on all the mossycobble already (which is why I added it).
Believe in people and you don't need to believe anything else.

User avatar
TheReaperKing
Member
Posts: 531
Joined: Sun Nov 22, 2015 21:36
Contact:

Re: [mod] Geomoria [geomoria]

by TheReaperKing » Post

Awesome, thanks! I think there is actually an orc invasion mod somewhere I could mess with too haha.
Become A Real Life Superhero - http://SuperheroHill.com
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com
Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com
Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Geomoria [geomoria]

by duane » Post

Image

Image

Image
Attachments
geomoria17.jpg
geomoria17.jpg (363.52 KiB) Viewed 2028 times
geomoria16.jpg
geomoria16.jpg (427.47 KiB) Viewed 2028 times
geomoria15.jpg
geomoria15.jpg (289.02 KiB) Viewed 2028 times
Believe in people and you don't need to believe anything else.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests