Jump to content

Search the Community

Showing results for tags 'packing'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 24 results

  1. So I have this thing to where I am kind of picky about my interfaces and how they show so that being said I was trying to pack the Configs from several caches into my own and the other way around but every time I try it crashes the client... Not sure if its a client config that needs to be added but there was no issue using the other caches until i packed my item data or any other 742 itemdef in the cache to the other and the config to my own... if anyone has this fixed or knows a way to do it and would like to share with me that would be awesome or I can trade some coding work for it lol.... this is for the 718 cache by the way.... Any help would be awesome and I was trying to make the Quest tab function proerly... I did get it working without adding any additional items or sprites but I do not feel like packing every item back into the cache like I did with my recent one... Thanks.
  2. Does anyone know how to do this? If so I'll be more than grateful! :D Many thanks in advance.
  3. Hello :) I am using the Dementhium 639 source. Using Steve's Sprite Editor, I am able to change the sprites (in my current case, the logo) within the program. I hit pack to cache, and although no message or popup comes up (I'm not sure if it is supposed to or not), when I reopen the program it seems to work, because the image has been replaced with my new one. However, these changes don't show up when I load up the client. :( I've tried everything I can think of, from trying a different cache, to reinstalling the sprite editor, and an uncountable number of system and server restarts. What's happening? Thank you all so much in advance! EDIT: I got the logo to work, I missed one of the sprites for it... But now this problem is happening with the login backgrounds... I checked every single sprite and there are none that aren't replaced.
  4. I really need 2 change some things with combat definitions but i dont have an compiler.
  5. Nick

    Packing Shops

    I'm trying to add a custom shop, I already have the NPCHandler set up, but when I delete "packedshops", and run the server to get the shops packed, I always get this error and I'm not too sure why. [CODE][Launcher] Loading Progress, please wait... [ShopsHandler] Packing shops... Exception in thread "main" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.valueOf(Unknown Source) at com.rs.utils.ShopsHandler.loadUnpackedShops(ShopsHandler.java:54) at com.rs.utils.ShopsHandler.init(ShopsHandler.java:26) at com.rs.Initializer.loadFiles(Initializer.java:57) at com.rs.Launcher.main(Launcher.java:42) Press any key to continue . . .[/CODE]
  6. I cache packed 667 animations and 633 items and now whenever I sign into the server it looks like this [URL="http://gyazo.com/71b1af068575173457724b85d529b799"]http://gyazo.com/71b1af068575173457724b85d529b799[/URL] It doesn't throw an error in the CMD so I don't know where to begin.
  7. dustey

    Cache Packing help

    Alright I don't understand why my models are not packing Heres what I have in my startup method [CODE]//preloadModels(); Models();[/CODE] heres my getmodel method [CODE]public byte[] getModel(int Index) { try { File Model = new File("./Raw/"+Index+".gz"); byte[] aByte = new byte[(int)Model.length()]; FileInputStream fis = new FileInputStream(Model); fis.read(aByte); pushMessage("aByte = ["+aByte+"]!", 0, ""); fis.close(); return aByte; }[/CODE] I haave all the models gzipped and in the cache in a folder name "Raw" can anyone help
  8. i need to pack "unpackedspawnslist" into packed spawns. cananyone tell me how to do this?
  9. Would anyone know how one would pack render animations? I have dumped every single one and still have yet to find a way to pack them back in? I would like some help lol.
  10. I just wrote a new method to pack NPC drops. But the problem is that I keep getting this one damn error! :p The error is in NPCDrops.java. ERROR: [CODE]Compiling BronzeGod 724, please wait... src\com\rs\utils\NPCDrops.java:20: error: cannot find symbol loadPackedDrops(); ^ symbol: method loadPackedDrops() location: class NPCDrops 1 error [/CODE] NPCDrops.java [CODE]package com.rs.utils; import java.io.RandomAccessFile; import java.io.File; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.HashMap; import com.rs.game.npc.Drop; public class NPCDrops { private final static String PACKED_PATH = "data/npcs/packedDrops.d"; private static final String UNPACKED_PATH = "data/npcs/unpackedDrops.txt"; private static HashMap<Integer, Drop[]> npcDrops; public static void init() { if (new File(PACKED_PATH).exists()) loadPackedDrops(); else loadUnpackedDrops(); } public static Drop[] getDrops(int npcId) { return npcDrops.get(npcId); } private static void loadUnpackedDrops() { Logger.log("NPCDrops", "Packing drops..."); try { RandomAccessFile in = new RandomAccessFile(PACKED_PATH, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); int dropSize = buffer.getShort() & 0xffff; npcDrops = new HashMap<Integer, Drop[]>(dropSize); for (int i = 0; i < dropSize; i++) { int npcId = buffer.getShort() & 0xffff; Drop[] drops = new Drop[buffer.getShort() & 0xffff]; for (int d = 0; d < drops.length; d++) { if (buffer.get() == 0) drops[d] = new Drop(buffer.getShort() & 0xffff, buffer.getDouble(), buffer.getInt(), buffer.getInt(), false); else drops[d] = new Drop(0, 0, 0, 0, true); } npcDrops.put(npcId, drops); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public HashMap<Integer, Drop[]> getDropMap() { return npcDrops; } } [/CODE] I think I'm missing an import. Not sure, though. If I am, could you direct me towards what it is? Thanks :D
  11. divine u

    Packing 737+ cache

    evertime i pack any cache 737+ into my 718/736 it never works. im using frosty's packer and i tried survivor's packer too and they both dont work. the cache fetch but on login it crashes. is there any code i have to add/change to the client/source? if so can someone share it with me?
  12. can someone please help me with this?
  13. Hey guys I need help. In this thread [url]http://www.runelocus.com/forums/showthread.php?67540-Unpacked-NPCDrops-Matrix[/url] it says you remove the packedrops file and it'll pack the new one once you run the server. I did that and it simply said it couldn't find the drops (so it didn't pack them) Can anyone help me out here :(
  14. Lore

    667 Packing Drops

    I need help with NPC drops, they can't be packed or unpacked. I would like to edit them, I've tried quite a bit but I'm thinking there is more than just changing some file names. If you can help me pack the drops, or edit the drops in some other way that would be great. NPCDrops.java [CODE]package com.rs.utils; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.HashMap; import com.rs.game.item.Item; import com.rs.game.player.Player; import com.rs.game.player.content.Shop; public class ShopsHandler { private static final HashMap<Integer, Shop> handledShops = new HashMap<Integer, Shop>(); private static final String PACKED_PATH = "data/items/packedShops.s"; private static final String UNPACKED_PATH = "data/items/unpackedShops.txt"; public static void init() { if (new File(PACKED_PATH).exists()) loadPackedShops(); else loadUnpackedShops(); } private static void loadUnpackedShops() { Logger.log("ShopsHandler", "Packing shops..."); try { BufferedReader in = new BufferedReader( new FileReader(UNPACKED_PATH)); DataOutputStream out = new DataOutputStream(new FileOutputStream( PACKED_PATH)); while (true) { String line = in.readLine(); if (line == null) break; if (line.startsWith("//")) continue; String[] splitedLine = line.split(" - ", 3); if (splitedLine.length != 3) throw new RuntimeException("Invalid list for shop line: " + line); String[] splitedInform = splitedLine[0].split(" ", 3); if (splitedInform.length != 3) throw new RuntimeException("Invalid list for shop line: " + line); String[] splitedItems = splitedLine[2].split(" "); int key = Integer.valueOf(splitedInform[0]); int money = Integer.valueOf(splitedInform[1]); boolean generalStore = Boolean.valueOf(splitedInform[2]); Item[] items = new Item[splitedItems.length / 2]; int count = 0; for (int i = 0; i < items.length; i++) items[i] = new Item(Integer.valueOf(splitedItems[count++]), Integer.valueOf(splitedItems[count++])); out.writeInt(key); writeAlexString(out, splitedLine[1]); out.writeShort(money); out.writeBoolean(generalStore); out.writeByte(items.length); for (Item item : items) { out.writeShort(item.getId()); out.writeInt(item.getAmount()); } addShop(key, new Shop(splitedLine[1], money, items, generalStore)); } in.close(); out.close(); } catch (Throwable e) { Logger.handle(e); } } private static void loadPackedShops() { try { RandomAccessFile in = new RandomAccessFile(PACKED_PATH, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); while (buffer.hasRemaining()) { int key = buffer.getInt(); String name = readAlexString(buffer); int money = buffer.getShort() & 0xffff; boolean generalStore = buffer.get() == 1; Item[] items = new Item[buffer.get() & 0xff]; for (int i = 0; i < items.length; i++) items[i] = new Item(buffer.getShort() & 0xffff, buffer.getInt()); addShop(key, new Shop(name, money, items, generalStore)); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public static String readAlexString(ByteBuffer buffer) { int count = buffer.get() & 0xfff; byte[] bytes = new byte[count]; buffer.get(bytes, 0, count); return new String(bytes); } public static void writeAlexString(DataOutputStream out, String string) throws IOException { byte[] bytes = string.getBytes(); out.writeByte(bytes.length); out.write(bytes); } public static void restoreShops() { for (Shop shop : handledShops.values()) shop.restoreItems(); } public static boolean openShop(Player player, int key) { Shop shop = getShop(key); if (shop == null) return false; shop.addPlayer(player); return true; } public static Shop getShop(int key) { return handledShops.get(key); } public static void addShop(int key, Shop shop) { handledShops.put(key, shop); } } [/CODE] Here's NPCDropLoader.java not sure if there's anything wrong with it. (There's 2 of them, I think identical, not sure though.) [CODE] public NPCDropLoader() { try { dropFile = new RandomAccessFile("data/npcs/packedDrops.s", "r"); } catch (FileNotFoundException e) { Logger.log("NPCDropLoader","No drop file!"); } } public void load() { Logger.log("NPCDropLoader","Loading drops..."); try { FileChannel channel = dropFile.getChannel(); if (channel.size() > 0) { ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); ArrayList<Drop> drops = null; int dropSize = buffer.getShort(); for (int i = 0; i < dropSize; i++) { int npcId = buffer.getShort(); short dropAmt = buffer.getShort(); drops = new ArrayList<Drop>(dropAmt); for (int x = 0; x < dropAmt; x++) { drops.add(new Drop(buffer.getShort(), buffer.getDouble(), buffer.getInt())); } dropMap.put(npcId, drops); } } } catch (IOException e) { e.printStackTrace(); } Logger.log("NPCDropLoader","Loaded " + dropMap.size() + " drops"); }[/CODE] And finally the error. This goes away if I put back the original drops.bin, but I can't edit the drops in that so I don't know what to do about that. [CODE] [NPCDropLoader] No drop file! [NPCDropLoader] Loading drops... Exception in thread "main" java.lang.NullPointerException at com.rs.game.npc.NPCDropLoader.load(NPCDropLoader.java:35) at com.rs.game.World.init(World.java:87) at com.rs.Launcher.main(Launcher.java:111) [/CODE] Any help is appreciated.
  15. I was using mgi's cache packer, and when I pack any index it messes up my whole chatbox. Only in a weird way, I can't talk, It'll send something completely different from what I said. Mostly some random spam, or the word Cabbage! I don't understand what I did wrong. All I did was take a 667/711 cache that worked perfectly pack it to the new rs cache and add in the opcodes, and this happens? I'm so confused and I don't know what else to do. Heres a picture for further explaination. [ATTACH=CONFIG]5670[/ATTACH]
  16. I was wondering if someone could help me out on this... This is the last Piece of data I need as in ive gotten all the other ones fixed/working right for NPCDefinitions, ItemBonuses, Shops, and Examines... Im just looking either for a working NPCDrops.java or NPCDropPacker.java or maybe even a GUI... I will not release anything given to me and IF there came a time i did your name would be forever engraved into my servers credits. Thanks in advance!! Also in return if you need something done on your server or trade my source for NPCDrop packing (ive got loads of stuff added in nobody else would ever think of lol) So please help out a fellow rspscoder!
  17. axter

    Cache packing

    [CODE]Cache to which new stuff should be packed to?PackTo Cache from which new stuff should be packed from?PackFrom Oops! An error occured: java.lang.RuntimeException: Incompatible caches. at mgi.tools.jagcached.applications.CachePacker.pack(CachePacker.java:11 1) at mgi.tools.jagcached.applications.CachePacker.command(CachePacker.java :101) at mgi.tools.jagcached.applications.CachePacker.main(CachePacker.java:33 ) Press any key to continue . . .[/CODE] [CODE]true true true true true false false false false true true true Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: error:unexpected at mgi.GUI.pack(GUI.java:461) at mgi.GUI.jButton1ActionPerformed(GUI.java:297) at mgi.GUI.access$200(GUI.java:18) at mgi.GUI$3.actionPerformed(GUI.java:97) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.RuntimeException: Incompatible caches. at mgi.GUI.pack(GUI.java:393) ... 39 more [/CODE] i dunno how to fix this..
  18. Hello i need help packing drops. Can anyone send me code for a packer or teach me how to pack drops? much appreciated. - jax
  19. -nvm i made my own packer after about an hour of looking through the packer that packs npcspawns :)
  20. Willing to pay, will discuss pricing on skype,[U] need the method used to pack NPCs[/U]. Add me on skype: zroflak Specify that you're helping with the npc method when u add me
  21. I have the leeched version of matrix and I have no clue how to repack Npcdrops or Change item bonuses. If anyone knows how to fix please tell me thanks :D
  22. I need this because custom npc's i cant attack the npcs. also, it always say 0 npcs found on cache. Im wondering what do i put in unpackedSpawnsList.txt This would be appreciated. +1 cookie for u for right answer :P
  23. I need help packing npcs on lethium source.
  24. Hey i need to know how to pack and unpack files..can anyone give me a little tut on how to do this please/thankyou you can pm me if you dont want others to know this :P like in my npc folder theres packedDrops.d and the extention is .d but idk of anything on how to unpack and re pack them so i can edit them. i've tried 7zip, win.rar and HjSplit but there must be another way please help.
×