Page 1 of 9

[Mod] Fun Caves [fun_caves]

PostPosted: Sun Apr 24, 2016 07:11
by duane
Fun Caves replaces the default caves with a dense system of mostly flat (and easier to navigate) caverns, with biomes owing much to caverealms. Once you go underground, you should find everything you need to survive without ever returning to the surface.

Note: This mod is not compatible with mapgen V6, and worlds created with the previous version of fun_caves will NOT work with the new one (no matter how many other mods you add in).

Screenshots
+ Spoiler


The source is available on github.

Code: LGPL2, textures: CC-BY-SA and CC0

Mod dependencies: default, dye, flowers, vessels

Download: https://github.com/duane-r/fun_caves/archive/master.zip

Recipes
+ Spoiler


For those who want to add features from the old fun_caves project, take a look at these mods:

Big Trees (killer bees are not included)
Booty (the chests found in dungeons and pyramids)
Elixirs
Fun Tools (chainsaw, flare gun, rope ladders, wall hammer, etc.)
Hard Wood
Huts (primitive villages)
Underworlds
Inspire (rewards similar to the metal/gem crafting requirements)
Wooden Bucket
Ziggurats

Problems

PostPosted: Sun Apr 24, 2016 07:12
by duane
Problems:

- Caves frequently undermine riverbeds and desert sand, causing hilarity if you're foolish enough to dig there. I'm not fixing this one -- I think it's fun.

Re: [Mod] Fun Caves (V6 caves) [fun_caves]

PostPosted: Sun Apr 24, 2016 07:45
by burli
This is cool, thx. But I got an error message.

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
2016-04-24 09:36:39: WARNING[Emerge-0]: Undeclared global variable "mg" accessed at /home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:293
2016-04-24 09:36:39: ERROR[Main]: ServerError: Lua: Runtime error from mod 'default' in callback environment_OnGenerated(): /home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:293: attempt to index global 'mg' (a nil value)
2016-04-24 09:36:39: ERROR[Main]: stack traceback:
2016-04-24 09:36:39: ERROR[Main]:    /home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:293: in function 'makeTunnel'
2016-04-24 09:36:39: ERROR[Main]:    /home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:408: in function 'makeCave'
2016-04-24 09:36:39: ERROR[Main]:    /home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:461: in function 'generateCaves'
2016-04-24 09:36:39: ERROR[Main]:    /home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:488: in function </home/markus/minetest/bin/../mods/fun_caves/mapgen.lua:466>
2016-04-24 09:36:39: ERROR[Main]:    /home/markus/minetest/bin/../builtin/game/register.lua:369: in function </home/markus/minetest/bin/../builtin/game/register.lua:349>


Will try to help

Re: [Mod] Fun Caves (V6 caves) [fun_caves]

PostPosted: Sun Apr 24, 2016 20:20
by burli
Ok, had to replace this "mg" with a. Now it's working. There are caves with sandstone or desert sandstone, but there are light issues. These caves are bright as day

What does
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
fun_caves.world
mean?

Re: [Mod] Fun Caves (V6 caves) [fun_caves]

PostPosted: Mon Apr 25, 2016 07:46
by azekill_DIABLO
it means fun_cave world i think

(XD i don't know too)

Re: [Mod] Fun Caves (V6 caves) [fun_caves]

PostPosted: Mon Apr 25, 2016 08:10
by burli
Duane creates a v6 branch. The master is something different.

THX for bugfixing

Re: [Mod] Fun Caves (V6 caves) [fun_caves]

PostPosted: Mon Apr 25, 2016 22:03
by duane
burli wrote:What does
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
fun_caves.world
mean?


It's just a place-holder so I could leave some of the world-oriented code in, in case I needed it. (Doesn't look like I will.)

Re: [Mod] Fun Caves (V6 caves) [fun_caves]

PostPosted: Tue Apr 26, 2016 05:38
by burli
Thanks for your great work. Now I can tinker around with the settings.

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue Apr 26, 2016 21:59
by duane
I've gone in a new direction with this mod. (See the first post.) It's now a fairly complete underworld environment. There's no surface at all, and anything you'd find there has an equivalent underground. Goblins, spiders, and fungi dominate the caves.

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue Apr 26, 2016 23:40
by D00Med
This is really cool!

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Wed Apr 27, 2016 02:01
by Don
Duane, your craziness is impressive. Thanks for your great work!

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Wed Apr 27, 2016 04:07
by burli
Ah, this is fun_caves.world = true. Nice

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Thu Apr 28, 2016 20:09
by burli
duane wrote:Hint2: Avoid the goblin traps. They hurt.

That's a really nice idea, but the gobblins are really hard. They spawn from the first second and I died three times in the first 5 minutes. No idea how to survive this. No time to try something.

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Fri Apr 29, 2016 15:10
by azekill_DIABLO
i will maybe do a game with this, in a long time, when Voxellar will be stable (otherly said: in another life :D)

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Sat Apr 30, 2016 01:53
by duane
burli wrote:
duane wrote:Hint2: Avoid the goblin traps. They hurt.

That's a really nice idea, but the gobblins are really hard. They spawn from the first second and I died three times in the first 5 minutes. No idea how to survive this. No time to try something.


What I've had to do is immediately run away from the growing areas to some place with salt or hot cobble and then edge back to get some tools. It's a lot easier if you spawn near a cliff and can just pick up their dropped stuff. Ore spawns everywhere, and the nasty goblins (only about half will actually attack you) spawn near it, but you can also get an iron or diamond sword in no time. Once you have that and a stack of mushroom steaks, you're golden.

It's lively, but not terribly difficult once you get used to it.

Edit: It took me about half an hour to come up with all this, starting from scratch. Killed a dozen goblins, several danglers and two big spiders in the process. (One of the danglers gave me a lot of trouble -- it kept jumping up to the ceiling and dropping on me when I didn't expect it.) Not gonna tell you where the bread came from. There's an inexhaustible supply, when you find it.

Image

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue May 03, 2016 19:57
by burli
[deleted]

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Wed May 04, 2016 07:35
by azekill_DIABLO
/|\
most important post ever ;)

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Thu May 12, 2016 04:54
by duane
I've completely removed the massive cave and v6 algorithms, and I'm now using a much denser, more interconnected set of noises. It's no longer possible to give you an idea of how they look, because they take up nearly half the volume of the world... so, here's a random screenshot.

Image

Underground fires can be particularly deadly.

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Thu May 12, 2016 05:40
by burli
This is cool. Maybe this screenshot might help, but it's still dificult to get an idea

Image

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Mon May 16, 2016 08:45
by duane
I've added some silicon-based life and biased the ores to spawn in the less pleasant places. Here's a good spot to find mese.

Image

I also fixed the hot/cold nodes so that they properly cause mobs damage and don't require so many abms.

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Mon May 16, 2016 09:46
by burli
Well don duane. But ores are pretty rare. Had to search a long time to find more than one iron. But then I found more than enough.

And it is difficult to see because of the uniformity of the glowing stones. My eyes are getting tired after a while

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Mon May 16, 2016 13:09
by burli
On the left side of the screenshot is not a single ore, on the right side is Walhall. And the structure of the cave is better visible. I removed temporarely the decoration.

And I have heavy lags. I was in creative mode and puched a tiny spider once. It took over 10 seconds until the spider dies. I normal mode I was nearly killed by such a tiny spider because I couldn't kill her, but she made damage.

Image

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Mon May 16, 2016 17:36
by azekill_DIABLO
duane wrote:I've added some silicon-based life and biased the ores to spawn in the less pleasant places. Here's a good spot to find mese.

Image

I also fixed the hot/cold nodes so that they properly cause mobs damage and don't require so many abms.


so cool ;)

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Mon May 16, 2016 17:57
by burli
Oh, right, I didn't found any lava yet. And I flew through the caves.

It's a bit strange with the ores. There are area's where I can't find any ores, but there are areas with every kind of ore, even mese blocks and diamonds

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue May 17, 2016 01:30
by duane
burli wrote:On the left side of the screenshot is not a single ore, on the right side is Walhall. And the structure of the cave is better visible. I removed temporarely the decoration.

And I have heavy lags. I was in creative mode and puched a tiny spider once. It took over 10 seconds until the spider dies. I normal mode I was nearly killed by such a tiny spider because I couldn't kill her, but she made damage.


The ore is based on the altitudes in the default game. Wherever there's a sharp increase based on altitude normally, there will be a similar increase horizontally here. I like making the ore harder to find. It was too easy before.

There is a lot of lag. Unfortunately, most of it is being caused by the liquid/lighting updates. To be fair, the game wasn't designed for caves in the sky. I haven't had any problem killing anything yet, as long as I'm walking.

The lava is in the hot biomes (where you see hot cobble and coal).

The uniform glow is a bit dull. Maybe I'll make the individual lights brighter and turn off the rest. That would probably help with the lighting lag.

Edit: Yep. That helps a lot. At least until you get into areas with lava and hot cobble. Then it's lag city again.

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue May 17, 2016 04:37
by duane
Beware the deadly ice spider!

Image

...and the ice goblins.

Image

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue May 17, 2016 06:52
by burli
duane wrote:The ore is based on the altitudes in the default game. Wherever there's a sharp increase based on altitude normally, there will be a similar increase horizontally here. I like making the ore harder to find. It was too easy before.

But it's not the same in the defaulf game. Here you have areas with absolutely no ores and then there is a hard cut and you find everything, even Mese and diamonds at +90 and above (see attached screenshot). And it is still easy if you have a little luck. I played an hour and I have a full stack of coal blocks and nearly a full stack of diamonds

duane wrote:There is a lot of lag. Unfortunately, most of it is being caused by the liquid/lighting updates. To be fair, the game wasn't designed for caves in the sky. I haven't had any problem killing anything yet, as long as I'm walking.

Maybe my hardware is not the best, but it was never so hard like yesterday

duane wrote:The lava is in the hot biomes (where you see hot cobble and coal).

Found one. Rare

duane wrote:The uniform glow is a bit dull. Maybe I'll make the individual lights brighter and turn off the rest. That would probably help with the lighting lag.

Edit: Yep. That helps a lot. At least until you get into areas with lava and hot cobble. Then it's lag city again.


Much better performance. And it also looks much better and there is a need for torches again. Maybe you can add a ramdom brightness to the mushrooms?

Do you have more ideas or do you need inspiration?

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Tue May 17, 2016 20:52
by burli
Biomes are calculated only in two dimensions, right? I noticed, that there is always the same biome with lichen and the same green moss spot on the same position if I go straight down. Even the shape of the spot is nearly equal. It's like a building with lots of floors with the same carpet. And if you look up you see the same at the ceiling

If you know that there is no need to go down or up to find another biome. Just walk horizontal. Maybe you can use a 3d noise for biomes so that there can other biomes above and below?

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Wed May 18, 2016 11:00
by duane
Image

Image

Image

Re: [Mod] New Fun Caves (No Surface) [fun_caves]

PostPosted: Wed May 18, 2016 11:58
by azekill_DIABLO
duane wrote:
Image


a crystal cave?!?cool!