Well obviously in current version of your bot, you have bugs and once you update, you wish for those bugs to be forgotten. So I want an auto update which checks the current version against the latest version on my website. And I know LoRd]ZeR0[ knows how to do that, but he isn't as nice as people think. Anyways, if anyone knows even where to START all help will be appreciated. But no useless posts plz..
Go to http://www.pscode.com Search For Auto Update, It has a few examples on how to check two versions, its all done with msInet.ocx I believe.
Well, if you know how to use winsock it's pretty simple to have a verification server running on your computer and when your program starts it connects to your box, gets the version, and informs the user that an update is available. If you want to be meaner, don't let them run the program if an update is available.
That's about as simple as it gets, making the users update it themselves :)
LordZero probably stole the code from someone else... He seems like an asshole :) almost as asshole as camel, but camel is actually smart :)
assume(vb)
1. Get yourself a Geoshitties acct
2. Make a textfile, update.txt, that looks like (ignore the ' comments):
1.1 'current version
1234abcd 'CRC32 of the current version EXE file
This version adds some new stuff 'description of patch
http://www.geocities.com/crapbot/patch1.1.exe 'patch executable
3. In your bots sub main or form_load, have your inet control get that textfile, and split() by vbcrlf. Run a CRC32 on the bot exe (app.path & "\" & app.exename) and compare to line(1). If they aren't the same, pop up a message box, asking, "Do you want to upgrade to " & line(0) & ": " & line(2) & "?"
4. If they want to upgrade, use msinet to get the file at line(3), and run it with shell
5. You can get a cool patch maker at www.clickteam.com
Have a nice day.
Inet makes things alot easier. Just do OpenURL, and your set.
LoL I seem to have offended LoRd]ZeR0[ cuz he kind of blocked me and shit. I just meant, he has the knowledge.....why doesn't she share it. Cuphead knows 100 times more than he does and he shares almost every bit of it.
I know a million times more than he does, and I share it too... want an example of how to do it? then message me on aim!
I finally got it....and yes I used iNet. Thank you all.
Quote from: TheMinistered on May 17, 2003, 06:49 PM
LordZero probably stole the code from someone else... He seems like an asshole :) almost as asshole as camel, but camel is actually smart :)
camel is an asshole? he seems pretty cool to me... ;)
Use inet - Good idea? :o
Why not? It's very simple to use.
Heavyweight
Quote from: St0rm.iD on May 22, 2003, 06:46 PM
Heavyweight
it's a tradeoff. if you don't use it, you have to invest more time and effort. compared to the size vb's overhead already is, it's relatively lightweight. the ocx is under 60k, and i can't see how it could possibly add more than a few miliseconds longer than the old-sk00l method to execute. imo, it's worth it -- i'd rather spend the time making sure the php is correct than worrying about handling socket errors and the like.
Quote from: St0rm.iD on May 17, 2003, 09:30 PM
assume(vb)
1. Get yourself a Geoshitties acct
2. Make a textfile, update.txt, that looks like (ignore the ' comments):
1.1 'current version
1234abcd 'CRC32 of the current version EXE file
This version adds some new stuff 'description of patch
http://www.geocities.com/crapbot/patch1.1.exe 'patch executable
3. In your bots sub main or form_load, have your inet control get that textfile, and split() by vbcrlf. Run a CRC32 on the bot exe (app.path & "\" & app.exename) and compare to line(1). If they aren't the same, pop up a message box, asking, "Do you want to upgrade to " & line(0) & ": " & line(2) & "?"
4. If they want to upgrade, use msinet to get the file at line(3), and run it with shell
5. You can get a cool patch maker at www.clickteam.com
Have a nice day.
A hearty -1 to St0rm.iD for going to the trouble to paste yet another viable solution which gets ignored. The only thing I'd change in his would be to have the update checker in a menu item, and not done automatically by default. Users shouldn't be forced to upgrade, ala Microsoft.
I love Microsoft's updates, they popup at inconveint, random times. They provide almost no help to whatever may be wrong with my computer.
-I do msgs saying that I need to update or w/e, jsut so I know something is wrong.
It's just so much fun to sit on dial-up & download Microsoft patches.
EDIT:
Well I'll be damned, just as I post this I look at my System tray & there is Windows Update going about it's business.
Post a text file on a server.
By using MSinet.ocx, make it state the current version in the text file. If the version on the bot you are running and the current version uploaded do not match, Tell them that their bot is out of date
Public Function GetVer(ByVal Version As String) As Boolean
On Error Resume Next
dim textstuff as string
textstuff = Inet1.OpenURL(www.yoursite.com/text.txt)
Do While Inet1.StillExecuting
DoEvents
Loop
If LCase(textstuff) = LCase(version) Then
Getver = True
Else
Getver = False
End If
End Function
Quote from: Grok on August 21, 2003, 03:01 AM
A hearty -1 to St0rm.iD for going to the trouble to paste yet another viable solution which gets ignored. The only thing I'd change in his would be to have the update checker in a menu item, and not done automatically by default. Users shouldn't be forced to upgrade, ala Microsoft.
I believe a great man once said, "DIE THREAD, DIE."
Why die? This is a good topic with a great many possible good solutions. I think a listing and discussion of them is completely relevant to good bot development.
Why not add something like this to BNLS, that could be hooked up to your BNLS account? You send a packet on connection to BNLS and it returns if a new release is out :)
Quote from: DaRk-FeAnOr on August 21, 2003, 09:43 PM
Why not add something like this to BNLS, that could be hooked up to your BNLS account? You send a packet on connection to BNLS and it returns if a new release is out :)
How is that in any way related to the BNCS protocol? Perhaps your suggestion would be better suited on BotNet and not BNLS.
True, but either way that would be a good/cool idea.
Grok: that's why I've essentially stayed off of this forum and kept to Adron/Grok/Advanced/Webdev forums.
Are you dissing us st0rm?
Yes, I am. Tough.
St0rm reminds me of........ me
but more cocky :P +1 to St0rm
and -10000000000 to me from everyone else :D
Noooo +1
But I have a reason: I always used to post perfectly viable solutions, which were always ignored, and whenever I told someone what I thought about their problems, they always say "well you could've helped."
It really pisses me off.