[MOD 0.10.x] Time Display - v1.0.0

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] Time Display - v1.0.0

Post by Dark »

A simple mod that shows in-game time and how much time has passed since the game was started.
Location of display, what in shows and how it shows it are configurable from within game, see configuration spoiler for details.
Mod can be removed at any time and it will not left any orphan gui elements.
Configuration
timedemo.png
timedemo.png (43.83 KiB) Viewed 19214 times
Attachments
TimeDisplay-1.0.0.zip
(2.42 KiB) Downloaded 1772 times

TheWombatGuru
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Tue Jul 08, 2014 10:01 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by TheWombatGuru »

Seems quite handy :)

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

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by Nova »

A new standard mod for me. Could use a technology and / or a special item to make it an upgrade for the player.
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] Time Display - v1.0.0

Post by Dark »

Let's assume that in 3X century on another planet the guy just happen to have a watch :)
Think of it as of flashlight, it just exists.

p.s. player could combine few stones and build the "gadget", but I'm not a fun of cluttering inventory more than necessary.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12748
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Compatibility to v0.10.x

Post by ssilk »

To run this mod with v0.10.x:

- rename the Directory to "TimeDisplay_1.0.0" (add .zip if you use the zip).

That's all. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Kane
Filter Inserter
Filter Inserter
Posts: 661
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by Kane »

Thanks for this mod. Changing the zip name solved the loading issues in 0.10.9.

User avatar
-root
Filter Inserter
Filter Inserter
Posts: 651
Joined: Tue Jul 01, 2014 11:24 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by -root »

Is this mod still being maintained? If not, is there a viable alternative?

Degraine
Filter Inserter
Filter Inserter
Posts: 280
Joined: Wed Aug 13, 2014 10:49 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by Degraine »

Seems to work okay in 11.3, although repositioning the clock with the console commands doesn't seem to be working.

EDIT: Correction, it works in existing saves, but creating new games does not work while the mod is active.
Last edited by Degraine on Tue Nov 18, 2014 6:54 am, edited 1 time in total.

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by L0771 »

i only changed "game.oninit" for "game.onevent(defines.events.onplayercreated"
SP remote.call("TimeDisplay", "SetSetting", "location", "left/top/center") no funciona, but don't crash.
Attachments
TimeDisplay.rar
(2.22 KiB) Downloaded 473 times

djnekkid
Inserter
Inserter
Posts: 28
Joined: Wed Jun 11, 2014 10:11 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by djnekkid »

is it possible to get this updated to 11.5 ? Its soo nice to have during speedruns :D

djnekkid
Inserter
Inserter
Posts: 28
Joined: Wed Jun 11, 2014 10:11 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by djnekkid »

I actually fixed it myself, it were merely to change the name of the folder.

Here is a working zip
Attachments
TimeDisplay_1.0.0.zip
(2.47 KiB) Downloaded 204 times

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

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by Nova »

Does that work with 0.11.6?
Greetings, Nova.
Factorio is one of the greatest games I ever played, with one of the best developers I ever heard of.

User avatar
berni1212
Fast Inserter
Fast Inserter
Posts: 137
Joined: Sun Dec 07, 2014 8:52 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by berni1212 »

Nova wrote:Does that work with 0.11.6?




Re: [MOD 0.10.x] Time Display - v1.0.0 !
Sorry for my bad English ! i will not remove it !
WIP Test MODS
RailTanker [MP WIP]

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by L0771 »

Nova wrote:Does that work with 0.11.6?
I think yes, factorio 0.11.6 only are big changes in multiplayer.

dopefish
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Dec 13, 2014 11:36 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by dopefish »

Nova wrote:Does that work with 0.11.6?
It's running fine with 0.11.6 for me, after modifying the folder name.

FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by FishSandwich »

Hey-- can someone update this to work with 0.11.13? It'd be very helpful for me in my PvP series. :)

Frostea
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sat Jan 17, 2015 11:27 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by Frostea »

Fixed it to work with 11.13.
It was already working if you started a brand new game with it. Now it is able to load even in existing saves. I only tested it on a few of my saves so please report any issues.

Image
Attachments
TimeDisplay_1.0.1.7z
2nd Feb 2015 - v1.0.1: Fixed loading on existing saves.
(2.22 KiB) Downloaded 184 times

FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by FishSandwich »

Woop thanks Frostea, you're awesome! :D

Edit: Just tried it in multiplayer, factorio crashes on loading any map. =(

Frostea
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sat Jan 17, 2015 11:27 pm
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by Frostea »

Ack, I don't have a second system to test multiplayer functionality. Can you post the error? Might be able to dig out something that works.

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [MOD 0.10.x] Time Display - v1.0.0

Post by FreeER »

Frostea wrote:Ack, I don't have a second system to test multiplayer functionality. Can you post the error? Might be able to dig out something that works.
well the obvious issue is that game.player can not be used in MP with more than 1 player, you have to use the game.players table (and either a loop or a playerindex from player-related events, other than onputitem). game.players is also available in single player (just it'll never have more than one player) so there doesn't need to be separate code for each either.
Now, I can't test this either, but in the PvP mod code I used this function to handle the issue, just include that and change game.player.print calls into printToAll calls (hint, use search and replace lol)

Code: Select all

function printToAll(msg)
  for _, player in ipairs(game.players) do
    player.print(msg)
  end
end
Probably a few other similar cases...

Post Reply

Return to “Mods”