[Mod] Beware the Dark [bewarethedark]

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

[Mod] Beware the Dark [bewarethedark]

by Ben » Sat Jul 18, 2015 20:31

Beware the Dark mod

In Other Well-Known Voxel Games™, darkness is dangerous because it spawns monsters. In MineTest (specifically, minetest_game), darkness just makes it more likely for you to walk into a tree.

This mod changes that in a very direct fashion: you are damaged by darkness, the darker the damager. Managing light and dark becomes a first-class game mechanic, and "surviving your first night" just got real. So craft those torches!

Current behavior

If you stand in a node with light level 7 or less, you slowly lose your sanity, represented by a "sanity meter" (a line of eyes). The darker it is, the more sanity you lose per second, and when it runs out, you get direct damage instead.

Stand in bright light to replenish sanity. Sunlight is best, but standing directly on a torch should help, too.

Future plans

None at the moment.

Version: 0.4.0
License: Code LGPL 2, Textures CC-BY-SA
Repository: GitHub

Download:


Dependencies:
  • hudbars by Wuzzy (optional)
  • hud by BlockMen (optional)
Last edited by Ben on Tue Jan 05, 2016 22:07, edited 15 times in total.
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Sat Jul 18, 2015 20:34

Yes, I know everyone™ adds mobs via mods, but the standard minetest_game has none, seemingly on purpose. That got me thinking of ways to add danger without actually adding mobs ;-) (My thirsty mod also follows that thought somewhat.)

I haven't found any other mod that does this, but then I'm horrible at searching. If anyone knows any existing mod that does this, please let me know!
 

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

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by ExeterDad » Sat Jul 18, 2015 21:24

Heh heh! Clever idea. I'm gonna steal my daughters pretty night light.
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Evergreen » Sat Jul 18, 2015 22:56

This is a really neat idea! It really does add something to minetest_game.

EDIT:
I just found a semi major bug. If you leave the game while it is night and rejoin, you will start taking damage until minetest can catch up and load the world around you.
Back from the dead!
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Sun Jul 19, 2015 09:49

Evergreen wrote:I just found a semi major bug. If you leave the game while it is night and rejoin, you will start taking damage until minetest can catch up and load the world around you.


Yep, that can happen since minetest reports non-existing nodes (named "ignore") as having light level 0. I've added a quick bugfix that deals with "ignore" nodes.
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Evergreen » Sun Jul 19, 2015 12:05

Ben wrote:
Evergreen wrote:I just found a semi major bug. If you leave the game while it is night and rejoin, you will start taking damage until minetest can catch up and load the world around you.


Yep, that can happen since minetest reports non-existing nodes (named "ignore") as having light level 0. I've added a quick bugfix that deals with "ignore" nodes.

That seems to work. Thanks!
Back from the dead!
 

User avatar
Esteban
Member
 
Posts: 873
Joined: Sun Sep 08, 2013 13:26
Location: Somewhere in the Caribbean...
GitHub: Esteban-
IRC: Esteban
In-game: Esteban

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Esteban » Sun Jul 19, 2015 13:06

I was waiting for a mod like this to appear! This kind of mod is very useful for making maps based on horror games, such as amnesia, where darkness hurts you. Thanks for making this and many other great mods! Another great feature would be that the players vision got blurry when standing in darkness for too long.( like an image overlay on the screen)
 

User avatar
TG-MyinaWD
Member
 
Posts: 356
Joined: Thu May 08, 2014 21:22
Location: Far Eden
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by TG-MyinaWD » Sun Jul 19, 2015 15:37

Nice mod :) I will might just use this in my Dark Minetest Subgame.

Here the menu overview if wanted a peek.
Image

Note: I am going change the header some. so not final.
Attachments
overview.png
Dark Minetest Menu
(401.6 KiB) Not downloaded yet
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

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

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Krock » Mon Jul 20, 2015 06:25

And I thought fear from the darkness only damages the spirit... I seem to be wrong in this case.
It's quite hard to not get damaged at night when starting at sunset. The difficulty is to place enough light sources to stay above that light level of 7.

You made a challenging mod there, nice work!
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Mon Jul 20, 2015 20:23

Alt. Tester wrote:Nice mod :) I will might just use this in my Dark Minetest Subgame.


Thanks! Ooh, a "Dark Minetest"? I'm intrigued :-D

Krock wrote:You made a challenging mod there, nice work!


Thanks also ;-) It's not really tweaked yet, and is probably best paired with some health regeneration mod, but then again, some people like a challenge! So even though I'm going to add some kind of resource that will need to run out before you take damage, I'm definitely keeping a "hardcore mode" which damages you instantly, like it is now.

Hm, for fairness, I'd probably need to add some kind of "it's too dark where you are" indicator – again disableable for the truly hardcore :-P
 

deezl
Member
 
Posts: 23
Joined: Tue Jan 13, 2015 12:32
GitHub: deezl
IRC: deezl
In-game: deezl

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by deezl » Mon Jul 20, 2015 22:59

I believe 3d-armor provides healing with a good set of armor, perhaps used in conjunction with something like that will allow you to eventually be a full night walker?
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Tue Jul 21, 2015 19:53

At the moment, you'd need a lot of health regeneration to fully counter the damage from light level 0: 4 health per second at the moment. That's probably game breaking :-P

That does give me another idea, though: if I add per-player "darkness factors", you could have special armor (or amulets, or something) that reduce the damage from darkness, allowing you to move freely where others can't ;-)

Thanks for the idea!
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Thu Jul 30, 2015 11:06

Version 0.2.0 released

First the simple stuff: instead of direct damage, you now gradually "lose sanity". It effectively works like hunger (or thirst!) now. Go to the light to "fill up your sanity".

For now, this change is mandatory (though I do know how much fun the direct-damage version is!), and for now, it is possible to refill with something less than sunlight. One possible variation I'm seriously considering is to allow sanity to replenish only in sunlight¹. This would mean you'd have to "come up to the surface" every once in a while!

¹ Or any light level 15. I think there are mods which add such "super light", they would work too, unless I make a special effort to thwart this, which seems like too much work :-P
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Thu Aug 13, 2015 20:13

Version 0.2.1 released

Nothing major, though I have "milded down" the damage for darkness a bit. The most important change is an internal refactoring of the sanity storage code, which I now plan to use elsewhere as well.
 

User avatar
FreeLikeGNU
Member
 
Posts: 125
Joined: Tue Oct 28, 2014 02:50
GitHub: FreeLikeGNU
IRC: freelikegnu
In-game: FreeLikeGNU

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by FreeLikeGNU » Thu Aug 13, 2015 23:07

The premise reminds me of Amnesia: Dark Descent:
Daniel's sanity must be managed. Being in darkness too long, witnessing unsettling events, or staring at monsters will reduce Daniel's sanity, causing visual and auditory hallucinations and drawing the attention of monsters. Light sources help restore sanity, and if none are available Daniel may use tinderboxes to ignite candles in wall sconces and candelabra, or deploy an oil-burning lantern found near the beginning of the game. However, the number of tinderboxes and the amount of oil available are both limited, and standing in a light source also makes the player more noticeable to monsters. The player must balance the amount of time Daniel spends in light and shadow. Sanity is fully restored once Daniel completes an objective or progresses the game's story. It may also be restored by staying in the shadows until Daniel passes out, but this leaves him extremely vulnerable to any nearby monsters.

It would be cool to have a minetest adaptation of this theme.
 

User avatar
benrob0329
Member
 
Posts: 1238
Joined: Thu Aug 06, 2015 22:39
Location: Michigan
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Sat Aug 15, 2015 20:06

FreeLikeGNU wrote:The premise reminds me of Amnesia: Dark Descent…


Yes, that's partly where I got the idea of calling it "sanity" from. But Amnesia wasn't the original impulse for this mod – it was really that Minecraft's important "survive your first night" thing simply made no sense in Minetest / Minetest Game, which (at the time of writing, version 0.4.12) has no mods, and therefor no "hard" reason to even care about lights.

For a better Amnesia homage, the Beware the Dark mod would need to shift from "light management" to "sanity management" – i.e. have mobs or debuffs also drain sanity, have it be restorable by potions etc. And this actually sounds like a good idea. I'll set up an API where any other mod can add or drain sanity, and influence the sanity draining (think "radiant helmet that protects against darkness" :-P ). That should help.

benrob0329 wrote:Does it support the better HUD mod?


No, not yet, but it will. I'm going to basically steal the code from my other mod, Thirsty, which supports the builtin HUD, Better HUD, and the HUD bars mod. The toughest problem with Better HUD was creating and documenting the example configuration files, since all indicators need to be positioned by hand, but I'll steal those from Thirsty as well :-P
 

User avatar
benrob0329
Member
 
Posts: 1238
Joined: Thu Aug 06, 2015 22:39
Location: Michigan
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by benrob0329 » Sun Aug 16, 2015 06:04

Perhaps instead of potions, sleep, light, swimming, and drinking and/or splashing cold water on your face could help bring you back to reality.

And maybe the dirt/stone/sand monsters are really the aliens (that created mese) playing tricks on you, like a dream.....
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Tue Aug 18, 2015 20:30

Version 0.3.0 released

Now with support for Better HUD and Hudbars!

Well, not so much "and" as "or", what with them being mutually exclusive. But you get the idea.
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Mon Aug 24, 2015 19:28

Version 0.3.1 released

Bugfix: sanity was not reset on death.
 

User avatar
Ferk
Member
 
Posts: 337
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ferk » Mon Aug 24, 2015 21:19

This idea is really good! It reminds me more of "Don't Starve" than Amnesia.

In Don't Starve, the less sanity you have, the more strange visions do you see in the dark, when you have no sanity at all the shadow creatures become real and start attacking you until you die.

Sleeping regains a percentage of your sanity. Also picking flowers, eating sweets or being close to friendly mobs will restore some sanity. And some equipment (making a crown of flowers, for example) will give you some sanity per minute. You don't really gain sanity by just being in the light, though.

You can check this wikipage, might give some inspiration or ideas.

What would be really cool is to have some random, spooky and/or crazy sound effects when the sanity is low. Maybe deep breathing and so.
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Don » Tue Aug 25, 2015 01:53

This is a really cool mod. I like it. Great work.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Ben » Wed Aug 26, 2015 18:46

A lot of people are focussing on the "sanity" part of the mod – don't get me wrong, this is a good thing; a lot of interesting ideas and a lot of interest. But I have to say that it's not the purpose of this mod.

The purpose of this mod is to add a light management mechanic. To make "surviving your first night" different than "surviving your first day". To this end, I need something bad to happen to you in darkness, and to give players a better chance, and add some tactics, something should build up (or down) before the bad thing happens.

I could have just as well called this new resource "eyesight". If you don't listen to your mother, and don't turn on the lights, your eyesight will worsen. Until you start getting headaches, which then kill you a few minutes later :-P

So, thanks for your ideas. As I said above, I'm going to add an API which allows other mods to influence sanity, but other than that, I'd personally really like to stick to the light management idea for this mod. If you need more hooks, though, let me know ;-)
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by Don » Fri Aug 28, 2015 12:57

I have thirsty mod installed with this. The sanity bar is hidden by the thirsty bar. I tried it with better hud and it made the thirsty bar hidden by sanity bar.

Edit - If you set your x offset to -262 then it works. I have armor, thirst and hunger and they all work fine.
Last edited by Don on Fri Aug 28, 2015 15:17, edited 1 time in total.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
FreeLikeGNU
Member
 
Posts: 125
Joined: Tue Oct 28, 2014 02:50
GitHub: FreeLikeGNU
IRC: freelikegnu
In-game: FreeLikeGNU

Re: [Mod] Beware the Dark [bewarethedark] (WIP)

by FreeLikeGNU » Fri Aug 28, 2015 13:27

Ben wrote:A lot of people are focussing on the "sanity" part of the mod – don't get me wrong, this is a good thing; a lot of interesting ideas and a lot of interest. But I have to say that it's not the purpose of this mod.

but...
Current behavior
If you stand in a node with light level 7 or less, you slowly lose your sanity, represented by a "sanity meter" (a line of eyes). The darker it is, the more sanity you lose per second, and when it runs out, you get direct damage instead.


???
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot], wziard and 2 guests