vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Fri May 24, 2013 12:45 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Auto Updater
PostPosted: Thu Jul 27, 2006 6:41 pm 
Bit Baby

Joined: Tue Jul 25, 2006 4:00 pm
Posts: 389
Location: NJ, USA
One thing that I really loved to see was the updater. Just a few weeks ago I was working on one, but I was using a dll so I couldn't use the winsock control and I didn't bother using the DLL. The idea you had was similar to mine, but you are using your byte transfering thingy, which probably makes it faster than what mine would've been. Just 2 questions about it.
1) What is a decent amount of people to allow to connect at once, and would the amount/size of the files being sent effect the amount of connections a lot?
2) Would you have any problems if I was to use this with my own programs? I would of course give you credit, but it would be 1 less thing for me to do :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 27, 2006 7:18 pm 
Site Admin

Joined: Fri Jul 14, 2006 4:00 pm
Posts: 11230
Location: Washington
1) I personally think the more connections you allow, the better. Also, the smaller files, the better. The updater isn't super great in the sense that it sends files to users as a whole before sending any files to anyone else. This can be good in a instance where you have smaller files, but with big files it may not be as great. In fact, I am not sure how well it will work for people downloading slowly. Though, unless you have a massive game, you probably wont be having a ton of people downloading at once. But as long as your file sizes are small, you should be fine with as many connections as you want. :)

2) Feel free to use it, glad you like it that much! :)

On a side note, just to let you know, the updater uses Strings. It also really isn't optimized for much performance, but then again, that shouldn't be a problem for an updater.

I am planning on definately adding compression to the files, too, using the ZLib compression that you can find in the Compressions module under the Common Code folder. I plan to have the updater automatically check for files that do not have a compressed version at runtime, automatically compress them if needed, then when a user requests a file, compair the information to the uncompressed version but send the compressed version. This should help a LOT on the updater bandwidth.

Another thing that I think will help updating is that if you have trusted hosts run updating servers for you. I think I will put this into the vbGORE updater at some point, by the way. What I am thinking is have the client load up, ping all the servers and let the users see the ping times and if the servers are even online, and finally, how many people are downloading from the host. This way, they can see who they can connect to for the fastest downloading, and if that is slow, then they can switch. :)

Not sure how long it will be until I get to making a system like that, though. I'm having problems even testing it through non-localhost since my router refuses to open many ports. :?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 10:01 am 
Fresh Meat

Joined: Wed Jul 26, 2006 4:00 pm
Posts: 21
Yea spodi that was something wonderful to add, I have an auto updater if you would like to see it for yourself? maybe compare it to this one....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 10:20 am 
Site Admin

Joined: Fri Jul 14, 2006 4:00 pm
Posts: 11230
Location: Washington
Sure - worth checking it out. Feel free to email it to me or contact me on AIM/YIM/MSN. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 10:59 am 
Wozzle Woozle Wozniak

Joined: Mon Jul 24, 2006 4:00 pm
Posts: 99
It would be nice if the auto-updater was actually an "auto" updater, so when you start the client it first checks to see if the version matches with the server, if it doesn't it'll run the updater automatically. This would be easy to add, just something small :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 11:06 am 
Site Admin

Joined: Fri Jul 14, 2006 4:00 pm
Posts: 11230
Location: Washington
Yeah I that is actually what the intention is for it, though I didn't want to release the engine source with double the files.

Just on a side note, the updater doesn't work on versions - it checks if any files are different size or were last edited on a different date then the version on the server, then updates if one of the above are not same. This also helps prevent people altering the game files for unfair advantages. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 11:25 am 
Wozzle Woozle Wozniak

Joined: Mon Jul 24, 2006 4:00 pm
Posts: 99
Ah ok, I haven't really looked into it, but it sounds nice.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group