Thread: Download cache from dropbox without having a public folder.

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Download cache from dropbox without having a public folder. 
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,714
    Thanks given
    56
    Thanks received
    91
    Rep Power
    95
    So I see that many people have a problem with their cachedownloader and most of the time the problem is that they don't have a public folder.
    Here is a small fix, so you can just upload it to your dropbox.


    Coding

    Open up CacheDownloader.java
    and search for
    Code:
    private String getArchivedName() {
    You should see something like this:
    Code:
    private String getArchivedName() {
                    int lastSlashIndex = getCacheLink().lastIndexOf('/');
                    if (lastSlashIndex >= 0 
                            && lastSlashIndex < getCacheLink().length() -1) { 
                            return getCacheLink().substring(lastSlashIndex + 1);
                    } else {
                            System.err.println("Can not find archived name.");
                    }
                    return null;
            }
    Now add this piece of code
    Code:
    , getCacheLink().length() - 5
    next to
    Code:
    return getCacheLink().substring(lastSlashIndex + 1
    This is what it looks like:
    Code:
    private String getArchivedName() {
                    int lastSlashIndex = getCacheLink().lastIndexOf('/');
                    if (lastSlashIndex >= 0 
                            && lastSlashIndex < getCacheLink().length() -1) { 
                            return getCacheLink().substring(lastSlashIndex + 1, getCacheLink().length() - 5);
                    } else {
                            System.err.println("Can not find archived name.");
                    }
                    return null;
            }
    What this does is it removes the last 5 characters of the link.

    Direct link

    To get the direct link goto dropbox.com.
    Right click your cache and click on share.

    You will see something like this:

    At the end of the link you have to edit
    Code:
    ?dl=0
    to
    Code:
    ?dl=1
    Small explanation

    If you have a public folder in your dropbox account the direct link always ends with: Cachename.zip.
    But if you don't have a public folder you need to change the ?dl=0 to ?dl=1 so it direct downloads.
    Because your link ends with ?dl=1 the CacheDownloader thinks your zip is called Cachename.zip?dl=1.
    So now we have made it that it deletes the last 5 characters of the link so it's Cachename.zip again.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Sep 2007
    Age
    24
    Posts
    2,430
    Thanks given
    127
    Thanks received
    508
    Rep Power
    386
    OR you could host it on a platform intended for distributing large files, not make your players with good internet speeds have to wait 10 minutes to play your server for the first time.

    Better still, use the clients built in ondemand.
    Reply With Quote  
     

  3. #3  
    ಠ_ಠ

    Joshua's Avatar
    Join Date
    May 2010
    Posts
    1,907
    Thanks given
    397
    Thanks received
    708
    Rep Power
    803
    Quote Originally Posted by RuneBeam View Post
    OR you could host it on a platform intended for distributing large files, not make your players with good internet speeds have to wait 10 minutes to play your server for the first time.

    Better still, use the clients built in ondemand.
    Or use an update server and have everyone, even with shitty internet, load up in a few seconds.




    [Only registered and activated users can see links. ]

    Spoiler for Eye Bleach & Recent Releases:



    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]


    Reply With Quote  
     

  4. #4  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,714
    Thanks given
    56
    Thanks received
    91
    Rep Power
    95
    Quote Originally Posted by donor fabian View Post
    OR you could host it on a platform intended for distributing large files, not make your players with good internet speeds have to wait 10 minutes to play your server for the first time.

    Better still, use the clients built in ondemand.
    Quote Originally Posted by Joshua View Post
    Or use an update server and have everyone, even with shitty internet, load up in a few seconds.
    That is also possible.
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,714
    Thanks given
    56
    Thanks received
    91
    Rep Power
    95
    Bump
    Reply With Quote  
     

  7. #6  
    Registered Member Psychoactive's Avatar
    Join Date
    Jun 2015
    Posts
    479
    Thanks given
    59
    Thanks received
    51
    Rep Power
    23
    Quote Originally Posted by xX4m4zingXx View Post
    Bump
    when I do this, the cache extract but the sprite folder don't.
    What can be the problem?

    Very friendly guy. Helped me with my autocacher and many more things.

    Thank you very much!
    You are pure perfection living in a complete world
    Reply With Quote  
     

  8. #7  
    Donator
    snurf's Avatar
    Join Date
    Oct 2015
    Posts
    583
    Thanks given
    70
    Thanks received
    90
    Rep Power
    0
    Thank for this.
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Dec 2015
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    RuneCacheV1.zip 16274947
    java.io.FileNotFoundException: C:\RuneCacheV1\data\1063.dat (The system cannot f
    ind the path specified)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at CacheDownloader.unzip(CacheDownloader.java:188)
    at CacheDownloader.unZip(CacheDownloader.java:174)
    at CacheDownloader.downloadCache(CacheDownloader.java :77)
    at client.startUp(client.java:7174)
    at RSApplet.run(RSApplet.java:33)
    at client.run(client.java:4674)
    at java.lang.Thread.run(Unknown Source)
    Error: loaderror Loading eXile... 60

    Was actually happy that it loaded up But then I got this error.
    Reply With Quote  
     

  10. #9  
    What a wonderful phrase Hakuna Matata's Avatar
    Join Date
    Mar 2011
    Posts
    218
    Thanks given
    132
    Thanks received
    42
    Discord
    View profile
    Rep Power
    1
    wouldn't recommend dropbox for cache hosting they have a download data limit
    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Dec 2015
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    What would you use?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 02-09-2013, 06:38 PM
  2. Replies: 0
    Last Post: 10-13-2012, 10:07 PM
  3. Replies: 3
    Last Post: 01-01-2012, 08:04 PM
  4. I have cache from august 6th 2006
    By Twone in forum Help
    Replies: 12
    Last Post: 06-04-2009, 12:58 AM
  5. Download your cache from uppit!
    By Pkitten in forum RS2 Client
    Replies: 0
    Last Post: 04-07-2008, 07:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •