Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

AutoUpdate | Example


Best Answer Inspired , 17 November 2015 - 10:57

This is supposed to be an example on how to autoupdate your script, you need it hosted on github together with a version file next to it. The actual autoupdate function is in Inspired.lua. Go to the full post »


  • Please log in to reply
22 replies to this topic

#21
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland

"LocalVersion" must < "WebVersion" to AutoUpdate? after Updated, "LocalVersion" will = "WebVersion" to stop AutoUpdate? And we only change WebVersion, script will autoupdate if LocalVersion < WebVersion?

 

Sorry for my bad.... :ph34r:

it will compare the version found in the .version file to the local version.
if the web version is higher it will update, otherwise do nothing.


  • 0

#22
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,016 posts
I moved the thread here, since i thought it's most suitable. :fappa:
  • 0

#23
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

I moved the thread here, since i thought it's most suitable. :fappa:

but it's not :fappa:


  • 0




24 user(s) are reading this topic

0 members, 24 guests, 0 anonymous users