I searching it. I dont know how i can wrote id.
I tried use scripts but it not work with me.
Who can write simple example updater?
Pages 1
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → Who can write example working autoupdater for me in Bgt?
I searching it. I dont know how i can wrote id.
I tried use scripts but it not work with me.
Who can write simple example updater?
Updaters are application specific (most of the time). You'll probably need to provide more information to help us out here. You say it doesn't work but you don't say how; you say you've searched but can't find it. Of course you won't find it; all of them are usually closed source.
Having someone write an auto updater for you is like telling someone to paint something--just paint something.
The best I can do is describe how it would work, or at least how I've done it in the past.
When your program loads, it hits some endpoint somewhere that returns the most recent version of the program. You'd do this using a simple GET request. For example, in TDV I have a file called version. It's a simple file that contains the latest application version, like
2.17
.
Next, your program matches that against the currently running version. If the version it fetched is greater than the current version, ask the user to update.
When the update is done downloading, your program will launch a separate program, let's call it updater.exe. When your program launches this updater.exe, it will immediately shut itself down, as quickly as possible.
In the meantime, updater.exe starts to run. It will extract your downloaded update, install it, kill itself and run the executable of your game.
It's a simple process, but requires careful coordination.
The reason you must launch updater.exe to complete the update is because your game executable won't be able to be overwritten while it is in use. Meaning that the game can't update itself.
Try this:
http://www.blastbay.com/forum/viewtopic.php?id=1335
I wrote it years ago, but it should still work.
@3, well, the game [could] update itself using hotpatching, but hotpatching is incredibly difficult and requires very careful management of memory.
here's what i do:
I have a version for the game, stored as an intager.
then i have a text document on my website that also has a version number in it, in bgt i use string_to_number, to convert that file's contents to an int also.
When the version of the game is smaller than the one on the site, meening that the one on the site can also be bigger than the one of the game, a dialog asks the user if he or she want's to update. when the user says yes to the dialog, the program or game download's a zipped archive.
when it is done, i telll the user to extract the downloaded update.
else, when the user says no, the game continues running as usual.
i know many people have a different way of doing different things, but this is just my way of doing. hope it helps!
@Ethin: sure, but I doubt this facility and low-level functionality is available in BGT. The fact that it can be done doesn't mean it's what OP is looking for.
OK. I can give more info's.
I have updater, i grapbed it from public source codes and in my app i writed info of author of this. I slightly modified it but it's not auto. I dont know how i can add autochecking versions to updater.
@7, if hotpatching is available in BGT I've never found it.
There is no hotpatching in BGT. Or if there is, it's a very undocumented feature.
Hi all,
@jason sw,
could you please expand on what should be changed in your auto updater class? Lets say, i want to use a dropbox folder to store the updated files in, should i then copy the path to the folder in my dropbox, or should i copy the path toward the direct file? I think i will be interested in the folder, cause sounds get updated every so often as well
I know you have written what should be done, but for some reason it isn't fully clear to me. So, as said, i really hope you can expand on what should be changed.
Thanks a lot.
Greetz mike
@pelantas:
My auto updater was really written for use with an installer or updater program. You could modify it to work differently, of course.
Also, Dropbox no longer supports standard http, as far as I know, and BGT has no https support, so storing the updates in Dropbox won't work.
AudioGames.net Forum → Developers room → Who can write example working autoupdater for me in Bgt?
Generated in 0.023 seconds (58% PHP - 42% DB) with 11 queries