Jump to content


Photo

[RELEASE] AutoUpdate script


  • Please log in to reply
28 replies to this topic

#21 Naygath

Naygath

    GMC Member

  • GMC Member
  • 495 posts
  • Version:GM:Studio

Posted 07 July 2011 - 07:32 AM


i guess this should be in Extending Game Maker > Scripts [GML]


Yep... So I've moved it there!

thanks :)
  • 0

#22 Debels

Debels

    GMC Member

  • GMC Member
  • 1997 posts
  • Version:GM:Studio

Posted 07 July 2011 - 11:47 AM

how can i make a direct link?

how can i make a self-extracting .zip file?
  • 0

#23 Naygath

Naygath

    GMC Member

  • GMC Member
  • 495 posts
  • Version:GM:Studio

Posted 07 July 2011 - 11:50 AM

how can i make a direct link?

how can i make a self-extracting .zip file?


you will need a server or internet storage service for the direct link (zymic.com for example is a great site for that, but it doesnt allow .exe files)

http://www.ehow.com/how_8465_make-self-extracting.html
  • 0

#24 xYorYx

xYorYx

    Vampire

  • GMC Member
  • 83 posts
  • Version:GM8

Posted 19 July 2012 - 12:07 PM

I got this error and couldn't find a way to fix it:

___________________________________________
ERROR in
action number 1
of Create Event
for object obj_loader:

In script auto_update:
Error in code at line 57:
   if (version_newest > version_game)
                        ^
at position 23: Cannot compare arguments.

  • 0

#25 Naygath

Naygath

    GMC Member

  • GMC Member
  • 495 posts
  • Version:GM:Studio

Posted 19 July 2012 - 01:37 PM

I got this error and couldn't find a way to fix it:

___________________________________________
ERROR in
action number 1
of Create Event
for object obj_loader:

In script auto_update:
Error in code at line 57:
   if (version_newest > version_game)
                        ^
at position 23: Cannot compare arguments.

you must use an integer for the version, eq. 1234, "version3" or "3" wont work
  • 1

#26 Justin Nitro

Justin Nitro

    GMC Member

  • GMC Member
  • 130 posts
  • Version:GM8

Posted 17 October 2012 - 12:46 PM

Hi, when i change update_server area, it always says that theres no updates available.
Can somone help me? Please?

/* configure script */
version_game = 1234;
update_server = "https://dl.dropbox.c...0987/test.zip";
update_extension = ".zip"

Edited by Justin Nitro, 17 October 2012 - 12:49 PM.

  • 0

#27 Naygath

Naygath

    GMC Member

  • GMC Member
  • 495 posts
  • Version:GM:Studio

Posted 17 October 2012 - 12:51 PM

change https://dl.dropbox.c...960987/test.zip to https://dl.dropbox.com/u/102960987/

and test.zip to eq. 2222.zip (2222 is the version)
then set the version. ini to
[update]
version=2222
and upload version.ini and 2222.zip to a file host.

also version.ini and 2222.zip must be at same file share folder eq. https://dl.dropbox.c...987/version.ini and https://dl.dropbox.c...960987/2222.zip or it wont work.

Edited by Naygath, 17 October 2012 - 12:54 PM.

  • 1

#28 Justin Nitro

Justin Nitro

    GMC Member

  • GMC Member
  • 130 posts
  • Version:GM8

Posted 17 October 2012 - 12:54 PM

change https://dl.dropbox.c...960987/test.zip to https://dl.dropbox.com/u/102960987/

and test.zip to eq. 2222.zip (2222 is the version)
then set the version. ini to
[update]
version=2222
and upload version.ini and 2222.zip to a file host.


Oh, thanks :D it works now!
  • 0

#29 Naygath

Naygath

    GMC Member

  • GMC Member
  • 495 posts
  • Version:GM:Studio

Posted 17 October 2012 - 12:56 PM

i will make a better script when i have the time, and then i will add a tutorial on how to and where to upload the updates and version.ini
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users