Page 1 of 1

Mod update notifyer?

PostPosted: Wed Nov 20, 2013 11:12
by jojoa1997
Ok so i noticed in some mods in minecraft send you a message in chat when you join ex:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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

PostPosted: Wed Nov 20, 2013 18:02
by PilzAdam
There is minetest.log() or minetest.chat_send_all().

PostPosted: Wed Nov 20, 2013 18:31
by rubenwardy
The problem is not the notify, but rather the checking.

PostPosted: Wed Nov 20, 2013 20:59
by Sokomine
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.

PostPosted: Thu Nov 21, 2013 00:12
by jojoa1997
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

PostPosted: Thu Nov 21, 2013 08:56
by rubenwardy
When I said checking, i meant download the latest version number from the internet, and checking again current.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
function minetest.notify(msg)
    if minetest.get_settingbool("notify") then
         minetest.chat_send_all(msg)
    end
end


Untested code