[MOD 0.12.X] Scary Nights (Biter attacks increase at night)
[MOD 0.12.X] Scary Nights (Biter attacks increase at night)
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.
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
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.
- StoneLegion
- 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)
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)
Anyone know how to get this working in 0.12.12?
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
Same, Please update for v0.12.12by eberkain » Thu Oct 22, 2015 7:15 am
Anyone know how to get this working in 0.12.12?
-
- 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)
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?
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)
something like this should be in the base game
no yes yes no yes no yes yes
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
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 ))
- Thomasnotused
- 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)
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
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
I have no idea what I'm doing.
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
I get this error whenever I load or start a new sandbox/campaign game:
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.
However I am running with a bunch of other mods (also I'm running 0.12.24) so I will look for conflicts.__scarynights__/control.lua:41: attempt to index global 'game' (a nil value)
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
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
Any chance of a .13 compatible version now?
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
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?
Could you please update this mod?
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
Looks like I've done it...tanelorn wrote:Any chance of a .13 compatible version now?
Also added it to mods portal.
- Attachments
-
- scarynights_0.1.2.zip
- Updated for 0.13
- (2.6 KiB) Downloaded 196 times
- ZombieMooose
- 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)
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"
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
I guess yes. This mod just makes enemies attack you each night. No additional spawning or another behavior.diongham wrote: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)
What about a .14 version?
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
TheTom wrote:What about a .14 version?
- Attachments
-
- scarynights_0.1.4.zip
- (2.65 KiB) Downloaded 198 times
Re: [MOD 0.12.X] Scary Nights (Biter attacks increase at night)
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?
-
- 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)
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.
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)
No 0.15 update for this mod?