[Mod] Ingame Clocks and Timers [mtimer]

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

[Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

mTimer is a mod that allows players to individually configure and show a timer as permanent HUD element that automatically updates every second. The timer can show the real-world time and the ingame time as well as the current play session starting time and duration in freely configurable formats.

Image

Use it on your public server to give your players additional value (players can individually hide the timer if they want) while being on your server or use it in your singleplayer world to stay informed or – when creating creative content for others to watch – give your viewers a hint on when the footage was recorded.

Some More Details

The timer display and settings are entirely configured on a per-player basis via configuration formspecs. For opening the main menu simply enter the /mtimer chat command. From the main menu all configuration formspecs are accessible.

Image

mTimer does not only show rather static information but also contains a fully customizable and configurable actual timer function that can run in different modes and provides all sorts of features

Image

Just click the main menu button or enter /mtimer ct to use it!

Mod Meta

License: GPLv3 for code, CC-BY-SA for media
Dependencies: none (Minetest >= 5.4.0)
Obtaining the mod: Download latest version, CDB entry
Source/issues/etc.: GitLab
Translations: English (default), German, Italian
Last edited by Linuxdirk on Sat Oct 09, 2021 04:24, edited 3 times in total.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by rubenwardy » Post

That's a nice looking formspec!
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

rubenwardy wrote:That's a nice looking formspec!
Thanks! :)

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

Updated to version 2 formspecs (currently only new positioning) thus Minetest >= 5.1 is now needed. There is no Git tag but the CDB version is properly flagged.

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Miniontoby » Post

Cool mod. I already using it
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

A new version was pushed for the Minetest 5.2.x release. The mod is fully compatible and can be used as before. The properly flagged version will arrive on next CDB update.

There are now tiny icons in the formspec windows visually indicating the content of that window. The icons were taken from the Tango! icon pack and are released as Public domain. See textures licenses readme file for details.

Icons are a work in progress and are not fully added in their final form yet.

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

gibt es eine Chance daraus eine CSM zu machen ?

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

Walker wrote:
Sat Apr 25, 2020 17:51
gibt es eine Chance daraus eine CSM zu machen ?
Das geht bestimmt, wenn CSM inzwischen Formspecs und GUI-Elemente kann, und auch zugriff auf die nötigen Daten vom Server (Uhrzeit, etc.) hat, und auch die lokalen Zeiten alle erfassen kann (Laufzeit, etc.).

Allerdings lehne ich CSM in seiner jetzigen Form aus diversen technischen Gründen ab.

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

Linuxdirk wrote:
Thu Jan 01, 1970 00:00
[...]Allerdings lehne ich CSM in seiner jetzigen Form aus diversen technischen Gründen ab.
;(

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

A small update was made!

The timer can now be scaled using the `size` attribute of the HUD element.

Image

Result from scaling the element by 2.

Image

German translation of this new feature is included. The new version was already published on the CDB and will be fetched from there with the next update.

Alternatively simply git pull as always :)
Attachments
scaled.png
scaled.png (159.32 KiB) Viewed 2674 times
dialog.png
dialog.png (46.47 KiB) Viewed 2674 times

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

And another setting was made available!

It is now possible to add (or remove) pixels from the default offsets for the various positions. Just set the value in the input field and fine-tune with the +/- buttons. The timer changes directly, so just look at where it’s located.

Image

The various display options available (format, position, offset, size, etc.) can be combined for a wide variety of things. For example a simple ingame time display above the hotbar.

Image

Update will be added to the CDB soon and will be come with the next update … or get the latest Git version as usual :)
Attachments
timer.jpg
timer.jpg (80.92 KiB) Viewed 2674 times
formspec.jpg
formspec.jpg (29.28 KiB) Viewed 2674 times

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

hallo lieber LinuxDirk-LP,

gibt es in Ihrer Mod die Möglichkeit sie global zu deaktivieren und NUR(!) für einzelne Spieler zu aktivieren ( z. B. mich ... in z. B. meinem LP )

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

Mein lieber Herr Walker, sind wir schon beim „Sie“ angekommen? :D

Das würde keinen Vorteil bringen, da die Timerfunktion immer für alle Spieler einmal pro Sekunde ausgeführt wird, da sich in jeder Sekunde der Timer ändern kann. Der Ressourcenverbrauch wäre also identisch.

Ich könnte eine Konfigurationsoption bereitstellen durch die der Timer standardmäßig nicht angezeigt wird (diese würde standardmäßig aber deaktiviert bleiben und müsste erst manuell in der minetest.conf hinterlegt werden).

User können aber weiterhin über /help und dann /help mtimer die Befehle sehen, die Konfiguration öffnen, und den Timer sichtbar machen.

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

Linuxdirk wrote:
Sat Aug 15, 2020 12:24
Mein lieber Herr Walker, sind wir schon beim „Sie“ angekommen? :D
ja, mein Meister
Linuxdirk wrote:
Sat Aug 15, 2020 12:24
Ich könnte eine Konfigurationsoption bereitstellen durch die der Timer standardmäßig nicht angezeigt wird (diese würde standardmäßig aber deaktiviert bleiben und müsste erst manuell in der minetest.conf hinterlegt werden).

User können aber weiterhin über /help und dann /help mtimer die Befehle sehen, die Konfiguration öffnen, und den Timer sichtbar machen.
das währe SUPER lieb ... ... ... mein Schatz ? ... ^^

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

Walker wrote:
Sat Aug 15, 2020 19:34
Linuxdirk wrote:
Sat Aug 15, 2020 12:24
hallo ... ich bin Linuxdirk
ja, mein Meister
Linuxdirk wrote:
Sat Aug 15, 2020 12:24
bla bla bla, ich liebe dich, bla bla
das währe SUPER lieb ... ... ... mein Schatz ? ... ^^
Sorry ... ich spiele in letzter Zeit zu viele VNs xD

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

Du darfst mich Senpai nennen, wenn du willst.

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

Okay, back to topic! :)

mTimer is now configurable either globally in minetest.conf or world-specifically in _mtimer.conf in the world’s directory.

See the mod’s readme for settable parameters and their default values.

https://gitlab.com/4w/mtimer#default-co ... ver-admins

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

Linuxdirk wrote:
Sat Aug 15, 2020 22:16
Du darfst mich Senpai nennen, wenn du willst.
danke onii-ch... ... ich meine Senpai

> https://www.youtube.com/watch?v=pNCX8MATMq4

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

Linuxdirk wrote:
Sat Aug 15, 2020 22:20
Okay, back to topic! :)

mTimer is now configurable either globally in minetest.conf or world-specifically in _mtimer.conf in the world’s directory.

See the mod’s readme for settable parameters and their default values.

https://gitlab.com/4w/mtimer#default-co ... ver-admins
Danke ^^
werde ich gleich beim nächsten LP probieren ;)

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

Yay me :)

Since Minetest Game will be discontinued and put in maintenance mode I did some testing and can now officially declare that mTimer has no dependencies and can be used with any game now.

Testing was done using minipeli and Development Test.

Just wait for CDB update to be delivered or get the latest Git version.

User avatar
Walker
Member
Posts: 1817
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Walker » Post

Linuxdirk wrote:
Mon Aug 24, 2020 19:06
Yay me :)

Since Minetest Game will be discontinued and put in maintenance mode I did some testing and can now officially declare that mTimer has no dependencies and can be used with any game now.

Testing was done using minipeli and Development Test.

Just wait for CDB update to be delivered or get the latest Git version.
YAAAAY \(^.^)/... sorry

User avatar
NO11
Member
Posts: 42
Joined: Sat Dec 26, 2020 22:24
GitHub: NO411
In-game: NO11
Location: Germany

Re: [Mod] Ingame Clocks and Timers [mtimer]

by NO11 » Post

Hi, fantastic mod.
Why does the in-game timer always start at 6:15?

Ashely_86_fl
New member
Posts: 1
Joined: Mon Feb 01, 2021 12:54

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Ashely_86_fl » Post

Great mod. Thank you a lot

User avatar
Linuxdirk
Member
Posts: 3218
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Ingame Clocks and Timers [mtimer]

by Linuxdirk » Post

NO11 wrote:
Thu Feb 04, 2021 12:43
Why does the in-game timer always start at 6:15?
Because that is the default time of the world when you first create it.

User avatar
NO11
Member
Posts: 42
Joined: Sat Dec 26, 2020 22:24
GitHub: NO411
In-game: NO11
Location: Germany

Re: [Mod] Ingame Clocks and Timers [mtimer]

by NO11 » Post

Linuxdirk wrote:
Thu Feb 04, 2021 18:27
NO11 wrote:
Thu Feb 04, 2021 12:43
Why does the in-game timer always start at 6:15?
Because that is the default time of the world when you first create it.
Oh, wow, thanks for the quick reply. How do I get the timer to start at 00:00, that would be useful for a speedrun, for example (mineclone2)?

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests