[MOD 0.13] Afraid of the dark - lights, lamps & vision.
Posted: Thu Apr 14, 2016 11:34 pm
by binbinhfr
Infos
Type: Mod
Name: AfraidOfTheDark
Description: Night is too dark for you ? Enforced flashlight and personal lights, powerful balloon lights or a pair of natural tinted night glasses could be the solution !
Tested-With-Factorio-Version: 0.13.0
Multiplayer compatible: tested on a headless server...
Locale: english, french, german
Tags: Night vision, Glasses, Lamp, Light, Vehicles
License: You are free to use and distribute this mod and also to modify it for personal use, but not to release a modified version without permission (unless visibly not maintained anymore).
Description
Nights are too dark for you ?
When the shadows come, you're afraid of the BBBB (Big Bad Behemoth Bitter) ?
You're tired of bumping your head into electrical poles at midnight ?
Then this mod is for you !!!
You now have three progressive solutions to unveil the shadows :
First, did you notice that, at night, you have an omindirectional light covering a circular area around you, and also a personal light cone ? This mod enforces these personal lights you are carrying with you. It also works when you are inside a vehicle (car, tank, airplane, and also moving locomotives). You can customize this enforcement by editing the config.lua file.
afraidofthedark-screencopy7.jpg (59.33 KiB) Viewed 49981 times
Second, in the middle game, researching "optics" gives you access to a new powerful lamp : the "balloon light", that has a really wider ligthing area than the classical small lamp :
afraidofthedark-screencopy8.jpg (87.06 KiB) Viewed 55183 times
Third, in the later game, researching "night vision" gives you access to another pair of glasses to wear in your armor : the "perfect night glasses". With these, you can see as if it was noon under the sun ! They are very efficients to hunt in nightclubs too, but alas, you are alone on this planet :
afraidofthedark-screencopy9.jpg (150.65 KiB) Viewed 55183 times
And it is even a little smaller than the green military night vision equipement : 2x2 instead of 3x2 !
And now that the night almost vanished, if you cannot tell what hour of the day it is anymore, just check my Time Tools mod...
Download
For Factorio 0.13.X : Please now use the portal for downloads (see link above or use ingame mod install/update), as I won't update both downloads links here anymore.
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 6:07 am
by Sander_Bouwhuis
Ooooooooooooooooooooooh!!!! This is totally fantastic!
I'm going to try the mod and report back in 15 mins.
Edit:
Ok, just tried it out.
1. The lights are fantastic. They really illuminate an area well.
2. The night vision goggles I can't test yet. This is why I hate the nights: night vision is a late game item because you need blue electronics boards for using them. By that time you normally have illuminated your complete factory anyway.
I checked the mod and it states:
Lamp -> light = {intensity = 0.95, size = 120}
Goggles -> light = {intensity = 0.5, size = 40}
Can you tell me what the original intensity and size is?
I think the lamp is -> light = {intensity = 0.9, size = 40}
I couldn't find the goggles though.
PS
I now see you're the same guy/girl who did the 'Water well' and 'Big bags' mods.
!!!YOU ARE AMAZING!!!
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 7:06 am
by binbinhfr
Happy to make you happy
Well I finished this mod a little late last night, so the code is not so clean, even if it works.
Infact the "light" line on the goggles has no effect, it was just a try I made. I forgot to delete this useless line.
On the goggles, the only active variable seems to be the tint, that gave a greenish overlighted feeling. I just suppress this and revamp the item, icon, insert into a technology, etc...
On the light, you are right, the classical lamp is {intensity = 0.9, size = 40} : I tripled the radius, enforce a little bit the light and increase the consumption to be consistent. And of course, I draw a new little look, which took me a lot of time comparing to the rest
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 8:02 am
by seronis
Night vision goggles should not be daylight brightness. You should be able to tell its nighttime, just let it be light enough to see. Easy tweak to make on my own copy though. Great work
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 8:43 am
by Sander_Bouwhuis
Indeed, just enough so you can see the surroundings, and still see it's night time.
I'm looking forward to trying the night-vision goggles.
In all honesty, I would prefer leaving the lamp in its original state (picture). Only the light/radius adjustment was needed.
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 9:08 am
by binbinhfr
Sander_Bouwhuis wrote:In all honesty, I would prefer leaving the lamp in its original state (picture). Only the light/radius adjustment was needed.
Ha ha, I am afraid that's the way it will remain. Because if you want a greater effect, it seems logical that you have to install a bigger machine. For example, that's the same for electric poles : to get a wider range, you have a bigger pole, less easy to install. All is about balance, nothing is free
seronis wrote:Night vision goggles should not be daylight brightness. You should be able to tell its nighttime, just let it be light enough to see. Easy tweak to make on my own copy though. Great work
Could you tell me what kind of tweak you changed on the glasses to get a little more dark without tinting or greying ? Because I tried a few things and did not find something nice...
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 10:07 am
by Speadge
sth i dont understand:
when i'd want to disable game mechanics like the night, I'd use the console.
basically, the glasses dont do sth else in my opinion: thy totally eliminate the night - i dont even get a Feeling for when my solar Panels stop working.
IMHO - i'd prefer a mod that even darkens the 14% brightness at night to about 5% or less...
Re: [MOD 0.12.X] Afraid of the dark 1.0.0
Posted: Fri Apr 15, 2016 10:56 am
by binbinhfr
Speadge wrote:sth i dont understand:
when i'd want to disable game mechanics like the night, I'd use the console.
basically, the glasses dont do sth else in my opinion: thy totally eliminate the night - i dont even get a Feeling for when my solar Panels stop working.
IMHO - i'd prefer a mod that even darkens the 14% brightness at night to about 5% or less...
If you disable the night, you cannot play with the solar panels / accumulators anymore... Thats' why some people want to have more lights in the night.
But if you like darkness, obvisously my mod called "Afraid of the dark" is not the one you need . Have a look at Longer Day/Night Cycles.
I don't like to add features without research or crafting costs, but I changed the personal lights around the player (the overall circular light and the cone light).
So this feature is enable from the beginning, for free.
You can edit the config.lua file to change the settings of the personal lights :
- you can enforce these lights to lighten up the night just around you, without having the infinite full day vision as with the glasses (try the default settings).
- you can also decrease these settings to get even darker nights (so that Speadge will be happy, because he is NOT afraid of the dark )
Re: [MOD 0.12.X] Afraid of the dark 1.0.1
Posted: Fri Apr 15, 2016 3:05 pm
by Sander_Bouwhuis
Changing the personal light is a very smart way to do it!
I didn't try the goggles yet, because as I said, I don't have blue electronic boards yet so I can't use them.
Re: [MOD 0.12.X] Afraid of the dark 1.0.2
Posted: Sat Apr 23, 2016 3:16 pm
by binbinhfr
here is v1.0.2
Personal light now works when you are inside vehicles : cars, tanks, airplanes and also moving locomotives.
Re: [MOD 0.12.X] Afraid of the dark 1.0.3
Posted: Wed Apr 27, 2016 6:47 pm
by binbinhfr
here is v1.0.3
Improves multiplayer compatibility.
Re: [MOD 0.12.X] Afraid of the dark 1.0.3
Posted: Sat Apr 30, 2016 1:37 pm
by Sander_Bouwhuis
HUGE thanks!
Re: [MOD 0.12.X] Afraid of the dark 1.0.4
Posted: Fri May 06, 2016 6:38 pm
by binbinhfr
thx Sander !
here is v1.0.4
apply also to all other player types, not only basic player/player (like FARL and YARM avatars).
Re: [MOD 0.12.X] Afraid of the dark 1.0.5
Posted: Fri May 13, 2016 9:42 am
by withers
What if the night is dark and full of terror? What then???
Re: [MOD 0.12.X] Afraid of the dark 1.0.5
Posted: Fri May 13, 2016 11:16 am
by binbinhfr
withers wrote:What if the night is dark and full of terror? What then???
then
Re: [MOD 0.12.X] Afraid of the dark - improved lights & vision.
Posted: Fri Jun 17, 2016 12:27 am
by sporefreak
getting an error
ERROR
Failed to load mod "AfraidOfTheDark 1.0.5"
__AfraidOfTheDark__/data-updates.lua:8: bad argument #1 to 'pairs' (table expected, got nil)
Re: [MOD 0.12.X] Afraid of the dark - improved lights & vision.
Posted: Fri Jun 17, 2016 7:11 am
by binbinhfr
sporefreak wrote:getting an error
ERROR
Failed to load mod "AfraidOfTheDark 1.0.5"
__AfraidOfTheDark__/data-updates.lua:8: bad argument #1 to 'pairs' (table expected, got nil)
Hi,
it probably comes from an incompatibility with one of your other mods.
Do you have mods that creates alternate player characters / cars / tanks / locomotives ? Please send me your mod-list.json to be sure.
Re: [MOD 0.12.X] Afraid of the dark - improved lights & vision.
Posted: Fri Jun 17, 2016 7:40 am
by binbinhfr
Until underdstanding what's the problem, to avoid the error, I added a test, so please download v1.0.6 .
Re: [MOD 0.12.X] Afraid of the dark - improved lights & vision.
Posted: Fri Jun 17, 2016 5:33 pm
by sporefreak
binbinhfr wrote:
it probably comes from an incompatibility with one of your other mods.
I have no doubt.
binbinhfr wrote:
Do you have mods that creates alternate player characters / cars / tanks / locomotives ? Please send me your mod-list.json to be sure.
Oh boy do I
1.0.6 srrmd to have fixed the issue. Thanks!