[Mod] Watch [watch]

Post Reply
User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

[Mod] Watch [watch]

by deivan » Post

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. ... -watch.zip (Version 20130506)

License: GPL

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

domb is here: http://www.novoseusadosinformatica.com. ... k-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.
Last edited by deivan on Mon May 06, 2013 16:02, edited 1 time in total.

User avatar
Calinou
Moderator
Posts: 3162
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

Idea: at night, invert the watch's color so that you know if it's day or night when you're underground.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

or maybe have a sun and moon behind the hand.
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

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. :-/

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

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

User avatar
Echo
Member
Posts: 121
Joined: Tue Jul 31, 2012 08:11
Location: Germany

by Echo » Post

I think it's great that this mod is being further developed.

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

I make some small changes in your mod. Is a very nice work but the game api don't help the development... :-/
Last edited by deivan on Fri Apr 19, 2013 18:38, edited 1 time in total.

User avatar
Iqualfragile
Member
Posts: 160
Joined: Tue Sep 18, 2012 22:11

by Iqualfragile » Post

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"
Last edited by Iqualfragile on Sat Apr 20, 2013 11:32, edited 1 time in total.
Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cr8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

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.

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

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
Last edited by deivan on Sat Apr 20, 2013 12:27, edited 1 time in total.

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

New version...

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

by lightonflux » Post

Question: What is the difference to Watch?

Also: Plans for a Wallclock?

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

No now, I am very busy in the real life this days... Maybe ASAP.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests