Mod update notifyer?

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

Mod update notifyer?

by jojoa1997 » Wed Nov 20, 2013 11:12

Ok so i noticed in some mods in minecraft send you a message in chat when you join ex:
Code: Select all
There is a new version of optifine at www.bleck.co

Could there be a minetest.notify(reason or something, "message") so modders can tell the people using mods that there is an update. Also in the minetest.conf there should be a setting like notify = false/true
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam
 

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

by rubenwardy » Wed Nov 20, 2013 18:31

The problem is not the notify, but rather the checking.
 

Sokomine
Member
 
Posts: 3918
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

by Sokomine » Wed Nov 20, 2013 20:59

For a server, it might be pretty annoying if there'd be some mods who'd constantly tell that there are new versions available. Perhaps the Minetest Mod Database - which is already partly integrated into the game engine - could be used to check if newer versions where uploaded. I'm just afraid that people won't remember to manually generate and upload packages each time they change something small on a mod.
A list of my mods can be found here.
 

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

by jojoa1997 » Thu Nov 21, 2013 00:12

rubenwardy wrote:The problem is not the notify, but rather the checking.
Sokomine wrote:For a server, it might be pretty annoying if there'd be some mods who'd constantly tell that there are new versions available. Perhaps the Minetest Mod Database - which is already partly integrated into the game engine - could be used to check if newer versions where uploaded. I'm just afraid that people won't remember to manually generate and upload packages each time they change something small on a mod.

i would like to point out
The AMAZING ME!!! wrote:Also in the minetest.conf there should be a setting like notify = false/true
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by rubenwardy » Thu Nov 21, 2013 08:56

When I said checking, i meant download the latest version number from the internet, and checking again current.

Code: Select all
function minetest.notify(msg)
    if minetest.get_settingbool("notify") then
         minetest.chat_send_all(msg)
    end
end


Untested code
Last edited by rubenwardy on Thu Nov 21, 2013 08:57, edited 1 time in total.
 


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 1 guest