[MOD 0.13] Time Tools (& Clock Combinator)

Topics and discussion about specific mods
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[MOD 0.13] Time Tools (& Clock Combinator)

Post by binbinhfr »

Infos
  • Type: Mod
  • Name: TimeTools
  • Description: Adds a tiny time toolbar at the top of the UI, that displays an ingame clock, allows to switch from night-and-day mode to continuous daylight and to tweak game speed. Also adds a Clock Combinator item to have access to time/daylight/luminosity variables through the logistic network.
  • Tested-With-Factorio-Version: 0.13.0
  • Multiplayer compatible: tested on a headless server...
  • Locale: english, french, german
  • Tags: Time, Daylight, Game speed, Clock combinator
  • License: You are free to use and distribute this mod and also to modify it for personal use, but not to release a modified version without permission (unless visibly not maintained anymore).
  • Portal download : https://mods.factorio.com/mods/binbinhfr/TimeTools
timetools-screencopy7.jpg
timetools-screencopy7.jpg (56.01 KiB) Viewed 36736 times
Description
Download
For Factorio 0.13.X :
Please now use the portal for downloads (see link above or use ingame mod install/update), as I won't update both downloads links here anymore.




You can probably find some of these features in other separate mods, but I gather them into one simple mod with a tiny gui bar.

Thanks for GopherAtl and his Nixie Tubes mod that I use to display numbers in my last screenshot.

The classic display of the first screenshot is from my SmartDisplay mod.
Last edited by binbinhfr on Fri Aug 05, 2016 5:36 pm, edited 66 times in total.
My mods on the Factorio Mod Portal :geek:
Alexs
Fast Inserter
Fast Inserter
Posts: 102
Joined: Sun Sep 07, 2014 9:46 am

Re: [MOD 0.12.29+] TimeBar v1.0.0

Post by Alexs »

uppssss...
Attachments
timebar.jpg
timebar.jpg (135.55 KiB) Viewed 42155 times
Factorio2016
Fast Inserter
Fast Inserter
Posts: 136
Joined: Wed Dec 23, 2015 1:17 pm
Contact:

Re: [MOD 0.12.29+] TimeBar v1.0.0

Post by Factorio2016 »

confirm! when you create a new game same thing! :(
English is not my native language. Translator.
blacky
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Apr 01, 2016 9:30 am
Contact:

Re: [MOD 0.12.29+] TimeBar v1.0.0

Post by blacky »

confirmed, broken, same problem
User avatar
Roktaal
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sat Mar 26, 2016 6:42 pm
Contact:

Re: [MOD 0.12.29+] TimeBar v1.0.0

Post by Roktaal »

Until the OP makes the changes you can open control.lua and change all instances of "butimon" to "button"
Alexs
Fast Inserter
Fast Inserter
Posts: 102
Joined: Sun Sep 07, 2014 9:46 am

Re: [MOD 0.12.29+] TimeBar v1.0.0

Post by Alexs »

thx rocktaal, it works.

..and THX for your mod, binbinbar..
Attachments
control.lua
(3.55 KiB) Downloaded 421 times
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.29+] TimeBar v1.0.0

Post by binbinhfr »

Ooops, sorry for the error. I did not detect it because my GUI was created for a long time now...

Corrected in the original zip file.
My mods on the Factorio Mod Portal :geek:
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.30+] Time Tools

Post by binbinhfr »

I extended this mod with Clock Combinators, to have access to several time and daylight variables through the logistic network. Could be usefull to trigger some actions at night, or only when the sun is up.

I also revamp the interface and add a freeze time feature.

Now the mod should be multiplayer compatible, but as I'm always playing solo, I cannot test it, so please, I am interested by some feedback on this aspect.

As I renamed the mod from "Time Bar" to "Time Tools", do not forget to delete the previous "Time Bar" mod, if you installed it before...
My mods on the Factorio Mod Portal :geek:
apcnc
Inserter
Inserter
Posts: 20
Joined: Fri Apr 08, 2016 1:34 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.1 (& Clock Combinator)

Post by apcnc »

german locale

Code: Select all

[item-name]
clock-combinator = Uhrenkombinator

[recipe-name]
clock-combinator = Uhrenkombinator

[entity-name]
clock-combinator = Uhrenkombinator

[virtual-signal-name]
signal-clock-gametick=Uhr/Gameticks
signal-clock-day=Uhr/Tag
signal-clock-hour=Uhr/Stunde
signal-clock-minute=Uhr/Minute
signal-clock-darkness=Uhr/dunkelheit
signal-clock-lightness=Uhr/helligkeit
signal-clock-alwaysday=Uhr/immer Tag

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

Re: [MOD 0.12.X] Time Tools 1.0.1 (& Clock Combinator)

Post by binbinhfr »

apcnc wrote:german locale
Thanks again, guy !

And so here is v1.0.2 :
Adds locale for german (thanks to Apcnc) and french (my own langage).
download v1.0.2
My mods on the Factorio Mod Portal :geek:
Alexs
Fast Inserter
Fast Inserter
Posts: 102
Joined: Sun Sep 07, 2014 9:46 am

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by Alexs »

Thanks for the update.
There is at me a small problem:
I'm already at day 375 (EVO-GUI) in the game, but it is only 7 day display.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by binbinhfr »

Alexs wrote:Thanks for the update.
There is at me a small problem:
I'm already at day 375 (EVO-GUI) in the game, but it is only 7 day display.
Well, I installed EVO-GUI, and it seems to me that it shows your play-time since the beginning of the scenario in days/hours (you see that the seconds are close to real seconds). It is extrapolated from the gameticks variable provided by the API. This time is a real playtime, if you keep game speed at x1. If you increase game speed, this time also speeds up.

Under this value, if you expand the EVO gui, you have the ingame-time (calculated from the daytime API variable) : my clock displays this apparent time in the game (which is ticking far quicker). This is the ingame time corresponding to the cycle of days/nights in the game. In one real day, you have a lot of factorio days :-) My mod displays this number of days, not the number of real days you played the game.

Note that if you choose "always day", the game time is blocked to 12:00 (full sun) and also my day-counter is blocked, but your real playtime still increases.

As far as I know, there is no intern API counter for the number of ingame-days, so my mod count them from the moment you installed it, increasing of +1 each time the ingame-clock goes from 23:59 to 00:00. So day 0 in my mod starts at the moment you installed my mod in your scenario...

So my clock is not here to show your playtime, but to help you dealing with the cycle of night and days. To see when your accumulators will works, to trigger some actions with the clock-combinator depending on the ambient luminosity, etc...
My mods on the Factorio Mod Portal :geek:
Sander_Bouwhuis
Filter Inserter
Filter Inserter
Posts: 292
Joined: Mon Dec 07, 2015 10:45 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by Sander_Bouwhuis »

Ok, maybe outside of the scope of this mod but maybe you can help.

I'm looking for a mod to make the night a little less dark. So, I still want the night to be there (for solar panel purposes), but don't want it so I can hardly see anything.

Is that something you could add to your mod?
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by binbinhfr »

Sander_Bouwhuis wrote: I'm looking for a mod to make the night a little less dark. So, I still want the night to be there (for solar panel purposes), but don't want it so I can hardly see anything.
Is that something you could add to your mod?
Well not in my mod. Infact the only way to do this seems to constantly tweak the clock like in this mod : viewtopic.php?f=120&t=14509

But then the game-clock is speeding, slowing and freezing to simulate the type of day you want. In your case, you'll have to freeze time when the night starts to fall, then wait some time, and then swith directly to morning when sun climbs up again. You'd better ask the other modder if you can achieve this with his mod. ;)
My mods on the Factorio Mod Portal :geek:
Sander_Bouwhuis
Filter Inserter
Filter Inserter
Posts: 292
Joined: Mon Dec 07, 2015 10:45 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by Sander_Bouwhuis »

Ok, that's a shame.

I thought because you had looked into the day/night cycle you would also know how to change the light level at night.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by binbinhfr »

Sander_Bouwhuis wrote:Ok, that's a shame.

I thought because you had looked into the day/night cycle you would also know how to change the light level at night.
Some other modders or devs can correct me, but I don't think that you can modify the luminosity independantly from the game-time-of-the-day.

Did you check the craftable item Night Vision https://wiki.factorio.com/index.php?title=Night_vision ?

Otherwise, you have to put Lamps everywhere ! https://wiki.factorio.com/index.php?title=Lamp
My mods on the Factorio Mod Portal :geek:
Sander_Bouwhuis
Filter Inserter
Filter Inserter
Posts: 292
Joined: Mon Dec 07, 2015 10:45 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by Sander_Bouwhuis »

Yes, I did see that mod. Thanks for reminding.
Lamps everywhere is what I do now.

Thanks for your mod and info.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by binbinhfr »

Sander_Bouwhuis wrote:Yes, I did see that mod. Thanks for reminding.
Lamps everywhere is what I do now.

Thanks for your mod and info.
Well I write a little mod for you tonight :
have a look at this mod.
My mods on the Factorio Mod Portal :geek:
Sander_Bouwhuis
Filter Inserter
Filter Inserter
Posts: 292
Joined: Mon Dec 07, 2015 10:45 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.2 (& Clock Combinator)

Post by Sander_Bouwhuis »

@binbinhfr

!!!TOTALLY AWESOME!!!
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Time Tools 1.0.3 (& Clock Combinator)

Post by binbinhfr »

here is v1.0.3 : just a change to remote interface to set current day and current clock separately.
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Mods”