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.
Originally Posted by xPertKief
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.
Originally Posted by xPertKief
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
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?
Originally Posted by xPertKief
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 :|
Originally Posted by Gloo
Auto-Update hacks aren't allowed :|
In this case, it is allowed. You are updating a variable aka the build not the program itself.
Originally Posted by AqworldThunder
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.
Originally Posted by Gloo
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.*******userconten*****m/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.
Originally Posted by unknownartist0
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