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]
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg206.imageshack.us%2Fimg206%2F7814%2Fcroppercapture1lt8.png&hash=c16b6b5816b47cbad0674a2fb10f62007b8f8fac)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg207.imageshack.us%2Fimg207%2F2826%2Fcroppercapture2ao9.png&hash=6422c220d7e8a133f53816260ebcce142707b181)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg267.imageshack.us%2Fimg267%2F8144%2Fcroppercapture3fg8.png&hash=a8c745a2f11469f213d0c6e31b790f0fed457db3)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg511.imageshack.us%2Fimg511%2F3869%2Fcroppercapture8du2.png&hash=5599a3f210526d8275819a294209032521feadef)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg339.imageshack.us%2Fimg339%2F1582%2Fcroppercapture9ya3.png&hash=0f6bbbb3d61a0f064aa9c5a3c5abe2a136e3a3df)
[/spoiler]

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