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

Topics and discussion about specific mods
Doddler
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Sep 18, 2015 4:22 pm
Contact:

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

Post 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.
Attachments
scarynights_0.1.2.zip
(2.59 KiB) Downloaded 1316 times
Last edited by Doddler on Sun Sep 27, 2015 4:37 am, edited 2 times in total.
Doddler
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Sep 18, 2015 4:22 pm
Contact:

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

Post 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.
Last edited by Doddler on Sun Sep 27, 2015 2:50 am, edited 1 time in total.
User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

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

Post by StoneLegion »

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.
eberkain
Burner Inserter
Burner Inserter
Posts: 14
Joined: Tue Oct 20, 2015 9:19 pm
Contact:

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

Post by eberkain »

Anyone know how to get this working in 0.12.12?
Ayebawl
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Oct 22, 2015 7:27 pm
Contact:

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

Post 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
StriderDen
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Oct 29, 2015 6:30 pm
Contact:

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

Post 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?
kinnom
Filter Inserter
Filter Inserter
Posts: 706
Joined: Fri Dec 26, 2014 4:20 pm
Contact:

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

Post by kinnom »

something like this should be in the base game
no yes yes no yes no yes yes
PST
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Jan 20, 2016 7:47 am
Contact:

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

Post 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 ))
User avatar
Thomasnotused
Filter Inserter
Filter Inserter
Posts: 262
Joined: Thu Jan 29, 2015 9:58 pm
Contact:

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

Post 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-)
I have no idea what I'm doing.
Hexus_One
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Feb 28, 2016 5:17 am
Contact:

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

Post 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.
Attachments
scarynights_0.1.3.zip
(6.08 KiB) Downloaded 436 times
tanelorn
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat Jul 16, 2016 12:41 am
Contact:

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

Post by tanelorn »

Any chance of a .13 compatible version now?
apriori
Filter Inserter
Filter Inserter
Posts: 275
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

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

Post 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?
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.
apriori
Filter Inserter
Filter Inserter
Posts: 275
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

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

Post by apriori »

tanelorn wrote:Any chance of a .13 compatible version now?
Looks like I've done it...

Also added it to mods portal.
Attachments
scarynights_0.1.2.zip
Updated for 0.13
(2.6 KiB) Downloaded 195 times
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.
User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

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

Post by ZombieMooose »

does this work with other mods that affect ai? such as biter seasons?
"men will literally learn everything about ancient Rome instead of going to therapy"
apriori
Filter Inserter
Filter Inserter
Posts: 275
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

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

Post 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.
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.
TheTom
Fast Inserter
Fast Inserter
Posts: 186
Joined: Tue Feb 09, 2016 8:33 am
Contact:

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

Post by TheTom »

What about a .14 version?
apriori
Filter Inserter
Filter Inserter
Posts: 275
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

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

Post by apriori »

TheTom wrote:What about a .14 version?
Attachments
scarynights_0.1.4.zip
(2.65 KiB) Downloaded 198 times
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.
Zaflis
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Apr 24, 2016 12:51 am
Contact:

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

Post 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?
Schismatise
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 05, 2017 3:04 am
Contact:

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

Post 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.
Peter34
Smart Inserter
Smart Inserter
Posts: 1100
Joined: Mon Nov 10, 2014 12:44 pm
Contact:

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

Post by Peter34 »

No 0.15 update for this mod?
Post Reply

Return to “Mods”