Page 1 of 1

[Mod] Watch [watch]

PostPosted: Sun Apr 14, 2013 15:28
by deivan
Original project:
Echo, here: http://forum.minetest.net/viewtopic.php?pid=84030

License:
GPL

Idea:
I received a request to revise this mod then, well, I like construct things. :D

The face of the tool is compatible with the current server time, one face different to each hour.
If used you receive a chat message with the current server hours.

Depends:
default

Screenshots:
Image
Image

Download:
http://www.novoseusadosinformatica.com.br/arq/minetest/DOM-modpack-watch.zip (Version 20130506)

License: GPL

Dependencies:
default
domb (my own library of utility functions)

domb is here: http://www.novoseusadosinformatica.com.br/arq/minetest/DOM-modpack-domb.zip

To do...
- Solve all bugs...
- Change images without create a big amount of objects.
- Complete the option for digital watch in some easy way to change, I already have implemented 99%, only need some time. :D

Bugs
The "ugly" function who update clocks check all player on the server then I limited the calling of him to one time for each server hour, but if you use the clock you see the correct hour, only the face will be delayed.

PostPosted: Sun Apr 14, 2013 20:56
by Calinou
Idea: at night, invert the watch's color so that you know if it's day or night when you're underground.

PostPosted: Sun Apr 14, 2013 21:01
by jojoa1997
or maybe have a sun and moon behind the hand.

PostPosted: Sun Apr 14, 2013 21:40
by deivan
For every new face I need all images again, like 12h 12 images, 24h 24 images, when is possible make dynamic textures at running time all is possible, but now, is a big effort for a little gain. :-/

PostPosted: Mon Apr 15, 2013 13:31
by deivan
I split my mods and my library, in this format I don't need a new release to all if I update the library. I only update the library to fix any problem. :D

PostPosted: Fri Apr 19, 2013 18:20
by Echo
I think it's great that this mod is being further developed.

PostPosted: Fri Apr 19, 2013 18:25
by deivan
I make some small changes in your mod. Is a very nice work but the game api don't help the development... :-/

PostPosted: Sat Apr 20, 2013 11:26
by Iqualfragile
deivan wrote:For every new face I need all images again, like 12h 12 images, 24h 24 images, when is possible make dynamic textures at running time all is possible, but now, is a big effort for a little gain. :-/

there is some kind of dynamic texture: you can combine different textures so you could just have 12 texture for the hours, up to 60 for the minutes and combine those using the ^ operator


"watch_hour0.png^watch_minute_5.png"

PostPosted: Sat Apr 20, 2013 11:35
by 4aiman
Look at the MAPP mod for images rotation and overlaying ;)
Also, could this be done as a HUD that shows time if "/showtime 1" command issued?
ATM it "deletes" messages from chat, which isn't very nice.

PostPosted: Sat Apr 20, 2013 12:02
by deivan
I don't know if the HUD API support, but I say, maybe. :D

Is a very nice code this one from the MAPP, but don't is implemented over a object, is over a formspec, I will try a adaptation to this mod. You know if is possible use this dynamic allocation of faces in a block or tool (my case)?

Anyway, thanks. ;)
-*-
I will test your idea Iqualfragile. thanks.

If is possible use a dynamic generated texture like your idea then I need 12 images and use another 12 for minutes, the game don't need a precise illustration... :D

Then times like 13:00 and 13:04 have the same display, but in my game (each hour is one day) a minute have the duration of 2,5 seconds... Is to small to need be coded. :-o

PostPosted: Mon May 06, 2013 16:02
by deivan
New version...

PostPosted: Mon Jan 20, 2014 16:08
by lightonflux
Question: What is the difference to Watch?

Also: Plans for a Wallclock?

PostPosted: Mon Jan 20, 2014 18:07
by deivan
No now, I am very busy in the real life this days... Maybe ASAP.