Skip to content

A Luanti client-side mod implementing a vintage alarm watch mutated into a smartwatch

License

Notifications You must be signed in to change notification settings

HubTou/alarm_watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alarm_watch

A Luanti client-side mod implementing a vintage alarm watch mutated into a smartwatch.

Examples of Head-Up Display, showing watch, GPS, altimeter and compass instruments, with backlit on the second screenshot:

Normal HUD Alternative HUD

Features

  • Watch
    • displays the time in 12 or 24h format
  • Programmable alarm
  • Chronometer
    • in game time or real world time
  • Light sensor
  • GPS
    • displays location in geographical (latitude/longitude) or Cartesian coordinates (x/z), though the geographical system has been losing momentum since we discovered that the world is flat and not spherical!
  • Altimeter
    • y-coordinate (for ores and jewels mining)
  • Compass
    • with cardinal direction faced and angle in degrees
  • Discreet head-up display in the lower-left corner of the screen
    • with ability to disable watch, GPS, altimeter and/or compass (only keep what you really need)
    • and backlit lighting (for dark areas)
  • Fully configurable
    • with Luanti User Interface
    • or through local chat commands

Installation

  1. Manually download the latest release of this mod (as client-side mods download is not handled yet through Luanti's User Interface)

  2. Follow general instructions on client-side mods installation:

    • Put the following line in luanti/minetest.conf to enable client-side mods (if not already done):

      enable_client_modding = true
      
    • Unpack the mod archive in luanti/clientmods

    • Rename the mod directory to luanti/clientmods/alarm_watch

    • Put the following line in luanti/clientmods/mods.conf:

      load_mod_alarm_watch = true
      
  3. Copy the luanti/clientmods/alarm_watch/sounds folder into luanti

Note: If you haven't upgraded yet to luanti 5.10.0 or newer, your luanti directory will be called minetest...

Configuration

  • Before launching a game, configure the mod options through Luanti's User Interface: Configuration in UI

  • While playing, use the following commands for live (but non-persistent) configuration:

    • For enabling or disabling instruments (only specify one):
      .alarm_use watch|light_sensor|gps|altimeter|compass
      
    • For flipping the instruments configuration (only specify one):
      .alarm_mode watch|gps|chrono
      

Usage

For setting the alarm at a given hour:minute and with a specified message (which may be a whole sentence) do:

.alarm_set H:M TEXT

For example:

.alarm_set 17:30 Time to go home before nightfall!

For disabling the previously setted alarm, use one of the following commands:

.alarm_unset
.alarm_reset

To start or stop the chronometer (stopwatch) do:

.alarm_chrono

To enable/disable the backlit lighting do:

.alarm_light

To obtain in game command help do:

.help

or one among:

.help alarm_use
.help alarm_mode
.help alarm_set
.help alarm_unset
.help alarm_reset
.help alarm_chrono
.help alarm_light

Caveats

There are still a few issues with this mod:

  • Despite providing translations, they are unused (I believe client-side mods don't use translations at all),
  • The chronometer results will be incorrect if players go to bed for sleeping, or if time is changed by an admin,
  • local chat commands are uselessly echoed by the game.

Credits

Debugging

Music credits

I have bundled these "Free for use" sounds from Pixabay:

Possible future directions

The mod is already pretty complete as-is, but drilling down the "smartwatch" concept, there are lots of other possible evolutions:

  • Configuration:
    • configurable colors
  • GPS improvement:
    • points or areas of interest management (with another HUD)
    • guidance to those waypoints (on this mod's HUD)
  • New pedometer instrument for counting steps and elevation per day
  • More stats...

Other possible things that would probably better be kept separated from this mod:

  • Music player to be used with music records you carry (with another HUD)
  • Death tracker:
    • I have another (not yet published) client-side mod for tracking death locations (that could be integrated with the waypoint system), but that I want to keep separated as it's working with a server-side complementary mod.

Go to Discussions if you want to suggest other things...