Page 1 of 1

[MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sun Sep 20, 2015 5:40 am
by Doddler
Image

Thought it was safe to leave your base at night? Think again! This mod drastically increases the chances of getting attacked at night. The increase isn't obvious at the start of a new game, but as the evolution factor increases, the size and frequency of nighttime attacks also increases. Not that they won't still attack during the day, but nighttime will be especially scary.

Extra attacks won't start until evolution factor hits 0.1 to avoid making it too hard at the start of a new game, and though not terribly noticeable at the start, it gets progressively more dangerous as time goes on. Works well with the day/night extender mod, and will cause biters to come at you longer and harder at night, but more reprieve during the day. Note that biters will still need to be within pollution range to be drawn to attack your base. Might be especially scary if you drop it into an existing game!

I started with code from the judgement day mod as a base to figure out how to do this, so thanks to Adil for his original mod. Anything in the code is free for all if you want to use it for whatever. It operates by looping through alien bases and assigning them to groups, which are switched to autonomous, which will eventually result in them attacking.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sun Sep 27, 2015 1:56 am
by Doddler
Just a quick update, I've updated the mod to 0.1.2, which fixes an issue where the mod was leaking entries into the global table, making it take longer and longer to save your game each time. It should resolve shortly after restarting your game using the updated mod.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sun Sep 27, 2015 2:03 am
by Kane
Looks neat. I will give it a try. I'm trying make the gameplay a little more active so I have use for my walls / turrets besides creeping up.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Wed Oct 21, 2015 10:15 pm
by eberkain
Anyone know how to get this working in 0.12.12?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Fri Oct 23, 2015 8:14 am
by Ayebawl
by eberkain ยป Thu Oct 22, 2015 7:15 am

Anyone know how to get this working in 0.12.12?
Same, Please update for v0.12.12

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Thu Oct 29, 2015 6:36 pm
by StriderDen
I could get mine running by doing the 0.12.11 "fix" suggested.
I opened the control.lua file, and replaced every "game.on_" to "script.on_" in the script.

By doing that, I got it running, but as I couldn't play a long enough match to test it, I can't confirm it is running properly. It just doesn't display error messages.

Also, a suggestion to the author:
Wouldn't it be interesting if this mod had some sort of "Pitch Black" movie option? Like, having the biters repelled by lights?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Thu Nov 19, 2015 4:20 pm
by kinnom
something like this should be in the base game

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Wed Jan 20, 2016 8:05 am
by PST
This mod is a great idea! It's significantly harder to get through the night, and that's a warning to everyone playing with a day/night-extender mod , hehe ))

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Thu Jan 21, 2016 10:30 pm
by Thomasnotused
Just a little fun fact (maybe a bug):
If you turn on peaceful mode mid-game (don't know if starting with peaceful works the same), then the biters only attack at night. It's really neat, especially with the Day/Night Extender because you get the days to recover/rebuild, and during the night you just try to hold the line 8-)

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sun Feb 28, 2016 5:19 am
by Hexus_One
I get this error whenever I load or start a new sandbox/campaign game:
__scarynights__/control.lua:41: attempt to index global 'game' (a nil value)
However I am running with a bunch of other mods (also I'm running 0.12.24) so I will look for conflicts.
EDIT: I still get the same error when only this mod is activated - possibly the 0.12.11 update broke this mod? I will attempt to fix this as per the first line of this post here: viewtopic.php?t=17087
EDIT 2: I've appeared to fix it by replacing "game.on_" with "script.on_" in three lines (41, 46 and 58). I've uploaded the fix as an attachment.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sat Jul 16, 2016 11:39 pm
by tanelorn
Any chance of a .13 compatible version now?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sun Jul 31, 2016 9:39 am
by apriori
I was playing .12 with this mod on a very big map, but it's not updated to .13, so now I play without it on a smaller map. The difference is that now I have too low FPS/UPS. Either biters mechanics became less efficient in .13 or their amount just growths without Scary Nights - they don't attack me and don't become cannon fodder.

Could you please update this mod?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sun Jul 31, 2016 4:37 pm
by apriori
tanelorn wrote:Any chance of a .13 compatible version now?
Looks like I've done it...

Also added it to mods portal.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Wed Aug 03, 2016 2:31 pm
by ZombieMooose
does this work with other mods that affect ai? such as biter seasons?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Tue Aug 16, 2016 12:44 pm
by apriori
diongham wrote:does this work with other mods that affect ai? such as biter seasons?
I guess yes. This mod just makes enemies attack you each night. No additional spawning or another behavior.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sat Sep 03, 2016 8:37 am
by TheTom
What about a .14 version?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sat Sep 03, 2016 8:38 am
by apriori
TheTom wrote:What about a .14 version?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Thu Oct 13, 2016 1:33 am
by Zaflis
I was testing this mod a bit in 0.14, and i found out it is the cause for 5 fps drop spikes every 10 seconds. I timed it and everything. Disabled and enabled this mod a couple times to be sure it's indeed this mod's fault. That was at a daytime base too, which shouldn't be the area this mod even effects?

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Sat Mar 18, 2017 2:48 am
by Schismatise
Can confirm regular frame freezes in 0.14, which is a shame because the mod actually works wonders. Would be grand to see it updated.. I'm trawling through the code now, but it's all fairly well beyond me, so I'm not sure I could solve anything.. lots of loops and math and stuff.

Edit: Rampant seems like a viable alternative, though quite different at the same time.

Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)

Posted: Thu May 04, 2017 8:52 am
by Peter34
No 0.15 update for this mod?