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

Topics and discussion about specific mods
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 »

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 »

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 »

@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: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

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

Post by Airat9000 »

please screen friend!

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

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

Post by Nova »

"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.

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 »

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: 2165
Joined: Thu Jun 12, 2014 3:05 am
Contact:

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

Post by Ranakastrasz »

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 »

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: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

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

Post by Airat9000 »

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 »

Airat9000 wrote:mod work?
Yep, works.

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

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

Post by Airat9000 »

0.10.8 not work
bug
Image

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

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

Post by Airat9000 »

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 »

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 »

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
120 solar panels<br />286 accumulators
120 solar panels
286 accumulators
factorioRatio2.png (1.06 MiB) Viewed 16551 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 »

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: 92
Joined: Wed May 21, 2014 1:14 pm
Contact:

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

Post by Ackos »

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: 165
Joined: Mon Mar 30, 2015 11:10 am
Contact:

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

Post by Proxy »

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?

Post Reply

Return to “Mods”