[Mod] Watch [watch]

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

[Mod] Watch [watch]

by deivan » Sun Apr 14, 2013 15:28

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.
Last edited by deivan on Mon May 06, 2013 16:02, edited 1 time in total.
 

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

by Calinou » Sun Apr 14, 2013 20:56

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 » Sun Apr 14, 2013 21:01

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

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

by deivan » Sun Apr 14, 2013 21:40

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

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

by deivan » Mon Apr 15, 2013 13:31

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 » Fri Apr 19, 2013 18:20

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

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

by deivan » Fri Apr 19, 2013 18:25

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.
 

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

by Iqualfragile » Sat Apr 20, 2013 11:26

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 » Sat Apr 20, 2013 11:35

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.
 

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

by deivan » Sat Apr 20, 2013 12:02

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.
 

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

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

by lightonflux » Mon Jan 20, 2014 16:08

Question: What is the difference to Watch?

Also: Plans for a Wallclock?
 

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

by deivan » Mon Jan 20, 2014 18:07

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


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 8 guests