Jump to content

Aces0fsp4des

Member
  • Content count

    23
  • Joined

  • Last visited

About Aces0fsp4des

  • Rank
    Bronze Member
  1. Still need help with this, bump.
  2. Hello rune server, i seem to be getting the following error, and i'm not sure why. i could be missing something fairly simple but i figured i'd ask for some advice anyways. Currently messing around with swiffy's latest give to the community. The cache link and the url link to have the "load images" load up will not work unless it's the cache itself being the problem and i don't beleive it is. I have all my links set up correctly as far as i know anyways, yet all the client does is blackscreen whist giving me a 403 error. Yes i know what that means, and i'm not understanding what's wrong with it. Cache is packed correctly, and repacked correctly. links are live etc but the client just won't load up at all. Would anyone be able to help me out with possibly adding the updatecache that was released Here: [code]import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; /** * The custom update server to download and update the cache. * @author Apacheah64 */ public class Update { /** * The client reference. */ private Client c; /** * The cache directory. */ private static final String CACHE_DIR = signlink.findcachedir(); /** * Construct a new {@code Updater} {@code Object}. * [MENTION=75098]Para[/MENTION]m c The client reference. */ public Update(Client c) { this.c = c; } /** * Update the cache. */ public void updateCache() { new File(CACHE_DIR).mkdirs(); File file = new File(CACHE_DIR+"rusereborn.dat");//its a check if the cache already exists if(!file.exists()) { c.drawLoadingText(0, "Checking for updates"); downloadArchive("http://162.218.48.74/~ruserebo/client/cache/RuseReborn.zip"); } file = new File(CACHE_DIR+"cache.zip"); if(file.exists()) { unzip(CACHE_DIR+"cache.zip"); } } /** * Download the cache archive from the web server. * [MENTION=75098]Para[/MENTION]m dlurl The uniform resource locater to the file that has to be downloaded. * [MENTION=75098]Para[/MENTION]m cachePart The part of the cache that is being downloaded. */ private void downloadArchive(String dlurl) { try { URLConnection url = new URL(dlurl).openConnection(); int i = url.getContentLength(); InputStream is = url.getInputStream(); OutputStream os = new FileOutputStream(CACHE_DIR+"/cache.zip"); byte[] b = new byte[4096]; int length; int old = 0; while ((length = is.read(b)) != -1) { os.write(b, 0, length); old += length; int percent = (int) ((double) old / (double) i * 100.0); drawLoadingText(percent, "Checking for updates - " + percent + "%"); } is.close(); os.close(); unzip(CACHE_DIR+"cache.zip"); File file = new File(CACHE_DIR+"rusereborn.dat"); if(!file.exists()) { file.createNewFile();// got ya } } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } /** * Unzip the cache archive part. * [MENTION=75098]Para[/MENTION]m file The file location. */ private void unzip(String file) { Enumeration<?> entries; ZipFile zipFile; try { zipFile = new ZipFile(file); entries = zipFile.entries(); while(entries.hasMoreElements()) { ZipEntry entry = (ZipEntry)entries.nextElement(); if(entry.isDirectory()) { (new File(CACHE_DIR+"/"+entry.getName())).mkdir(); continue; } copyInputStream(zipFile.getInputStream(entry), new BufferedOutputStream(new FileOutputStream(CACHE_DIR+"/"+entry.getName()))); drawLoadingText(100, "Unpacking Cache"); } zipFile.close(); File zip = new File(file); zip.delete(); } catch (IOException ioe) { ioe.printStackTrace(); return; } } /** * Make a copy of the input stream and write it. * [MENTION=75098]Para[/MENTION]m in The input. * [MENTION=75098]Para[/MENTION]m out The output. * @throws IOException */ private static final void copyInputStream(InputStream in, OutputStream out) throws IOException { byte[] buffer = new byte[1024]; int len; while((len = in.read(buffer)) >= 0) { out.write(buffer, 0, len); } in.close(); out.close(); } private static void drawLoadingText(int amount, String text) { Client.loadingPercentage = amount; Client.loadingText = text; } } [/code] Thankyou very much. Pm me if you'd like to assist me
  3. Hello ************, I am currently here in search of someone who could either help out by helping my learn certain things or would just be willing to be a partner on a project as i learn along etc. What i would like to start with: - Clicking objects and bringing up dialogue with multiple options and making those options work and do different things. - Learning how to work with the quest book a little bit, make them go from red/yellow/green as progress is completed - Understanding dialogues a bit more with npcs and requiringments for things - and some other odds and ends And before anyone says "tutorials".. yes i know there are a few, but i'd rather learn alongside someone if they are willing to help me or would like to just work with me on some random messing around things. Please let me know if you're interested, thanks
  4. I've added model's before to my server's but it's not working, there was no "Raw" folder in the cache so i made one to put the model's in it like normal, but then there's a model's.dat and a models.idx, and im assumming you need a cache editor for those? if so i've looked and can't find a link working for toms cache suite to even try that, and i've never done it that way before, only through the raw folders, i have all item ints and entiry def ints correct, compile no errors, but the items won't show, please someone help me out with this one, please and thankyou
  5. Someone refer'd me to ask in the client section for this rather than server sided so here we go, Hello rune server, i am currently trying to figure out were or what i would need to do to be able to change the game controls for my server, for example: Currently you use arrow key's for camera and mouse to click your direction etc What i want to do: Make it so WASD keys make you run forward/backward/side/side and "right" clicking the mouse and moving it will spin the camera 360 instead of arrow keys. If anyone can help me with this i'd apreciate it, please and thankyou
  6. Hello rune server, i am currently trying to figure out were or what i would need to do to be able to change the game controls for my server, for example: Currently you use arrow key's for camera and mouse to click your direction etc What i want to do: Make it so WASD keys make you run forward/backward/side/side and "right" clicking the mouse and moving it will spin the camera 360 instead of arrow keys. If anyone can help me with this i'd apreciate it, please and thankyou
  7. Hello Runelocus, I'm here today looking for someone who is serious and looking for a project and to work with me on it. I know all basics and a decent amount more in java coding, as well as enrolled in college taking my java course aswell, meaning just more and more experience to come from my end. If your serious about a project and looking to code, Private message me. I also have some graphics under my belt aswell as some website development/html Basic questions if interested: Name: Types of experience: What can you bring to the server to help uniqueness: Age: Only serious people apply!
  8. Hey everyone, does anyone happen to have the 317 Ore id's? for rune, addy etc? The rock that is mined, not the ore itself. Thanks
  9. Bahaha, Well honestly, There's a point, I'm currently using the same for my current project, yet none of the shops work.. so im trying to fix those, or atleast have someone help me with them, i have lke average of 7 random players tho.. idk how they got on lmfao
  10. Would you possibly mind helping me?
  11. Whenever i try to open a shop it just says, " Nothing interesting happens " when you click them or right click them and trade, both say same thing, and i tried adding new shop with new currency for fist of guthix tokens, and yet it still did not work :s
  12. I'm pretty sure, and npchandler.java.. i honestly just can't figure it out after like half a week :s, and i refuse to move forward with this project until i can atleast get shops working if you know what i mean lol. shops are very important.
×