Does it automatically download the cache?
|
This is a client issue but, I'll post it in here for faster responses. Anyways, thanks to my friend he helped me successfully jar my client and get it to run, but, it won't load for other people. I'm assuming the issue is this ->
private String cacheDir = "C:/";
It works for me when it's
private String cacheDir = "C:/Users/cory/" ; (obviously)
But, I need to make it so it works for everyone, so how can I make it so it's
private String cacheDir = "C:/Users/Theirname/";
What I tried to do is I tried to make an auto-cache downloader. The source is running on a VPS and currently, if you delete the cache and then run the client, it says "making directory", and it downloads and unzips the file, but it doesn't download everything. It's missing a lot of folders like animations, sprites etc.
Any help is greatly appreciated and will be rewarded with a rep++
Thanks again.
It's definitely a cache related issue. Look up some auto cache downloading threads and you'll find your answer there (:
Try something like:
and then you could declare your string as:Code:int Location = (new File(System.getProperty("user.home"))).exists();
if that doesn't work send me a private message and i'll try to help you outCode:private String cacheDir = Location;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |