Build Auto-updater code?

Posts 1–11 of 11 · Page 1 of 1
Build Auto-updater code?
Hey guys

Chasing the coding needed to make df build auto update instead of updating a the build manually. I'm not sure if this is even possible but I hope it is.
Quote Originally Posted by xPertKief View Post
Hey guys. Chasing the coding needed to make df build auto update instead of updating a the build manually. I'm not sure if this is even possible but I hope it is.
Yeah it's possible and it's easy to do.
Quote Originally Posted by xPertKief View Post
Hey guys

Chasing the coding needed to make df build auto update instead of updating a the build manually. I'm not sure if this is even possible but I hope it is.
how are you looking to do it via swf itself which doesnt require entering any build at all or by the trainer where you have to upload a text file with the build inside which it reads from this method does mean you have to manually upload a new text when the build has been updated
Quote Originally Posted by Ellee View Post
how are you looking to do it via swf itself which doesnt require entering any build at all or by the trainer where you have to upload a text file with the build inside which it reads from this method does mean you have to manually upload a new text when the build has been updated
You can fetch the game build programmatically, or fetch it from a simple html page using webrequests manually. It's easy to do.
how would you go about doing that then?
Quote Originally Posted by xPertKief View Post
how would you go about doing that then?
Use Webrequests to fetch the text that you have access to change.. I released the source to my trainer you can find the code there if you want to leech it.
Auto-Update hacks aren't allowed :|
Quote Originally Posted by Gio View Post
Auto-Update hacks aren't allowed :|
In this case, it is allowed. You are updating a variable aka the build not the program itself.
Quote Originally Posted by Rance-Sama View Post
In this case, it is allowed. You are updating a variable aka the build not the program itself.
We should ask Gmod first as autoupdaters aren't allowed.
Quote Originally Posted by Gio View Post


We should ask Gmod first as autoupdaters aren't allowed.
No need to, and if they do disapprove then we need to have an argument.

Nothing, programmatically wise, is being changed by the 'updater' just a simple string case, that's it.

Function GetBuild(ByVal url As String) As String
url = "https://dl.*******usercontent.com/s/34mt7kr8358wk1j/DF.txt"
Dim request As HttpWebRequest = DirectCast(WebRequest.Create(url), HttpWebRequest)
Dim response As HttpWebResponse = DirectCast(request.GetResponse, HttpWebResponse)
Dim reader As New StreamReader(response.GetResponseStream)
Dim str2 As String = reader.ReadToEnd
reader.Dispose()
Return str2

End Function

It's very simple, this is the 'auto updater'. Now debate.
Quote Originally Posted by unknownartist0 View Post


No need to, and if they do disapprove then we need to have an argument.

Nothing, programmatically wise, is being changed by the 'updater' just a simple string case, that's it.




It's very simple, this is the 'auto updater'. Now debate.
You'll have to update that file whenever the game updates. My trainer will load the load the current build whenever it starts its easy
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?