The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: megaempire11 on November 28, 2007, 09:26:08 PM

Title: [REQUEST] Update Notifier
Post by: megaempire11 on November 28, 2007, 09:26:08 PM
I would like to request this script:

It should - every time it starts - , read an page on the net (like http://rmrk.net/MyGame/UpdateNotifier/BETA_0.2.htm).
If the page shows something like: Newest version, it should start normal.
But if it shows something like: Newer Version, it should block the game from starting, and show a message like: BETA 0.3 Released, please update if you want to keep playing.
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg206.imageshack.us%2Fimg206%2F7814%2Fcroppercapture1lt8.png&hash=d0cd6859d1de93a4029d9dd347811a34ada0b07a)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg207.imageshack.us%2Fimg207%2F2826%2Fcroppercapture2ao9.png&hash=4f92067a7eaa964f1069311b21c876d4cb99a165)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg267.imageshack.us%2Fimg267%2F8144%2Fcroppercapture3fg8.png&hash=ae6f13aaa5b9ad21791f24cbbd2ce268932bdd59)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg511.imageshack.us%2Fimg511%2F3869%2Fcroppercapture8du2.png&hash=9e05aa75b7fcbb6109b8361642d442278e8572ff)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg339.imageshack.us%2Fimg339%2F1582%2Fcroppercapture9ya3.png&hash=b2e234717b863751bd7af8b38077de77dc1cfa4e)

In my own (fantasy xD) coding language it would look like this:
<$meScript
download ['http://rmrk.net/MyGame/UN/BETA_0.3.msf'] store in = ['variable']
read ['variable']
if ['variable'] shows ['Latest_Version']
           show: ['You got the latest version!']
           open: ['Title_Screen']
if ['variable'] shows ['Newer_Version_%S'] %S = ['variable_version']
           show: ['Version ['variable_version'] has been released, please update to keep playing']
           quit ['Game']
else
           show: ['An error occured while reading version number, please try again later, or contact game support.']
           quit ['Game']
$meScript>

The .msf file could be anything here, because i just wanted to give an example.

Many, many, many thanks in advance,
Megaempire11