Thread: Desktop Client Loader - Version 2

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 Desktop Client Loader - Version 2 
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,740
    Thanks given
    211
    Thanks received
    1,034
    Rep Power
    2455
    Tutorial: A simple Desktop loader that allows you to update your client without making the user redownload a 30mb client every time. It will also update the cache based on the checksums.

    Difficulty: As difficult as you make it.

    Step One:

    Download this. It contains a DPrepare folder, and a DLoader folder.

    Click Here

    Step Two

    Extract the zip file.

    The DPrepare file prepares the client.jar and changes the name to the current checksum, while also taking any other file in the in directory and getting the checksum, then saving the checksum to a text file (main_file_cache.dat.txt is an example of this)."

    • Place client.jar and cache files into /in/ directory
    • Run
    • Upload the contents of /out/
    • Upload your cache files. They must not be zipped (You can upload it zipped and then extract it).


    Step Three

    Open up DLoader, and browse to src/Loader.java. You will see

    Code:
    	private static final double VERSION = 2.0;
    	private static final String CACHE_LOCATION = System.getProperty("user.home") +"/.divinity_cache/";
    	private static final String CODE_BASE = "http://divinity317.info/game/";
    	private static final String[] CACHE_FILES = {"1362.dat", "main_file_cache.dat", "main_file_cache.idx0",
    					"main_file_cache.idx1", "main_file_cache.idx2", "main_file_cache.idx3",
    					"main_file_cache.idx4", "model_cache.dat", "model_cache.idx"};
    Ignore the VERSION.
    Change CACHE_LOCATION to the location of your cache
    Change CODE_BASE to the location of all your files with the trailing '/'
    Change CACHE_FILES to have all the data files of your cache.

    Step Four

    Find the launch method in Loader.java, and 'GUI' to your client class, or your wrapper class, which ever.


    If you have problems please post them in this thread
    Reply With Quote  
     

  2. #2  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    Sounds sick, I'm checkin' this out. Thanks

    Reply With Quote  
     

  3. #3  
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,740
    Thanks given
    211
    Thanks received
    1,034
    Rep Power
    2455
    Thanks

    There was probably a better way to do the web side checksum grabbing (maybe a php file, then getChecksum.php?name=cacheFile), but I was too lazy
    Reply With Quote  
     

  4. #4  
    bic boiiii, like someboooooodeey

    'Exs Faith's Avatar
    Join Date
    Feb 2009
    Age
    31
    Posts
    282
    Thanks given
    10
    Thanks received
    3
    Rep Power
    123
    Nice, Good job mate
    (:
    (] :




    sexy pic, ikr
    Reply With Quote  
     

  5. #5  
    Registered Member
    Xero's Avatar
    Join Date
    Apr 2009
    Posts
    408
    Thanks given
    11
    Thanks received
    4
    Rep Power
    152
    This is sick dude. When I had my server I had like 5 clients lol. Definitley will use this
    Stewie
    Spoiler for Whiteboy Fail:


    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Oct 2009
    Posts
    1,595
    Thanks given
    100
    Thanks received
    50
    Rep Power
    232
    sounds really nice gonna check tomarrow after school thanks

    Reply With Quote  
     

  7. #7  
    Registered Member
    AMG A Bear's Avatar
    Join Date
    Jun 2008
    Posts
    1,157
    Thanks given
    27
    Thanks received
    87
    Rep Power
    945
    Ew.. way over complicated and unnecessary?

    Just use hyperion update server with a webclient (using a loader... of course) ...? Easy as pie
    Quote Originally Posted by The Night Life View Post
    Errm. I had a similar idea a very long time ago, about instead of current rs's gameframe, (622) making a rsps with about a 1645 or something. Make it look like you walked outside. I even gathered proffesional computer programmers to help, but bailed on the idea after i realized if we all worked on it non-stop for months at a time, we'd barely get any progress. (unless you wanted to half ass it)
    Reply With Quote  
     

  8. #8  
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,740
    Thanks given
    211
    Thanks received
    1,034
    Rep Power
    2455
    Quote Originally Posted by AMG A Bear View Post
    Ew.. way over complicated and unnecessary?

    Just use hyperion update server with a webclient (using a loader... of course) ...? Easy as pie
    It's not overcomplicated, did you even read it?

    Not everyone uses Hyperion, or is on the 'Hyperion hype'
    Reply With Quote  
     

  9. #9  
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    Nice I'll probably use this . Couldn't get mine to work.
    Attached image
    Reply With Quote  
     

  10. #10  
    Registered Member
    G0nzo's Avatar
    Join Date
    Feb 2009
    Posts
    4,960
    Thanks given
    514
    Thanks received
    546
    Rep Power
    1735
    Sounds sick, will try it now
    Computer Science Graduate, Java Expert
    Need help with something? PM me
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •