[MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Topics and discussion about specific mods
Post Reply
Dark
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed May 07, 2014 12:45 pm
Contact:

[MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Dark » Fri Jul 25, 2014 1:32 pm

This small and simple mod makes day & night last 3 times longer.

Day and night cycle lasts 21 minutes of real time with this mod VS 7 minutes of real time without mods.

Download (1 kb)

Mod can be configured to extend only day or nigh, proportions are also configurable.

Code: Select all

-- configuration inside control.lua 
local EXTEND_NIGH = 2 -- (integer) This variable controls how much extended the night will be, can be set to zero for standard 3.5 minutes night
local EXTEND_DAY  = 2 -- Same as above but for day

-- For example, setting EXTEND_DAY to 1 and setting EXTEND_NIGH to 2 will make 7 minutes long days and 10.5 minutes long nights

MCDomYT
Inserter
Inserter
Posts: 48
Joined: Wed Jan 15, 2014 7:29 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by MCDomYT » Fri Jul 25, 2014 3:26 pm

so could this be used to remove nighttime all together? :)
Thanks
MCDomYT
(Dom)

http://www.youtube.com/MCDomYT

Dark
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed May 07, 2014 12:45 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Dark » Fri Jul 25, 2014 3:32 pm

@MCDomYT, this is not the purpose of this mod, if you really need to get rid of night then just type this in the console:

Code: Select all

game.alwaysday = true
No mods necessary.

Airat9000
Smart Inserter
Smart Inserter
Posts: 1318
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Airat9000 » Fri Jul 25, 2014 6:09 pm

please screen friend!

User avatar
Nova
Filter Inserter
Filter Inserter
Posts: 921
Joined: Mon Mar 04, 2013 12:13 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Nova » Fri Jul 25, 2014 7:44 pm

"screen"? Did you mean you want a picture? Why? That's a mod with no need for a picture, and it would even be pretty hard to make a picture.


An easy question: Why would you make the night any longer? xD
Greetings, Nova.
Factorio is one of the greatest games I ever played, with one of the best developers I ever heard of. Image

Dark
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed May 07, 2014 12:45 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Dark » Fri Jul 25, 2014 8:22 pm

I'm not aiming at making only night longer, the whole day/night cycle feels too short (only 7 minutes of real time)
If you're interested in making nights longer I suggest looking at this mod to make nights less boring.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 1999
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Ranakastrasz » Fri Aug 08, 2014 8:05 pm

Suggest altering data file.
Suggest the default (3 and a half minutes?) be 210 for 210 seconds, for each, or else 3.5 for 3 and a half minutes.

Otherwise, 1 should be normal night/day length, 2 doubled, and 0.5 halved, and so on.

Add commented data (ignored data) which states how it interprets the data.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Dark
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed May 07, 2014 12:45 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Dark » Sun Aug 10, 2014 12:25 pm

Ranakastrasz wrote:Suggest altering data file.
Suggest the default (3 and a half minutes?) be 210 for 210 seconds, for each, or else 3.5 for 3 and a half minutes.

Otherwise, 1 should be normal night/day length, 2 doubled, and 0.5 halved, and so on.

Add commented data (ignored data) which states how it interprets the data.
I can hardly understand what you're trying to say. Commented data? Ignored data? WUT?

Airat9000
Smart Inserter
Smart Inserter
Posts: 1318
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Airat9000 » Sun Aug 10, 2014 12:32 pm

mod work?

Dark
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed May 07, 2014 12:45 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Dark » Sun Aug 10, 2014 1:35 pm

Airat9000 wrote:mod work?
Yep, works.

Airat9000
Smart Inserter
Smart Inserter
Posts: 1318
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Airat9000 » Sun Aug 17, 2014 2:57 pm

0.10.8 not work
bug
Image

Airat9000
Smart Inserter
Smart Inserter
Posts: 1318
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Airat9000 » Tue Feb 03, 2015 8:20 am

0.11.13 work?

Vizzy
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Aug 04, 2015 5:57 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Vizzy » Tue Aug 04, 2015 7:29 pm

I've unofficially updated this mod for [0.12.2].

Let me know if there's any problems with this!

reububble
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Aug 13, 2015 3:56 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by reububble » Thu Aug 13, 2015 4:03 pm

Cool beans. I did some maths, and some art. I made a good solar panel and accumulator grid, like the useful one that works on the usual speed. With the default 3 times length, the ratio to aim for is 2.52 accumulators per solar panel. Fitting that into a grid looks like this.
Attachments
factorioRatio2.png
120 solar panels
286 accumulators
factorioRatio2.png (1.06 MiB) Viewed 10062 times

User avatar
Sedado77
Fast Inserter
Fast Inserter
Posts: 132
Joined: Sun Feb 09, 2014 11:32 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Sedado77 » Tue Sep 22, 2015 7:03 pm

Does this work on 0.12?? Want to use it... Or do i just use the code in my vanilla install and modify it?

Ackos
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Wed May 21, 2014 1:14 pm
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Ackos » Tue Sep 22, 2015 7:08 pm

Sedado77 wrote:Does this work on 0.12?? Want to use it... Or do i just use the code in my vanilla install and modify it?
Still works for me.

User avatar
Proxy
Fast Inserter
Fast Inserter
Posts: 162
Joined: Mon Mar 30, 2015 11:10 am
Contact:

Re: [MOD 0.10.x] Longer Day/Night Cycle (DayNightExtender)

Post by Proxy » Fri Oct 23, 2015 6:04 pm

Ackos wrote:
Sedado77 wrote:Does this work on 0.12?? Want to use it... Or do i just use the code in my vanilla install and modify it?
Still works for me.
well, it does not work for me.
I edited the Mod to fix it, but i'm still getting this: "__DayNightExtender__/control.lua:11: LuaBootstrap doesn't contain key freeze_daytime."
Sadly, I can't find the Vanilla code to compare it, so i have to deactivate the Mod.

Got any ideas where the Vanilla day/night code is?
Let's just wait til the Age of Iron Stars

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: Bing [Bot], Zogi