2018-06-27 23:04:01

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?

You must know... Cats are soft!

2018-06-28 00:37:01

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.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.

Thumbs up

2018-06-28 01:23:47

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.

Thumbs up

2018-06-28 01:27:24

Try this:
http://www.blastbay.com/forum/viewtopic.php?id=1335
I wrote it years ago, but it should still work.

2018-06-28 04:40:49

@3, well, the game [could] update itself using hotpatching, but hotpatching is incredibly difficult and requires very careful management of memory.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.

Thumbs up

2018-06-28 09:08:39

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!

best regards
never give up on what ever you are doing.

2018-06-28 13:27:02

@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.

Thumbs up

2018-06-29 00:36:22

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.

You must know... Cats are soft!

2018-06-29 01:25:46

@7, if hotpatching is available in BGT I've never found it.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.

Thumbs up

2018-06-29 01:50:11

There is no hotpatching in BGT. Or if there is, it's a very undocumented feature. smile

2018-07-03 14:36:03 (edited by pelantas 2018-07-03 14:39:09)

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 smile

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

we are back in active business, visit our homepage at:
http://www.nonvisiongames.com
http://www.facebook.com/mikeygamezone
or follow @mikeschippernl on twitter

2018-07-03 17:23:22

@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.