LCKB
Custom Client Downloader - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Release Zone (https://lckb.dev/forum/forumdisplay.php?fid=190)
+---- Forum: General Releases (https://lckb.dev/forum/forumdisplay.php?fid=127)
+----- Forum: General Client Releases (https://lckb.dev/forum/forumdisplay.php?fid=213)
+----- Thread: Custom Client Downloader (/showthread.php?tid=4839)



- nicolasg - 11-09-2021


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

2

2

 





 




- Scura - 11-09-2021


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




- nicolasg - 11-09-2021



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 ...




- Scura - 11-09-2021



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




- nicolasg - 11-09-2021



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...




- Scura - 11-09-2021



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