Custom Client Downloader
#1

This is a BAD copy of the client downloader that gamigo has for lastchaos.

2

2

 





 

#2

It could be linked at the patcher so you have installer and patcher in the same executable ... not bad at all :3

#3


7 minutes ago, Scura said:




It could be linked at the patcher so you have installer and patcher in the same executable ... not bad at all :3




And if we add to that a file repair system :3 ...

#4


11 minutes ago, nicolasg said:




And if we add to that a file repair system :3 ...




just a simple CRC should works fine! And here we go, we have a perfect client downloader! I wish to share my contribute but i suck in lua XD

#5


2 minutes ago, Scura said:




just a simple CRC should works fine! And here we go, we have a perfect client downloader! I wish to share my contribute but i suck in lua XD




And maybe be able to pause and resume the download...

#6


9 minutes ago, nicolasg said:




And maybe be able to pause and resume the download...




Yea ... that depends how the server is setted and if it support the Range 2 .... guess in this case the best way is to create a nodejs api which manage the connection (backend) and checks:


If a player need to downloaded the entire client -> download the latest stable version, then set the vtm for download the necessary patch


If a player need to update the client -> the client is already downloaded, based on the difference between local version and remote ones, update it


If an update was stopped and wanna be resumed  -> more information in the  stack attached


Repair function: a basic CRC32 should be enought for checks the corrupted files and download only those!


my suggestions is to move everything on a Client/Server struct. You should be able to implement an easy api in NODEJS + Express and then just need to develop the client side stuff :3 



Forum Jump:


Users browsing this thread: 1 Guest(s)