Jump to content


  • Content count

  • Joined

  • Last visited

  1. [quote name='holon']Replace the JDK with your version of JDK[/QUOTE] My current version: [IMG]http://i61.tinypic.com/affsap.png[/IMG]
  2. Hey guys, I have been stumped with this compiler error all evening. I have searched far and wide for any solution but I have came up blank with each search. The error: [IMG]http://i61.tinypic.com/2qdr1fp.png[/IMG] My SOURCE compiler code: [CODE]@echo off "C:/Program Files (x86)/Java/jdk1.8.0/bin/javac.exe" -classpath deps/log4j-1.2.15.jar;deps/jython.jar;deps/xstream.jar;deps/mina.jar;deps/mysql.jar;deps/poi.jar;deps/slf4j.jar;deps/slf4j-nop.jar -d bin src\server\event\*.java src\server\model\items\*.java src\server\model\minigames\*.java src\server\model\npcs\*.java src\server\model\objects\*.java src\server\model\players\*.java src\server\model\players\skills\*.java src\server\model\players\packets\*.java src\server\model\shops\*.java src\server\net\*.java src\server\task\*.java src\server\util\*.java src\server\world\*.java src\server\util\log\*.java src\server\*.java src\server\world\map\*.java pause[/CODE] I uninstalled all java versions from my cpu and re downloaded the latest version of JDK. I made sure my CLASSPATH/PATH all lead to the same and correct folder, etc. Any and all help will be appreciated! :D PLEASE, IF YOU ARE NOT GOING TO CONTRIBUTE IN ANY GOOD WAY TO THIS TOPIC, PLEASE DO NOT REPLY/POST.
  3. [ATTACH=CONFIG]10145[/ATTACH] It's the first error I am having a problem with... I already fixed the second error. I have been having problems jarring an older delta 317 client, I figured it was best to move onto a more updated source/client. I chose TrisidiaX since it came with an auto downloader already. Any help will be greatly appreciated, Cheef!
  4. Yes I used the wonderful world of google, I juiced the shit out the search bar today. Narrowing in on the problems I have been encountering with my client (with jarring and such) I noticed that there is no void startUp() in my client.java, as the title saids. I was wondering if there is a basic code I can implement for there to be codes and such that go with void startUp()? Thank you for the help, Cheef!
  5. [quote name='Phobix']Your methods for drawloadingtext are different. Just change them to the ones that correspond with your client. Find them in client.java[/QUOTE] [quote name='Hope']Or they could possibly not exist, which is usually the case. Simply comment or remove lines 36 and 42 of CacheDownloader.java. Seems like they're both used for drawing text onto the screen, so it's not necessary to have those for the client to run. You also said you watched a tutorial on this... Make sure you have all the methods they provided. Double check for the two call statements that are giving you errors.[/QUOTE] I tired both suggestions but neither seemed to work, I know it has to be on my end with the client we have. I noticed that the client didn't come with a CacheDownlader.java or Cachedownloader.class files... So I took it upon myself to create a new CacheDownloader.java adding this inside the text doc: import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.FileWriter; import java.io.BufferedWriter; import java.io.BufferedOutputStream; import java.io.BufferedInputStream; import java.io.FileOutputStream; import java.io.FileInputStream; import java.io.InputStream; import java.net.URLConnection; import java.net.URL; import java.util.zip.ZipFile; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import java.util.Enumeration; import sign.signlink; public class CacheDownloader { private client client; private final int BUFFER = 1024; /* * Only things you need to change * */ private final int VERSION = 1; // Version of cache private String cacheLink = "LINK TO CACHE HERE"; // Link to cache private String fileToExtract = getCacheDir() + getArchivedName(); public CacheDownloader(client client) { this.client = client; } private void drawLoadingText(String text) { client.drawLoadingText(35, text); System.out.println(text); } private void drawLoadingText(int amount, String text) { client.drawLoadingText(amount, text); System.out.println(text); } private String getCacheDir() { return signlink.findcachedir(); } private String getCacheLink() { return cacheLink; } private int getCacheVersion() { return VERSION; } public CacheDownloader downloadCache() { try { File location = new File(getCacheDir()); File version = new File(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat"); if(!location.exists()) { //drawLoadingText("Downloading Cache Please wait..."); downloadFile(getCacheLink(), getArchivedName()); unZip(); System.out.println("UNZIP"); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); } else { if(!version.exists()) { //drawLoadingText("Downloading Cache Please wait..."); downloadFile(getCacheLink(), getArchivedName()); unZip(); System.out.println("UNZIP"); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); } else { return null; } } } catch(Exception e) { } return null; } private void downloadFile(String adress, String localFileName) { OutputStream out = null; URLConnection conn; InputStream in = null; try { URL url = new URL(adress); out = new BufferedOutputStream( new FileOutputStream(getCacheDir() + "/" +localFileName)); conn = url.openConnection(); in = conn.getInputStream(); byte[] data = new byte[BUFFER]; int numRead; long numWritten = 0; int length = conn.getContentLength(); while((numRead = in.read(data)) != -1) { out.write(data, 0, numRead); numWritten += numRead; int percentage = (int)(((double)numWritten / (double)length) * 100D); drawLoadingText(percentage, "Downloading Cache " + percentage + "%"); } System.out.println(localFileName + "\t" + numWritten); drawLoadingText("Finished downloading "+getArchivedName()+"!"); } catch (Exception exception) { exception.printStackTrace(); } finally { try { if (in != null) { in.close(); } if (out != null) { out.close(); } } catch (IOException ioe) { } } } private String getArchivedName() { int lastSlashIndex = getCacheLink().lastIndexOf('/'); if (lastSlashIndex >= 0 && lastSlashIndex < getCacheLink().length() -1) { return getCacheLink().substring(lastSlashIndex + 1); } else { System.err.println("error retreiving archivaed name."); } return ""; } private void unZip() { try { InputStream in = new BufferedInputStream(new FileInputStream(fileToExtract)); ZipInputStream zin = new ZipInputStream(in); ZipEntry e; while((e=zin.getNextEntry()) != null) { if (e.getName().equals(fileToExtract)) { unzip(zin, fileToExtract); break; } unzip(zin, getCacheDir() + e.getName()); //unzip(zin, getCacheDir() + e.getName()); System.out.println("unzipping2 " + e.getName()); } zin.close(); } catch(Exception e) { e.printStackTrace(); } } private void unzip(ZipInputStream zin, String s) throws IOException { FileOutputStream out = new FileOutputStream(s); //System.out.println("unzipping " + s); byte [] b = new byte[BUFFER]; int len = 0; while ((len = zin.read(b)) != -1) { out.write(b,0,len); } out.close(); } } I changed the link to my cache folder link from my client. The next step was for me to add - new CacheDownloader(this).downloadCache(); - under - drawLoadingText(20, "Starting up"); The problem that prevented me from doing this was the missing - void startUp() - in my client.java Is there a way to add - void startUp() ?
  6. Hey people, my friend has been trying to jar his client for a day or two now but he could not seem figure it out. Being a good friend, I decided to offer my assistance. The main problem we were having was the cache, it wouldn't link up with it. I decided to watch a tutorial regarding this problem. I did everything correct but when I finished and complied I got two errors, as posted below: [IMG]http://i57.tinypic.com/wtipsz.png[/IMG] If anyone has any insight into why it might be saying this or with any fix/suggestions, please comment below. The help will be greatly appreciated! - Cheef
  7. To know what you shuld put and use look around in the private server downloads and see whats there, what people like. if you need add me on msn: [email protected]