Automatic Updating
by J L · in Torque Game Engine · 12/01/2008 (8:13 am) · 11 replies
As my game is only going to be online only. I would like the ability to automatically download files that need changed and add new files. I searched and didnt find anything in my readily available pea brained mind could understand.
I did however find Qsetup and it has an automatic update feature it self. Could this work ?
www.pantaray.com/qstp_autoupdate.html
I did however find Qsetup and it has an automatic update feature it self. Could this work ?
www.pantaray.com/qstp_autoupdate.html
About the author
#2
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10800
Cheers,
Andy
12/01/2008 (8:26 am)
You could try this, I got it into TGE very easily, yet to try on TGEA - but it should be OK.www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10800
Cheers,
Andy
#3
I looked at this, but the php part when I looked at the files was verrrrrryyyyy confusing
12/01/2008 (10:05 am)
Quote:You could try this, I got it into TGE very easily, yet to try on TGEA - but it should be OK.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1080...
Cheers,
Andy
I looked at this, but the php part when I looked at the files was verrrrrryyyyy confusing
#4
One of our changes was to write to disk as you download each packet which gets around that issue.
12/01/2008 (10:49 am)
We use a heavily modified version of that Auto-updater resource that Andy Hubbard mentions and it works great in both TGE and TGEA, be wary though it downloads the full file into memory before saving to disk so it can and will crash the game if you start trying to update huge files and the end user runs out of memory.One of our changes was to write to disk as you download each packet which gets around that issue.
#5
12/01/2008 (2:10 pm)
Yep, that would be a complete problem that I could not undertake. I am learning stuff as I go and as of now I am not that advanced
#6
It won't help right now but I am planning to make it a resource once the system is finalised but that may take a while as we have more pressing developments at the moment.
12/01/2008 (4:45 pm)
Jason - we ditched the php side of things in favour of a python solution for that part of things as I'm a lot more familiar with that side of things.It won't help right now but I am planning to make it a resource once the system is finalised but that may take a while as we have more pressing developments at the moment.
#7
This would be very useful. Have you thought of releasing this as a addon and charging for it ? I would definatly pay for something like this, as I am my own team. Good lord that sounded llike a redneck thing.
12/02/2008 (5:42 am)
Andy,This would be very useful. Have you thought of releasing this as a addon and charging for it ? I would definatly pay for something like this, as I am my own team. Good lord that sounded llike a redneck thing.
#8
12/02/2008 (11:52 am)
Something weird here is that i deleted my data folder as i was doing testing and seeing what i needed to distribute to the end user and when I hooked up to the dedicated server I was running it started auto patching itself, i touched nothing in the code or script. Anyone care to shed some light on this ?
#9
12/02/2008 (11:57 am)
The Torque code has, built-in, the ability to transfer files. It is disabled in some versions of Torque. It is also generally not useful, as the packet sizes of the file transfers are extremely small, and not good for file transfer. It takes forever!
#10
Yes I am noticing this right now as I am on my home network and it seems to be like I am on dial up while I am downloading these files.
What code would need modified for this if you can throw any hints to where it may be stored at
12/02/2008 (12:16 pm)
Dave,Yes I am noticing this right now as I am on my home network and it seems to be like I am on dial up while I am downloading these files.
What code would need modified for this if you can throw any hints to where it may be stored at
#11
Unfortunately at the moment it's not in a state that I can share as it includes a lot of our game specific code in, for example the md5 code also includes our challenge/response code for message authentication and my priority is on completing stage 1 of our game before I take a pause to release some of this stuff to the community.
12/03/2008 (3:21 am)
Jason - the code will get released to the community at some point along with a bunch of other useful stuff that can people can drop into their games and use.Unfortunately at the moment it's not in a state that I can share as it includes a lot of our game specific code in, for example the md5 code also includes our challenge/response code for message authentication and my priority is on completing stage 1 of our game before I take a pause to release some of this stuff to the community.
Torque Owner Brian Wilson