[MOD 0.13] DayNightExtender - longer day/night cycles

Topics and discussion about specific mods
User avatar
Xinef
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Oct 11, 2016 7:34 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Xinef »

thereaverofdarkness wrote:What do you mean by surface?
Surfaces in Factorio are separate maps that exist on the same server at the same time. It's similar to dimensions in Minecraft. In Factorio you could think of them as separate planets in the same universe.

I think some servers and some custom maps may use more than one surface, but your typical Factorio game has only one surface. Although some of the planned features of Factorio may involve space travel and whatnot, so probably we'll see more uses for surfaces in the future.
User avatar
thereaverofdarkness
Filter Inserter
Filter Inserter
Posts: 558
Joined: Wed Jun 01, 2016 5:07 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by thereaverofdarkness »

Ah, I see.

So then how do I change the values on a per surface basis? Is there a command I can use?
fireship4
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Apr 25, 2017 9:48 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by fireship4 »

Thanks for the mod.

Will there be an update to make it compatible with 15.1?

EDIT: I have been able to load a game from 0.14.22 into 0.15.2 (it was crashing in 0.15.1) with DNE disabled, but the clock is frozen at 13.58. A solution would be appreciated (main thread, including log file and saves: viewtopic.php?f=49&t=44792&p=258441#p258441).
sbadkins4@yahoo.com
Burner Inserter
Burner Inserter
Posts: 18
Joined: Tue Aug 02, 2016 1:13 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by sbadkins4@yahoo.com »

Sir/Ma'am,
Got this error on .15.13
Thank you for your time.
Attachments
20170523112734_1.jpg
20170523112734_1.jpg (478.27 KiB) Viewed 7985 times
ycen
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu Sep 03, 2015 12:51 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by ycen »

Hello,
I have the same error as mentioned above.
I also delete all other mods, to test if its a other mod that "bites"

:)

Thanks in advance
MainTango
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Tue Oct 27, 2015 12:22 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by MainTango »

I can confirm. Getting the same error when loading my save in 0.15.13.

Edit: A friend of mine seems to have fixed it for now. It has to do with a change in scripting. From the changelog:
Changed LuaSurface::freeze_daytime() to freeze_daytime read/write.
In the DayNightExtender_1.1.11.zip open control.lua. Change line #48 from

Code: Select all

surf.freeze_daytime(false)
to

Code: Select all

surf.freeze_daytime = false
and line #50 from

Code: Select all

surf.freeze_daytime(true)
to

Code: Select all

surf.freeze_daytime = true
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by binbinhfr »

strange, I tested it here and no problem.
are you sure you are not using another mod that is messing with surfaces, because freeze_daytime is a surface related function.
I will download and try with latest factorio subversion. (I do not have time to play factorio anymore...)

EDIT: just see your last post.

OK, it's a change in the API in very last 0.15.13 version... I will correct the package and republish as soon as I have install the new version for testings.

EDIT : tested and updated on portal.
My mods on the Factorio Mod Portal :geek:
Recon777
Filter Inserter
Filter Inserter
Posts: 267
Joined: Fri Jun 10, 2016 4:04 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Recon777 »

Maybe make the config available in the game UI instead of editing a lua file?
User avatar
thereaverofdarkness
Filter Inserter
Filter Inserter
Posts: 558
Joined: Wed Jun 01, 2016 5:07 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by thereaverofdarkness »

I found a mod (Axial Tilt) which is able to alter the ratio of day vs night, but it overrides Day Night Extender and sets the cycle length back to 7 minutes. Could you mod Day Night Extender with similar code to enable a user to alter the ratio of day and night? I don't need the ratio to change over time, I just want to set it to 50/50 (or rather 40/10/40/10) rather than the current 70/30 (50/20/10/20).
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by binbinhfr »

sorry, as I told you, I do not play factorio anymore, so I won't develop new features.
My mods on the Factorio Mod Portal :geek:
Anuanu
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 10, 2015 2:33 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Anuanu »

Game day/night is frozen after removing this mod. Is there a way to unfreeze it without disabling achievements?
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by binbinhfr »

Anuanu wrote:Game day/night is frozen after removing this mod. Is there a way to unfreeze it without disabling achievements?
reinstall the mod.
then type in console :
/c remote.call( "daynight", "off" )

then uninstall the mod again.
My mods on the Factorio Mod Portal :geek:
Anuanu
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 10, 2015 2:33 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Anuanu »

binbinhfr wrote:
Anuanu wrote:Game day/night is frozen after removing this mod. Is there a way to unfreeze it without disabling achievements?
reinstall the mod.
then type in console :
/c remote.call( "daynight", "off" )

then uninstall the mod again.

Doesnt using the /c disable achievements though? Do you have to save the game after you do this?
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Airat9000 »

Please 16 update
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by binbinhfr »

updated
My mods on the Factorio Mod Portal :geek:
knightofrust
Inserter
Inserter
Posts: 23
Joined: Fri Feb 13, 2015 10:45 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by knightofrust »

Hello.
Is there a way to make lamps and night vision goggles turn on sooner than in vanilla?
Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Yehn »

Would it be possible to have the multiplier as a setting in settings.lua? (So we can change it more easily).

Thanks
WildBraas
Inserter
Inserter
Posts: 44
Joined: Sat Feb 16, 2019 6:25 am
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by WildBraas »

0.17 Please? Its very usefull!
Baleur
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 12, 2014 10:17 pm
Contact:

Re: [MOD 0.13] DayNightExtender - longer day/night cycles

Post by Baleur »

Just edit the version number in info.json to 0.17 instead of 0.16, now the game will load the mod, seems to still work =)
Wish we had an ingame setting to simply "ignore compatability warning", like in Civ6's ingame mod manager.
Post Reply

Return to “Mods”