Jump to content

Search the Community

Showing results for tags 'issues'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Found 87 results

  1. Hello, this is my first post here so hopefully I don't do anything wrong within this thread. I am what I would consider essentially new to RSPS development. Prior to picking up this source I had no Java experience but I am proficient in C++ and assembly. I'm a CS student and know my way around code in general, but don't know much about managing a package of this size or scale. I've been messing with my source on and off for a little over 2 months and have run into some snags that I can't work out on my own due to a lack of understanding and resources on the web. I have a 718+ Matrix source which *I think* is loading a 742 cache. I've worked through all the typical noob stuff of getting the server to compile, run, client connect, port forward, host it on a server, etc. To make this easier to read I'll simply list what I'm having the most trouble with. [LIST] [*]Large (and some small) NPC animations not working properly [*]NPC Spawning [*]Interface management [*] [/LIST] For the animation issue, I do know that it has to do with selecting the proper attack/defence animations in the NPCdefinitions file, but I have no idea where to get the proper animations from or how to narrow it down. NPC spawning, upon deleting my packed NPC spawn file I am getting an error while trying to generate the new packed file by running the server. The error is telling me there's an invalid spawn in my unpackedSpawns.txt. The weird thing is, I only get this error about half the time with the exact same spawns in the unpacked list. Interface management... where do I even begin. What kind of clusterfuck is the interface system? I don't even know where to start looking to try and edit existing interfaces or add one such as a quest tab server info pane. Also, when opening the popout equipment stats window, it opens fine and shows my stats as it should, but I can't click the equipment to unequip it without going back and using the tab interface to do it. Lastly, I would like to add items from another server as practice with cache management (just some 120 master capes and the mage and range versions of the kiln capes). I can find tutorials for loading entire caches but how do I edit just parts of my cache? Sorry if the post is too wordy or long, but I have looked all over and can't find specific enough answers for my situations. Also, I'd appreciate it if people would hold off on the "drop down to a lower source" comments as I don't really see the value in it since the mechanics between 317 and 700+ are completely different for what I'm struggling to do. EDIT*: The specific source is Project Runescape, I don't have the link but it is somewhere on the Runelocus forums, hopefully this helps. Thanks in advance, and I appreciate all genuine input.
  2. I have changed these lines of code in launcher.java /* Special game ranks */ public static final String[] DEVELOPERS = { "James", "Olly" }; public static final String[] MAIN_ACESSS = { "James", "Olly" }; I changed the name in the commands to be able to use them but none of it works. I can change titles etc but when i compile its like this doesn't work
  3. Im trying to add commands and they are not working. Also, unable to change welcome note. Any hep i would be very grateful.
  4. Hey guys so I've been using Cheat Engine and the old cheat client "Reflection" for rsps for a while and most of Cheat Engines bugs are not helpful, while Reflection only will start up .001% of the time on servers so I decided to step it up and try Rune Agent. Now, I understand certain aspects of Java as in I am very good with cheat engine so I understand variables and sort of how objects interact with eachother in the game. Where I get VERY confused is the real java stuff like Client.java, framing, all that jazz. Basically I downloaded Rune Agent watched the only tutorial on youtube for it and tried to engineer my way into getting it to work. I found the text for the Run.bat folder which was "java -noverify -Xbootclasspath/a:"RuneAgent.jar";"lib/bcel-5.2.jar";"lib/rsyntax.jar";"client.jar"; -javaagent:"RuneAgent.jar"=config.js -jar client.jar pause". I made it a .bat folder, then I i put a client into the folder of Rune Agent like in the video, renamed it to "client.jar" and opened the Run.bat file. I got this error: [attachment=5:050a234849.jpg] This confused me because I clearly renamed the client "client.jar" so that it would open the client in the folder. I guess I'm just a total noob so if any of you would be kind enough to help me in layman's terms I would be very appreciative. Heres how my Rune Agent folder is setup: [attachment=6:aae37f2a91.jpg] Also, I want to learn java but all of the online tutorials confuse me. I guess I need a more hands on approach? Does anyone have any suggestions for someone like me who's having a hard time starting out?
  5. Hey Runelocus, I was hoping to find someone very experienced with clients, such as item.def issues and I also wanted to dump some models in my cache. I`m trying to add all the OSRS items into my server. Here is the error in my Client compiler once I`ve added the new item.def coding: [CODE]ItemDef.java:337: error: cannot find symbol itemDef.rotationY = 160; ^ symbol: variable rotationY location: variable itemDef of type ItemDef ItemDef.java:338: error: cannot find symbol itemDef.rotationX = 1780; ^ symbol: variable rotationX location: variable itemDef of type ItemDef ItemDef.java:339: error: cannot find symbol itemDef.offsetX = 2; ^ symbol: variable offsetX location: variable itemDef of type ItemDef ItemDef.java:340: error: cannot find symbol itemDef.offsetY = -19; ^ symbol: variable offsetY location: variable itemDef of type ItemDef ItemDef.java:341: error: cannot find symbol itemDef.groundOptions = new String[] { null, null, "Take", null, null }; ^ symbol: variable groundOptions location: variable itemDef of type ItemDef ItemDef.java:342: error: cannot find symbol itemDef.inventoryOptions = new String[] { null, null, null, null, "Drop" }; ^ symbol: variable inventoryOptions location: variable itemDef of type ItemDef ItemDef.java:343: error: cannot find symbol itemDef.groundModel = 2769; ^ symbol: variable groundModel location: variable itemDef of type ItemDef ItemDef.java:349: error: cannot find symbol itemDef.rotationY = 4; ^ symbol: variable rotationY location: variable itemDef of type ItemDef ItemDef.java:350: error: cannot find symbol itemDef.rotationX = 1976; ^ symbol: variable rotationX location: variable itemDef of type ItemDef ItemDef.java:351: error: cannot find symbol itemDef.offsetX = 4; ^ symbol: variable offsetX location: variable itemDef of type ItemDef ItemDef.java:352: error: cannot find symbol itemDef.offsetY = -3; ^ symbol: variable offsetY location: variable itemDef of type ItemDef ItemDef.java:353: error: cannot find symbol itemDef.groundOptions = new String[] { null, null, "Take", null, null }; ^ symbol: variable groundOptions location: variable itemDef of type ItemDef ItemDef.java:354: error: cannot find symbol itemDef.inventoryOptions = new String[] { null, null, null, null, "Drop" }; ^ symbol: variable inventoryOptions[/CODE]
  6. [FONT=times new roman][SIZE=3]I've been playing Dedication X server for over a month now, but starting a few days ago I've been unable to connect. I get a no connection error through the client so I tried going to their website (dedicationx.com) and it redirects me to the RuneScape homepage. So I'm wondering if the server is shut down or something or if it's just me that can't connect. If someone could provide some insight or at least check the site to see if it's down or just me, that'd be great.[/SIZE][/FONT]
  7. I'm having several problems. First of all my Magic only gives 1-10 xp as I mentioned before. Second of all my Squeal of Fortune is an issue. It puts the wrong items you win in your bank. For example if you win Bandos Chestplate, it will put a Iron ore sometimes. Squeal.java: [code]package com.rs.game.player.content; import java.util.concurrent.TimeUnit; import com.rs.Settings; import com.rs.cores.CoresManager; import com.rs.game.item.Item; import com.rs.game.item.ItemsContainer; import com.rs.game.player.Player; import com.rs.utils.Logger; import com.rs.utils.Utils; public class Squeal { public static void openWindow(Player player) { if (player.getRights() >= 2) { if (player.getAttackedByDelay() + 10000 > Utils.currentTimeMillis()) { player.getPackets() .sendGameMessage( "You cannot open Squeal of Fortune while in combat."); return; } if (player.getInterfaceManager().containsScreenInter()) { player.getPackets() .sendGameMessage( "Please finish what you're doing before opening Squeal of Fortune."); return; } player.isSpining = false; player.stopAll(); player.getPackets().sendRunScript(5879); player.getPackets().sendConfigByFile(11155, 3); player.getPackets().sendWindowsPane(1253, 0); sendItems(player); refresh(player); } else { player.sm("Not available."); } } public static void sendTicket(Player player) { player.sm("Congratulations! You have earned a spin on the Squeal of Fortune!"); player.squealSpins += 1; refresh(player); //TODO find config for this. } public static void sendRandomTicket(Player player, int chance) { if(Utils.random(chance) == 1) { if(player.squealSpins > 10) { player.sm("You must have no more than 10 spins to be eligible to recieve random activity spins."); return; } player.sm("Congratulations! You've earned a ticket for a free spin on the Squeal of Fortune!"); if(!player.getInventory().hasFreeSlots()) { player.squealSpins += 1; refresh(player); player.sm("Your inventory was full, so your spin ticket was automatically redeemed into spins.", true); } else player.getInventory().addItem(24154, 1); } } public static void sendButton(Player player) { if (player.getRights() >= 2) { if (player.squealSpins >= 1) { player.getInterfaceManager().sendOverlay(1252, true); refresh(player); } else { player.getInterfaceManager().closeOverlay(true); refresh(player); } } } public static void closeButton(Player player) { player.getInterfaceManager().closeOverlay(true); player.sm("You can access the Squeal of Fortune from the side panel, and you can show the button again by logging out and back in."); } public static void close(Player player) { player.getPackets().sendWindowsPane( player.getInterfaceManager().hasRezizableScreen() ? 746 : 548, 0); Squeal.sendButton(player); } public static void decreaseSpins(Player player) { player.squealSpins -= 1; refresh(player); } public static void increaseSpins(Player player, int i) { player.squealSpins += i; refresh(player); } public static void refresh(Player player) { player.getPackets().sendConfigByFile(11026, player.squealSpins + 1); } public static void sendDailySpins(Player player) { if (player.squealSpins >= 2) { //int hours = (int) ((player.getSqueal() / (1000*60*60)) % 24); if (player.getSqueal() < Utils.currentTimeMillis()) { player.setSqueal(Utils.currentTimeMillis() + (24 * 60 * 60 * 1000)); player.squealSpins += 2; refresh(player); player.sm("You have received your daily spins for Squeal of Fortune!", true); /*} else { player.sm("You will receive your daily spins for Squeal of Fortune in "+hours * 2+" hours.", true);TODO }*/ } } } public static void buySpins(final Player player) { close(player); sendDelayedLogout(player); } public static void spin(Player player) { if(player.squealSpins < 1) { close(player); player.getPackets().sendGameMessage("You do not have enough spins to continue."); return; } else { if(player.isSpining == true) return; player.isSpining = true; decreaseSpins(player); int reward = Utils.random(1, 1000); int slot = 0; int slotchange = Utils.getRandom(6); if (reward >= 1 && reward <= 920) { if (slotchange == 1) { slot = 1; } else if (slotchange == 2) { slot = 3; } else if (slotchange == 3) { slot = 5; } else if (slotchange == 4) { slot = 7; } else if (slotchange == 5) { slot = 10; } else if (slotchange == 6) { slot = 12; } } else if (reward >= 921 && reward <= 987) { if (slotchange >= 5) { slot = 6; } else if (slotchange <= 2) { slot = 9; } else if (slotchange >= 3 && slotchange < 5) { slot = 11; } } else if (reward >= 988 && reward <= 997) { if (slotchange >= 5) { slot = 0; } else if (slotchange <= 2) { slot = 4; } else if (slotchange >= 3 && slotchange < 5) { slot = 8; } } else if (reward >= 998) { slot = 2; } //Logger.log("Squeal", player.getDisplayName()+" has used a spin. Spins remaining: "+player.squealSpins); player.getPackets().sendConfigByFile(10860, slot); // Squeal Reward player.getPackets().sendGlobalConfig(1781, 0); player.getPackets().sendGlobalConfig(1781, 0); player.getPackets().sendGlobalConfig(1781, Utils.getRandom(13)); player.getPackets().sendConfigByFile(10860, itemWon); player.getPackets().sendGlobalConfig(1790, 1); player.getPackets().sendConfigByFile(10861, itemWon); itemWon = slotchange; } } public static void claimItem(Player player) { int amount = getBox().getAmount(); int id = getBox().getId(); player.isSpining = false; if (id == 995) { player.getMoneyPouch().addMoney(amount, amount, true, true); close(player); } else { player.getBank().addItem(id, amount, true); close(player); player.getPackets().sendGameMessage( ""+amount+" " + getBox().getName() +(amount == 1 ? " " : "s ")+(amount == 1 ? "has" : "have")+" been added to your bank."); } } public static void discardItem(Player player) { player.sm("You discard your prize."); close(player); } public static void sendDelayedLogout(final Player player) { int LOGOUT_ALERT = 1254; int LOGGING_OUT = 1255; [MENTION=19271]supp[/MENTION]ressWarnings("unused") int LOGOUT_REQUEST = 1256; if (player.getAttackedByDelay() + 10000 > Utils.currentTimeMillis()) { player.getInterfaceManager().sendInterface(LOGOUT_ALERT); return; } player.getInterfaceManager().sendInterface(LOGGING_OUT); CoresManager.slowExecutor.schedule(new Runnable() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendOpenURL(Settings.PAYMENTS_LINK); player.forceLogout(); } }, 5, TimeUnit.SECONDS); } public static void sendItems(Player player) { items.clear(); items.add(getRare(1)); // Rare items.add(getCommon(1)); // Common items.add(getSRare()); // Super-Rare items.add(getCommon(2)); // Common items.add(getRare(2)); // Rare items.add(getCommon(3)); // Common items.add(getUnCommon(1)); // UnCommon items.add(getCommon(4)); // Common items.add(getRare(3)); // Rare items.add(getUnCommon(2)); // UnCommon items.add(getCommon(5)); // Com items.add(getUnCommon(3)); // UnCom items.add(getCommon(6)); // Common player.getPackets().sendItems(665, false, items); } public static Item getBox() { Item[] box = items.getItems(); return box[itemWon]; } private static int itemWon; static ItemsContainer<Item> items = new ItemsContainer<Item>(13, true); private static Item[] SUPER_RARE_ITEM = { new Item(995, 200000000), new Item(995, 10000000), new Item(989, 5), new Item(24440, 1), new Item(23716, 1), new Item(23671, 1), new Item(23674) }; private static Item[] RARE_SLOT1 = { new Item(23715), new Item(23679), new Item(23680), new Item(23681), new Item(23682), new Item(23683), new Item(23690) }, RARE_SLOT2 = { new Item(23684), new Item(23685), new Item(23686), new Item(23687), new Item(23688), new Item(23689) }, RARE_SLOT3 = { new Item(23691), new Item(23692), new Item(23693), new Item(23694), new Item(23695), new Item(23696), new Item(23697), new Item(23698), new Item(23699), new Item(23700) }; private static Item[] UNCOMMON_SLOT1 = { new Item(9181), new Item(9183), new Item(857) }, UNCOMMON_SLOT2 = { new Item(1119), new Item(1121), new Item(1123), new Item(1127) }, UNCOMMON_SLOT3 = { new Item(12976), new Item(1133), new Item(23714) }; private static Item[] COMMON_SLOT1 = { new Item(23713), new Item(9177), new Item(9179), new Item(9174) }, COMMON_SLOT2 = { new Item(2, 30), new Item(886, 300) }, COMMON_SLOT3 = { new Item(1515, 15), new Item(444, 20) }, COMMON_SLOT4 = { new Item(563, 40), new Item(843), new Item(1325), new Item(1313), new Item(1361) }, COMMON_SLOT5 = { new Item(1367), new Item(1297), new Item(1327), new Item(1205) }, COMMON_SLOT6 = { new Item(853), new Item(1311), new Item(1365), new Item(1353), new Item(1295), new Item(1325) }; public static Item getSRare() { return SUPER_RARE_ITEM[(int) (Math.random() * SUPER_RARE_ITEM.length)]; } public static Item getRare(int slot) { if (slot == 2) { return RARE_SLOT2[(int) (Math.random() * RARE_SLOT2.length)]; } else if (slot == 3) { return RARE_SLOT3[(int) (Math.random() * RARE_SLOT3.length)]; } else { //System.out.println("" //+ RARE_SLOT1[(int) (Math.random() * RARE_SLOT1.length)]); return RARE_SLOT1[(int) (Math.random() * RARE_SLOT1.length)]; } } public static Item getCommon(int slot) { if (slot == 2) { return COMMON_SLOT1[(int) (Math.random() * COMMON_SLOT1.length)]; } else if (slot == 3) { return COMMON_SLOT2[(int) (Math.random() * COMMON_SLOT2.length)]; } else if (slot == 4) { return COMMON_SLOT3[(int) (Math.random() * COMMON_SLOT3.length)]; } else if (slot == 5) { return COMMON_SLOT4[(int) (Math.random() * COMMON_SLOT4.length)]; } else if (slot == 6) { return COMMON_SLOT5[(int) (Math.random() * COMMON_SLOT5.length)]; } else { return COMMON_SLOT6[(int) (Math.random() * COMMON_SLOT6.length)]; } } public static Item getUnCommon(int slot) { if (slot == 2) { return UNCOMMON_SLOT1[(int) (Math.random() * UNCOMMON_SLOT1.length)]; } else if (slot == 3) { return UNCOMMON_SLOT2[(int) (Math.random() * UNCOMMON_SLOT2.length)]; } else { return UNCOMMON_SLOT3[(int) (Math.random() * UNCOMMON_SLOT3.length)]; } } }[/code] The last problem I have is every weapon says "kick, punch, and block" instead of the proper attacks. All I ask is someone to help please.
  8. 317 PI I have the whole donator shop down, but I have two issues. 1. Donator points aren't saving, and I don't know how to fix this. 2. You can't buy more than one item at a time, which soon becomes extremely tedious. Please Help! Thanks Guys!
  9. [CENTER]Basically, I've done alot of work to my new server and can't wait to release it. One of the problems is the cache, I've zipped up only the contents of the folder and not the folder itself. I've uploaded to both Dropbox and now zippyshare as zippy doesnt have any captchas. I have looked at other versions of cache downloaders and attempted to implement them, yet still getting the same problem. If I have the cache manually downloaded and placed in the correct path the client loads fine, but when it download the cache, it creates the correct folder, and begins to download, gets to around about 66kb and stops. Doesnt execute the Unzipping procedure or anything. I will upload signlink.java and CacheDownloader.java code. Please let me know if you've figured out what's up. Never had cache downloader problems with last projects and I am scared its a big fault, thanks for your time. [B]Signlink.java[/B] [CODE]// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) // Source File Name: signlink.java package sign; import java.applet.Applet; import java.io.*; import java.net.*; public final class signlink implements Runnable { public static void startpriv(InetAddress inetaddress) { threadliveid = (int)(Math.random() * 99999999D); if(active) { try { Thread.sleep(500L); } catch(Exception _ex) { } active = false; } socketreq = 0; threadreq = null; dnsreq = null; savereq = null; urlreq = null; socketip = inetaddress; Thread thread = new Thread(new signlink()); thread.setDaemon(true); thread.start(); while(!active) try { Thread.sleep(50L); } catch(Exception _ex) { } } public void run() { active = true; String s = findcachedir(); uid = getuid(s); try { cache_dat = new RandomAccessFile(s + "main_file_cache.dat", "rw"); for(int j = 0; j < 5; j++) { cache_idx[j] = new RandomAccessFile(s + "main_file_cache.idx" + j, "rw"); } } catch(Exception exception) { exception.printStackTrace(); } for(int i = threadliveid; threadliveid == i;) { if(socketreq != 0) { try { socket = new Socket(socketip, socketreq); } catch(Exception _ex) { socket = null; } socketreq = 0; } else if(threadreq != null) { Thread thread = new Thread(threadreq); thread.setDaemon(true); thread.start(); thread.setPriority(threadreqpri); threadreq = null; } else if(dnsreq != null) { try { dns = InetAddress.getByName(dnsreq).getHostName(); } catch(Exception _ex) { dns = "unknown"; } dnsreq = null; } else if(savereq != null) { if(savebuf != null) try { FileOutputStream fileoutputstream = new FileOutputStream(s + savereq); fileoutputstream.write(savebuf, 0, savelen); fileoutputstream.close(); } catch(Exception _ex) { } if(waveplay) { String wave = s + savereq; waveplay = false; } if(midiplay) { midi = s + savereq; midiplay = false; } savereq = null; } else if(urlreq != null) { try { System.out.println("urlstream"); urlstream = new DataInputStream((new URL(mainapp.getCodeBase(), urlreq)).openStream()); } catch(Exception _ex) { urlstream = null; } urlreq = null; } try { Thread.sleep(50L); } catch(Exception _ex) { } } } public static String findcachedir() { boolean exists = (new File(System.getProperty("user.home") + "/OriginCacheV1/")).exists(); if (exists) { //System.out.println("Directory exists"); return System.getProperty("user.home") + "/OriginCacheV1/"; } else { File f = new File(System.getProperty("user.home") + "/OriginCacheV1/"); f.mkdir(); System.out.println("Directory doesnt exist, making directory"); return System.getProperty("user.home") + "/OriginCacheV1/"; } } public static String secondDir() { File file = new File("c:/OriginCacheV1/"); if (!file.exists()) file.mkdir(); return file.toString(); } public static String findcachedirORIG() { String as[] = { "c:/windows/", "c:/winnt/", "d:/windows/", "d:/winnt/", "e:/windows/", "e:/winnt/", "f:/windows/", "f:/winnt/", "c:/", "~/", "/tmp/", "", "c:/rscache", "/rscache" }; if(storeid < 32 || storeid > 34) storeid = 32; String s = ".file_store_" + storeid; for(int i = 0; i < as.length; i++) try { String s1 = as[i]; if(s1.length() > 0) { File file = new File(s1); if(!file.exists()) continue; } File file1 = new File((new StringBuilder()).append(s1).append(s).toString()); if(file1.exists() || file1.mkdir()) return (new StringBuilder()).append(s1).append(s).append("/").toString(); } catch(Exception _ex) { } return null; } public static int getuid(String s) { return 8; } public static synchronized Socket opensocket(int i) throws IOException { for(socketreq = i; socketreq != 0;) try { Thread.sleep(50L); } catch(Exception _ex) { } if(socket == null) throw new IOException("could not open socket"); else return socket; } public static synchronized DataInputStream openurl(String s) throws IOException { for(urlreq = s; urlreq != null;) try { Thread.sleep(50L); } catch(Exception _ex) { } if(urlstream == null) throw new IOException("could not open: " + s); else return urlstream; } public static synchronized void dnslookup(String s) { dns = s; dnsreq = s; } public static synchronized void startthread(Runnable runnable, int i) { threadreqpri = i; threadreq = runnable; } public static synchronized boolean wavesave(byte abyte0[], int i) { if(i > 0x1e8480) return false; if(savereq != null) { return false; } else { wavepos = (wavepos + 1) % 5; savelen = i; savebuf = abyte0; waveplay = true; // savereq = "sound" + wavepos + ".wav"; return true; } } public static synchronized boolean wavereplay() { if(savereq != null) { return false; } else { savebuf = null; waveplay = true; //savereq = "sound" + wavepos + ".wav"; return true; } } public static synchronized void midisave(byte abyte0[], int i) { if(i > 0x1e8480) return; if(savereq != null) { } else { midipos = (midipos + 1) % 5; savelen = i; savebuf = abyte0; midiplay = true; savereq = "jingle" + midipos + ".mid"; } } public static void reporterror(String s) { System.out.println("Error: " + s); } private signlink() { } public static final int clientversion = 317; public static int uid; public static int storeid = 32; public static RandomAccessFile cache_dat = null; public static final RandomAccessFile[] cache_idx = new RandomAccessFile[5]; public static boolean sunjava; public static final Applet mainapp = null; private static boolean active; private static int threadliveid; private static InetAddress socketip; private static int socketreq; private static Socket socket = null; private static int threadreqpri = 1; private static Runnable threadreq = null; private static String dnsreq = null; public static String dns = null; private static String urlreq = null; private static DataInputStream urlstream = null; private static int savelen; private static String savereq = null; private static byte[] savebuf = null; private static boolean midiplay; private static int midipos; public static String midi = null; public static int midivol; public static int midifade; private static boolean waveplay; private static int wavepos; public static int wavevol; public static boolean reporterror = true; public static String errorname = ""; } [/CODE] [B]CacheDownloader.java[/B] [CODE]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; private final int VERSION = 1; private String cacheLink = "http://www35.zippyshare.com/d/70808410/27898/OriginCacheV1.zip"; private String fileToExtract = getCacheDir() + getArchivedName(); public CacheDownloader(client client) { this.client = client; } private void drawLoadingText(String text) { client.drawLoadingText(35, text); } private void drawLoadingText(int amount, String text) { client.drawLoadingText(amount, 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()) { downloadFile(getCacheLink(), getArchivedName()); unZip(); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); } else { if(!version.exists()) { downloadFile(getCacheLink(), getArchivedName()); unZip(); BufferedWriter versionFile = new BufferedWriter(new FileWriter(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat")); versionFile.close(); } else { return null; } } } catch(Exception e) { } return null; } */ public CacheDownloader downloadCache() { try { File location = new File(getCacheDir()); File version = new File(getCacheDir() + "/cacheVersion" + getCacheVersion() + ".dat"); if(!location.exists()) { client.downloading = true; //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()) { client.downloading = true; //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 + "%"); } 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 { } 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.isDirectory()) { (new File(getCacheDir() + e.getName())).mkdir(); } else { if (e.getName().equals(fileToExtract)) { unzip(zin, fileToExtract); break; } unzip(zin, getCacheDir() + e.getName()); } } zin.close(); } catch(Exception e) { e.printStackTrace(); } } private void unzip(ZipInputStream zin, String s) throws IOException { FileOutputStream out = new FileOutputStream(s); byte [] b = new byte[BUFFER]; int len = 0; while ((len = zin.read(b)) != -1) { out.write(b,0,len); } out.close(); client.downloading = false; } }[/CODE] Im happy to upload other files or teamview with anyone if you think you know what is up, thanks for your time![/CENTER]
  10. Hi there, i had an question about the client open GL option. Momently everytime when someone uses openGL then this happens. [IMG]https://scontent-a-lhr.xx.fbcdn.net/hphotos-xap1/t31.0-8/10669164_518187761659401_9156060716926251880_o.jpg[/IMG] Some spots turn colloured if you rotate the map around. This happens on every place. When you use direct X everything is fine. But still for the people who use openGl is this fixable? This started happening a few days ago.
  11. i added a few commands and the commands compiled fine but i got 100 errors that say something, interface, or enum expected and points to the braces but i have the correct number of braces. Idk how to fix this. my whole commands.java file have the same error. Does anyone know how to fix this?
  12. DirtyBubble

    bow issues

    let's see if anyone can help me here....i have a 317 PI server and spawned the hexhunter bow id # 17295. I want to make that bow a really good bow so i made it like a crystal bow (wont use arrows) and changed the attack speed to make it attack really fast. but i think in doing so, it caused other weapons to attack fast too??? i went into combatassistant.java and went down to c.playerEquipment[c.playerWeapon]){ and added the case 17295 (bow ID) then return 1 because i saw that the dark bow was return 9 and dark bows are fairly slow and the handcannon is 9 so i made it 1 to be really fast but i think somehow it made all the other weapons fast too. and also i noticed that the hexhunter bow trains attack instead of range. how would i go about fixing that?? Please help if you can
  13. loganwolberg

    Npc Issues

    Hello i have a custom npc "Astro Mage" and when i attack it it only has 1 hp so its useless i was wondering if someone could help me out heres the codes i have so far Unpacked bonuses [CODE]8335 - 2000 2000 2000 2000 2000 400 500 500 500 400[/CODE] unpackedcombatdefinitionsList [CODE]8335 - 1000 -1 -1 -1 5 0 10 300 SPECIAL -1 -1 AGRESSIVE[/CODE] Help me <3
  14. chablaa

    Rsps ip issues

    I just started and i cannot find where to put my no-ip into my client.java into for others to hop on my server. just tryin to play with a few friends. any help would be appreciated thanks.
  15. Thorin

    Connection Issues

    So im using Matrix 718 client, and i needed my friend to come on to help me with some things, and so i jarred the client(correctly) but when HE runs it it stays at "Checking for updates - 0%" Now im used to [PI] and having a cache downloader, but with 718 the cache is in the server right? so does it pull the cache from the server if they are on another computer? Or is there someting im doing wrong?
  16. Hello, I am having a very strange issue, I am getting fluctuating ping on my private server, even though I'm connecting via localhost. The ping stays at around 1-2ms, but every few seconds, it will jump up to 400-700, for a second, and then back down. Can anyone help me locate the cause of this problem? Thankyou. I'm using Chronicscape Project v2 Final Release Source and Client.
  17. [B][I][COLOR="#00FF00"][SIZE=6]I am currently Trying to work on a poanizer Project Which I found on moparscape Downloads and I would like for someone to help me Fix some Issues im Currently having With owner ranks ETC Please contact me on skype if you may help me! Thank you[/SIZE][/COLOR][/I][/B] [SIZE=7][COLOR="#FF0000"][B]Skype: Tweetfix[/B][/COLOR][/SIZE]
  18. There is two issues what should be fixed. One is server info. [ATTACH=CONFIG]10386[/ATTACH] And revision, if i use revision 317 it's showing up 377. Also one more thing. Posting pictures on your post, you can post only really small pictures :/ It's hard to take some pictures. [ATTACH=CONFIG]10387[/ATTACH]
  19. Trying to find out what I have done wrong, I have jarred the client with Loader not loader, done everything properly, tried jdk 6 and 7 Tried using Loader.java instead of Loader.class neither work Tried adding cache into client files. Tried basically most of the suggestions on the internet it seems not to be something obviousy YES the jarred file is uploaded to dropbox and the link is inside the client.html file, I have tried many different html clients. if anyone could help me I'd really appreciate it my skype is Sam.Thomas20
  20. Okay so I cannot connect to my server and I have already -portforwarded correctly. -coded the client to my servers no-ip I don't know what else I am missing. please help. skype - Rizen255 contact me anytime or reply on this. I have team viewer as well
  21. i need help jarring a client i tryed multiply times but it still would not work for me. pm me or skype me if u can help me out skype::lildee724 :confused:
  22. Okay so heres the problem im trying to compiler my server but an error comes up saying: [COLOR="#FFD700"]Compiling... javac: file not found: src\sign\*.java Usage: javac <options> <source files> use -help for a list of possible options Press any key to continue . . .[/COLOR] And this is my compiler below: [COLOR="#FFD700"]@echo off [MENTION=11342]Tit[/MENTION]le Compile echo Compiling... "C:\Program Files\Java\jdk1.7.0_51\bin\javac.exe" -d bin src/sign/*.java src/*.java pause exit[/COLOR] Could someone please help! By the way this is a compiler for a 2006 remake source
  23. I decided to try making a RSPS but it seems to be very difficult for a man who lacks technical prowess. This is what I have been getting every time I try to start the Run.bat in the Client folder: [CODE]javac: no source files Usage: javac <options> <source files> use -help for a list of possible options[/CODE] For installation, I followed the RuneLocus guide to the T, but to no avail. I've done several things to try and fix this: - re-installed my Java (JDK + JRE) twice, - edited the Path variable to be directed to C:\Program Files (x86)\Java\jdk1.7.0_51\bin, - edited both Compile.bat files (the one in the main folder, and the second in the src folder) with several different strings of code suggested by the Help thread, [B]but none of these have helped[/B]. I am at my wit's end here as I've been pushing at this for the past two and a half hours reading outdated and misinformed guides and editing files I never even knew existed. So I have a few questions. 1. Mainly, what can I do to solve this issue? 2. What is "javac", and why can't it be found? 3. Is the RuneLocus Starter Pack just too outdated to use in 2014 for a 317? 4. Are there easier ways to go about starting a server, possibly useful tools not mentioned in four-year-old threads? Thanks in advance. BTW, here is what my current (and default) compile.bat looks like: [CODE]@echo off title Client - Compiler javac -d bin -sourcepath src pause [/CODE] Edit: I have read that "javac" is default and should be replaced with: [CODE]"C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe" *.java[/CODE]. However, upon editing both compile.bat files with this, I get this message: [CODE]Error: Could not find or load main class *.java Press any key to continue . . .[/CODE]
  24. Certain client issues, we can discuss privately, and since this is a broad topic which I'm not going to explain on here: Message me on skype! live:nick.odabashan willing to pay PAYPAL, I'll send it as A GIFT meaning that I can't refund- Also, if you're experienced with 718 matrix source, let me know, as I'm looking for someone to fix a problem I can't manage to fix myself.
  25. Hello dear RuneLocus-ians, So - Ive been toying with a few different released servers and clients for RSPS's. And ive basically hit a brick wall with one, and for the love of god (its a saying), cannot fecking fix this issue. Locally, Citellum rsps - Works, perfectly. [ATTACH=CONFIG]10058[/ATTACH] ^ Proof Okay, now - when I stick it on one of my dedicated servers (with all ports unblocked and a static IP), I have changed the IP in loader.jar for the Public IP and the Lobby IP. Also theres a settings file in the server files somewhere which was set to also - So I have changed that, but still it makes so difference. So - Whenever I start the client from my laptop now (or any PC), It hangs on "Gathering Updates", on the console it says "error_game_js5connect" - and it just hangs. Ive tried everything I can think of, also (just remembered) - Yes, The client numbers and details/whatever are the same!!! So, please help :) Thanks - Will