Jump to content

Search the Community

Showing results for tags 'loader'.



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 16 results

  1. :confused:Hey Guys/Girls i really need help i recently downloaded a rsps but i am unable to create a client loader i have downloaded Jar maker but still i am unable to create a loader. I have followed steps online on how to make a loader which i have tried many steps ect. if there someone who can team viewer me or help me in anyway to get this up and running any help would be really great THANKS!!
  2. Hi. I'm trying to open a client and it begins to load then stops and says "Error.. Contact Staff" What do I do? Here's the string; } } catch (Exception e) { e.printStackTrace(); } if(abyte0 != null) { NamedArchive archive = new NamedArchive(abyte0, s); return archive; } while (true) { drawLoadingText(0, "Error loading... Contact Staff!"); try { Thread.sleep(1000); } catch (Exception e) { e.printStackTrace(); } } }
  3. I'm only posting here because i do not have access of a soulsplit forum account. Every time I try to get on soulsplit I get this "The world list retrived from url is null" and "the data requested by the loader is null" I've tried re downloading and re installing java but nothing works
  4. [B]Code:[/B] [CODE]package com.runescape.world.entity.beast; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.util.List; import org.json.JSONArray; import org.json.JSONObject; public class BeastDefinition { public static final int BEAST_COUNT = 15055; private static BeastDefinition[] definitions; private final int id; private final String name; private final String description; private final String weakness; private final String slayercat; private final int deathAnimation; private final int attackAnimation; private final int size; private final int lifepoints; private final int level; private final int attack; private final int magic; private final int defence; private final int ranged; private final boolean poisonous; private final boolean attackable; private final boolean aggressive; private final boolean members; private final String[] areas; public BeastDefinition(int id, String name, String description, String weakness, String slayercat, int deathAnimation, int attackAnimation, int size, int lifepoints, int level, int attack, int magic, int defence, int ranged, boolean poisonous, boolean attackable, boolean aggressive, boolean members, String[] areas) { this.id = id; this.name = name; this.description = description; this.weakness = weakness; this.slayercat = slayercat; this.deathAnimation = deathAnimation; this.attackAnimation = attackAnimation; this.size = size; this.lifepoints = lifepoints; this.level = level; this.attack = attack; this.magic = magic; this.defence = defence; this.ranged = ranged; this.poisonous = poisonous; this.attackable = attackable; this.aggressive = aggressive; this.members = members; this.areas = areas; } public static BeastDefinition getDefinition(int id) { return BeastDefinition.definitions[id]; } public static void loadDefinition(Path path) throws Exception { List<String> lines = Files.readAllLines(path, Charset.forName("UTF-8")); BeastDefinition.definitions = new BeastDefinition[BeastDefinition.BEAST_COUNT]; for (String line : lines) { JSONObject rootObject = new JSONObject(line); int id = rootObject.getInt("id"); System.out.println(id); String name = rootObject.getString("name"); String description = rootObject.getString("description"); String weakness = null; if (line.contains("weakness" + '"')) { weakness = rootObject.getString("weakness"); } String slayercat = null; if (line.contains("slayercat")) { slayercat = rootObject.getString("slayercat"); } int deathAnimation = -1; int attackAnimation = -1; if (line.contains("animations")) { JSONObject animations = rootObject.getJSONObject("animations"); if (!animations.isNull("death")) { deathAnimation = animations.getInt("death"); } if (!animations.isNull("attack")) { attackAnimation = animations.getInt("attack"); } } int size = rootObject.getInt("size"); int lifepoints = -1; int level = -1; int attack = -1; int magic = -1; int defence = -1; int ranged = -1; if (line.contains("lifepoints")) { lifepoints = rootObject.getInt("lifepoints"); level = rootObject.getInt("level"); attack = rootObject.getInt("attack"); magic = rootObject.getInt("magic"); defence = rootObject.getInt("defence"); ranged = rootObject.getInt("ranged"); } boolean poisonous = rootObject.getBoolean("poisonous"); boolean attackable = rootObject.getBoolean("attackable"); boolean aggressive = rootObject.getBoolean("aggressive"); boolean members = rootObject.getBoolean("members"); String[] areas = null; JSONArray areasJSONArray = rootObject.getJSONArray("areas"); if (!areasJSONArray.isNull(0)) { areas = new String[areasJSONArray.length()]; for (int i = 0; i < areasJSONArray.length(); i++) { areas[i] = areasJSONArray.getString(i); } } BeastDefinition.definitions[id] = new BeastDefinition(id, name, description, weakness, slayercat, deathAnimation, attackAnimation, size, lifepoints, level, attack, magic, defence, ranged, poisonous, attackable, aggressive, members, areas); } } public int getId() { return id; } public String getName() { return name; } public String getDescription() { return description; } public String getWeakness() { return weakness; } public String getSlayercat() { return slayercat; } public int getDeathAnimation() { return deathAnimation; } public int getAttackAnimation() { return attackAnimation; } public int getSize() { return size; } public int getLifepoints() { return lifepoints; } public int getLevel() { return level; } public int getAttack() { return attack; } public int getMagic() { return magic; } public int getDefence() { return defence; } public int getRanged() { return ranged; } public boolean isPoisonous() { return poisonous; } public boolean isAttackable() { return attackable; } public boolean isAggressive() { return aggressive; } public boolean isMembers() { return members; } public String[] getAreas() { return areas; } @Override public String toString() { return id + ":" + name + ":" + description + ":" + weakness + ":" + slayercat + ":" + deathAnimation + ":" + attackAnimation + ":" + size + ":" + lifepoints + ":" + level + ":" + attack + ":" + magic + ":" + defence + ":" + ranged + ":" + poisonous + ":" + attackable + ":" + aggressive + ":" + members + ":" + areas; } } [/CODE] [B]Examples usage:[/B] [CODE]BeastDefinition.loadDefinition(Paths.get(BEAST_DEFINITION_PATH));[/CODE] [B]Beast definitions:[/B] [URL="http://www.mediafire.com/view/?b4nj3ygdw574bsn"]beasts.txt[/URL]
  5. it's all packaged and all the class names are refactored. rsa and the update server are enabled. it contains the loader. [B]Media:[/B] [IMG]http://i.imgur.com/lNZvvNo.png[/IMG] [B]Download:[/B] [url=http://www.mediafire.com/?jrx6chm3wff90i5]refactored_331.zip[/url]
  6. I haven't touched java in almost a year now, and I kinda need/want a loader for the 2k7 rs server. I tried to modify my old loader that I found somewhere, but without any luck. What I am asking for is: Can you help me or provide me some code to make a simple loader? All I want is a little JFrame that loads the game. I can add some tools to it later if I want. I already have some ideas to add an autoclicker and maybe some mouse moving bot alike thing, just for simple stuff. And then, of course release it. Thanks in advance.
  7. pepsiplaya

    Custom Loader

    Well i'm trying to run a 677/728 but theres no loader that supports it so i'm wondering how i can load a 677/728 source?
  8. starting... [Launcher] Initiating Cache... Exception in thread "main" java.lang.NoClassDefFoundError: com/alex/store/Store at com.rs.cache.Cache.init(Cache.java:19) at com.rs.Launcher.main(Launcher.java:74) Caused by: java.lang.ClassNotFoundException: com.alex.store.Store at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 2 more Press any key to continue . . .
  9. [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.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.HashMap; import com.rs.cache.loaders.ItemDefinitions; /** * Handles custom prices * @author Displee */ public final class PriceHandler { private static String UNPACKED_PATH = "data/items/prices.txt"; private static final String PACKED_PATH = "data/items/prices.s"; private static final HashMap<Integer, Integer> handledPrices = new HashMap<Integer, Integer>(); public static void init() { if (new File(PACKED_PATH).exists()) { loadPackedPrices(); } else { loadUnpackedPrices(); } } private static void loadUnpackedPrices() { Logger.log("PriceHandler", "Loading prices 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(" ", 2); int itemId = Integer.valueOf(splitedLine[0]); int price = Integer.valueOf(splitedLine[1]); out.writeShort(itemId); out.writeShort(price); ItemDefinitions itemDef = ItemDefinitions.getItemDefinitions(itemId); addPrice(itemId, itemDef.value = price); } in.close(); out.close(); } catch (Throwable e) { Logger.handle(e); } } private static void loadPackedPrices() { 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 itemId = buffer.getShort() & 0xffff; int price = buffer.getShort() & 0xffff; ItemDefinitions itemDef = ItemDefinitions.getItemDefinitions(itemId); addPrice(itemId, itemDef.value = price); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public static void addPrice(int itemId, int price) { handledPrices.put(itemId, price); } } [/code] Format: [code] itemId price [/code]
  10. Loads PNG files into a texture for OpenGL. Still working on other formats, not sure why they don't work but I'll figure it out! [CODE] package org.sm.pyshos.opengl.textures; import java.awt.image.BufferedImage; import java.awt.image.DataBufferByte; import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import javax.imageio.ImageIO; import org.lwjgl.BufferUtils; import org.lwjgl.opengl.GL11; public class Texture { public int texId, width, height; public boolean alpha; public Texture(int id) { try { loadOpenGLTexture(TextureUtils.convertBImage(loadImage(id))); } catch (IOException e) { e.printStackTrace(); } } /** * for fonts n skybox */ public Texture(BufferedImage image) { loadOpenGLTexture(TextureUtils.convertBImage(image)); } /** * Load a texture(bufferedimage form) and convert it into OpenGL format. * @param id The texture ID */ private void loadOpenGLTexture(BufferedImage image) { texId = TextureUtils.createTextureId(); width = image.getWidth(); height = image.getHeight(); alpha = image.getColorModel().hasAlpha(); //opengl call to bind this texture GL11.glBindTexture(GL11.GL_TEXTURE_2D, texId); //put the data into a buffer... byte[] imageData = ((DataBufferByte) image.getData().getDataBuffer()).getData(); ByteBuffer buffer = BufferUtils.createByteBuffer(imageData.length); buffer.put(imageData); buffer.rewind(); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR); GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, image.getColorModel().hasAlpha() ? GL11.GL_RGBA : GL11.GL_RGB, width, height, 0, image.getColorModel().hasAlpha() ? GL11.GL_RGBA : GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, buffer); //unbind any textures GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); } /** * Load a bufferedimage by id * @param id image id * @return the buffered image * @throws IOException if an exception occurs. Common one would be file not found */ private BufferedImage loadImage(int id) throws IOException { return ImageIO.read(new File("./sprites/sprite"+id+".png")); } } [/CODE] dont ask me what the alpha field is for... [CODE] package org.sm.pyshos.opengl.textures; import java.awt.Color; import java.awt.Graphics; import java.awt.color.ColorSpace; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.ComponentColorModel; import java.awt.image.DataBuffer; import java.awt.image.Raster; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; import java.util.Hashtable; import org.lwjgl.opengl.GL11; public class TextureUtils { public static final ColorModel REG_COLOR_MODEL = new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_sRGB), new int[] {8,8,8,0}, false, false, ComponentColorModel.OPAQUE, DataBuffer.TYPE_BYTE); public static final ColorModel ALPHA_COLOR_MODEL = new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_sRGB), new int[] {8,8,8,8}, true, false, ComponentColorModel.TRANSLUCENT, DataBuffer.TYPE_BYTE); private static final Color BLANK_COLOR = new Color(0f,0f,0f,0f); /** * Convert a buffered image into an OpenGL texture type format. * @param image The buffered image * @return the new image */ public static BufferedImage convertBImage(BufferedImage image) { int texWidth = image.getWidth(); int texHeight = image.getHeight(); /* while (texWidth < image.getWidth()) { texWidth *= 2; } while (texHeight < image.getHeight()) { texHeight *= 2; }*/ BufferedImage temp = new BufferedImage(image.getColorModel().hasAlpha() ? ALPHA_COLOR_MODEL : REG_COLOR_MODEL, Raster.createInterleavedRaster(DataBuffer.TYPE_BYTE, texWidth, texHeight, image.getColorModel().hasAlpha() ? 4 : 3, null), false, new Hashtable()); Graphics tempGraphs = temp.getGraphics(); tempGraphs.setColor(BLANK_COLOR); tempGraphs.fillRect(0, 0, texWidth, texHeight); tempGraphs.drawImage(image, 0, texHeight, texWidth, 0, 0, 0, texWidth, texHeight ,null); return temp; } /** * Create an id for a texture * @return the texture id */ public static int createTextureId() { //todo BufferUtils.createByteBuffer() cause im an idiot and did this. ByteBuffer buffer = ByteBuffer.allocateDirect(4); buffer.order(ByteOrder.nativeOrder()); IntBuffer iBuffer = buffer.asIntBuffer(); GL11.glGenTextures(iBuffer); return iBuffer.get(0); } } [/CODE] If someone knows OpenGL here and sees a problem with this let me know please and I will fix and at least learn something in the process.
  11. I got my 711 up but im trying to make a webclient but i dont know where to find a loader
  12. This is a loader for Java Class Files(reads the format) [CODE] package org.sm.bc.classes; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import org.sm.bc.classes.attributes.Attribute; import org.sm.bc.classes.attributes.AttributesTable; import org.sm.bc.classes.attributes.impl.CodeAttribute; import org.sm.bc.classes.attributes.impl.ConstantAttribute; import org.sm.bc.classes.attributes.impl.DeprecatedAttribute; import org.sm.bc.classes.attributes.impl.ExceptionsAttribute; import org.sm.bc.classes.attributes.impl.InnerClassAttribute; import org.sm.bc.classes.attributes.impl.LineNumberTableAttribute; import org.sm.bc.classes.attributes.impl.LocalVariableTableAttribute; import org.sm.bc.classes.attributes.impl.SignatureAttribute; import org.sm.bc.classes.attributes.impl.SourceValueAttribute; import org.sm.bc.classes.attributes.impl.UnknownAttribute; import org.sm.bc.classes.attributes.impl.InnerClassAttribute.InnerClassInfo; import org.sm.bc.classes.attributes.impl.LineNumberTableAttribute.LineNumberEntry; import org.sm.bc.classes.attributes.impl.LocalVariableTableAttribute.LocalVariableEntry; import org.sm.bc.classes.constantpool.ConstantPoolEntry; import org.sm.bc.classes.constantpool.ConstantPool; import org.sm.bc.classes.exceptions.ExceptionTable; import org.sm.bc.classes.exceptions.Exception; import org.sm.bc.field.Field; import org.sm.bc.method.Method; import org.sm.bc.utils.ClassException; import org.sm.bc.utils.BCUtils; public class ClassLoader { public ClassFile loadClass(String name) throws IOException, ClassException { DataInputStream dataStream = new DataInputStream(getAndCheckStream(name)); int magic = dataStream.readInt(); if (magic != BCUtils.CLASS_MAGIC_ID) { throw new ClassException("Invalid MAGIC ID!"); } int minorVersion = dataStream.readShort(); int majorVersion = dataStream.readShort(); int constantPoolAmount = dataStream.readShort(); ConstantPool constPool = readConstantPool(constantPoolAmount, dataStream); int accessFlags = dataStream.readShort(); int thisClass = dataStream.readShort(); int superClass = dataStream.readShort(); short[] interfaceIdxs = new short[dataStream.readShort()]; for (int i = 0; i < interfaceIdxs.length; i++) interfaceIdxs[i] = dataStream.readShort(); Field[] fields = readFields(dataStream.readShort(), constPool, dataStream); Method[] methods = readMethods(dataStream.readShort(), constPool, dataStream); AttributesTable attributes = readAttributeTable(dataStream.readShort(), constPool, dataStream); return new ClassFile(getClassName(name), minorVersion, majorVersion, constPool, accessFlags, thisClass, superClass, interfaceIdxs, fields, methods, attributes); } private ConstantPool readConstantPool(int constantPoolAmount, DataInputStream dataStream) throws IOException { ConstantPool constantPool = new ConstantPool(constantPoolAmount); for (int i = 1; i < constantPoolAmount; i++) { //?????? ConstantPoolEntry entry = null; byte tag = dataStream.readByte(); if (tag != 1) { int[] data = new int[ConstantPool.TYPE_LENGTHS[tag]]; switch (tag) { case 7: entry = new ConstantPoolEntry(tag, dataStream.readShort()); break; case 9: case 10: case 11: case 12: data[0] = dataStream.readShort(); data[1] = dataStream.readShort(); entry = new ConstantPoolEntry(tag, data); break; case 8: data[0] = dataStream.readShort(); entry = new ConstantPoolEntry(tag, data); break; case 3: data[0] = dataStream.readInt(); entry = new ConstantPoolEntry(tag, data); break; case 4: entry = new ConstantPoolEntry(tag, dataStream.readFloat()); break; case 5: entry = new ConstantPoolEntry(tag, dataStream.readLong()); break; case 6: entry = new ConstantPoolEntry(tag, dataStream.readDouble()); break; } } else { //utf constants require special code int length = dataStream.readShort(); byte[] utfData = new byte[length]; dataStream.read(utfData); String decoded = new String(utfData, "UTF-8"); entry = new ConstantPoolEntry(tag, decoded); } if (entry != null) { constantPool.setEntry(i, entry); if (tag == 5 || tag == 6) constantPool.setEntry(i++, entry); //take up two slots } } return constantPool; } private Method[] readMethods(short methodCount, ConstantPool constPool, DataInputStream dataStream) throws IOException { Method[] methods = new Method[methodCount]; for (int i = 0; i < methodCount; i++) { short accessFlags = dataStream.readShort(); short nameIndex = dataStream.readShort(); short descriptorIndex = dataStream.readShort(); short attributesCount = dataStream.readShort(); methods[i] = new Method(readAttributeTable(attributesCount, constPool, dataStream), accessFlags, nameIndex, descriptorIndex); } return methods; } private Field[] readFields(short length, ConstantPool constPool, DataInputStream dataStream) throws IOException { Field[] fields = new Field[length]; for (int i = 0; i < length; i++) { short accessFlags = dataStream.readShort(); short nameIndex = dataStream.readShort(); short descriptorIndex = dataStream.readShort(); short attributesCount = dataStream.readShort(); fields[i] = new Field(readAttributeTable(attributesCount, constPool, dataStream), accessFlags, nameIndex, descriptorIndex); } return fields; } private AttributesTable readAttributeTable(int attributesCount, ConstantPool constPool, DataInputStream dataStream) throws IOException { AttributesTable table = new AttributesTable(attributesCount); for (int i = 0; i < attributesCount; i++) { Attribute attribute = null; short nameIndex = dataStream.readShort(); int length = dataStream.readInt(); String attributeType = constPool.getEntry(nameIndex).getStringValue(); if (attributeType.equals("ConstantValue")) { short constantValueIndex = dataStream.readShort(); attribute = new ConstantAttribute(attributeType, nameIndex, length, constantValueIndex); } else if (attributeType.equals("Code")) { short maxStack = dataStream.readShort(); short maxLocals = dataStream.readShort(); int codeLength = dataStream.readInt(); byte[] opcodes = new byte[codeLength]; dataStream.read(opcodes); short exceptionTableLength = dataStream.readShort(); ExceptionTable exceptionTable = readExceptionTable(exceptionTableLength, dataStream); AttributesTable attribs = readAttributeTable(dataStream.readShort(), constPool, dataStream); attribute = new CodeAttribute(attributeType, nameIndex, length, maxStack, maxLocals, opcodes, exceptionTable, attribs); } else if (attributeType.equals("InnerClasses")) { short amountOfClasses = dataStream.readShort(); attribute = new InnerClassAttribute(attributeType, nameIndex, length, amountOfClasses); for (int l = 0; l < amountOfClasses; l++) { short innerClassInfoIndex = dataStream.readShort(); short outerClassInfoIndex = dataStream.readShort(); short innerNameIndex = dataStream.readShort(); short innerClassAccessFlags = dataStream.readShort(); ((InnerClassAttribute) attribute).setInnerClassInfo(l, new InnerClassInfo(innerClassInfoIndex, outerClassInfoIndex, innerNameIndex, innerClassAccessFlags)); } } else if (attributeType.equals("Exceptions")) { short amtOfExceptions = dataStream.readShort(); attribute = new ExceptionsAttribute(attributeType, nameIndex, length, amtOfExceptions); for (int l = 0; l < amtOfExceptions; l++) { ((ExceptionsAttribute) attribute).setExceptionIndex(l, dataStream.readShort()); } } else if (attributeType.equals("SourceFile")) { short sourceValueIndex = dataStream.readShort(); attribute = new SourceValueAttribute(attributeType, nameIndex, length, sourceValueIndex); } else if (attributeType.equals("LineNumberTable")) { short lineTableLength = dataStream.readShort(); attribute = new LineNumberTableAttribute(attributeType, nameIndex, length, lineTableLength); for (int l = 0; l < lineTableLength; l++) { ((LineNumberTableAttribute) attribute).setEntry(l, new LineNumberEntry(dataStream.readShort(), dataStream.readShort())); } } else if (attributeType.equals("LocalVariableTable")) { short localVarTableLength = dataStream.readShort(); attribute = new LocalVariableTableAttribute(attributeType, nameIndex, length, localVarTableLength); for (int l = 0; l < localVarTableLength; l++) { ((LocalVariableTableAttribute) attribute).setEntry(l, new LocalVariableEntry(dataStream.readShort(), dataStream.readShort(), dataStream.readShort(), dataStream.readShort(), dataStream.readShort())); } } else if (attributeType.equals("Deprecated")) { attribute = new DeprecatedAttribute(attributeType, nameIndex, length); } else if (attributeType.equals("Signature")) { attribute = new SignatureAttribute(attributeType, nameIndex, length, dataStream.readShort()); } else { //synthetic attribute would fall into this category(kind of) dataStream.skip(length); attribute = new UnknownAttribute(attributeType, nameIndex, length); } table.setAttribute(i, attribute); } return table; } private ExceptionTable readExceptionTable(short exceptionTableLength, DataInputStream dataStream) throws IOException { ExceptionTable eTable = new ExceptionTable(exceptionTableLength); for (int i = 0; i < exceptionTableLength; i++) { short startCodePoint = dataStream.readShort(); short endCodePoint = dataStream.readShort(); short handlerPoint = dataStream.readShort(); short catchType = dataStream.readShort(); eTable.setException(i, new Exception(startCodePoint, endCodePoint, handlerPoint, catchType)); } return eTable; } private InputStream getAndCheckStream(String name) throws FileNotFoundException { return new FileInputStream(name); } private String getClassName(String name) { return name.substring(name.lastIndexOf("/") + 1); } } [/CODE] I'm too lazy to upload the rest of the package with all the other classes, but you really dont need them as they just hold the values at this point and don't really do anything else. I need to redo the ConstantPoolEntry class I don't know what I was thinking when I did that. Learned a lot doing this though :p I did make a class viewer sort of thing but idk where i put it rofl, it would just show like methods in a class and fields in a class along with the constant pool.
  13. Does anyone have a client to where it only loads runescape and just that? Like no ads or anything, just the client, because my computer is complete shit and runs slow with the runescape.msi from Jagex.
  14. my friend is using (x86) and i have no problems loading the client but i tried making it work for him and he gets cannot find mainclass loader. im using Lethium 667/681 this is the code [CODE]@echo off title lethium 667 echo Running... "C:/Program Files (x86)/Java/jre6/bin/java.exe" Loader pause[/CODE] i have no intention to leech/advertise my server its just a little project for me and him to mess around on :/
  15. I was requested by Emily to post this YouTube video down loader she made here. [code]package org.arsenal.tools.manager; import javax.swing.JFrame; import javax.swing.JDesktopPane; import javax.swing.JOptionPane; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import java.awt.SystemColor; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLDecoder; import java.util.regex.Pattern; import javax.swing.JTextField; import javax.swing.JLabel; import javax.swing.JProgressBar; /** * Created under the @see Arsenal Software Licensing * Downloads Youtube Videos into .mp4 formatting * @author Arsenal Development Team * */ public class YoutubeDownloaderApp extends JFrame { private JTextField videoId; private JTextField convertField; private JTextField genVideoId; private JLabel videoTitle; private JProgressBar progressBar; private String videoLink = ""; public YoutubeDownloaderApp() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } setTitle("Youtube Downloader"); setSize(434, 413); setResizable(false); getContentPane().setLayout(null); JDesktopPane desktopPane = new JDesktopPane(); desktopPane.setBackground(SystemColor.activeCaption); desktopPane.setBounds(0, 0, 434, 413); getContentPane().add(desktopPane); JButton btnNewButton = new JButton("Download"); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { if(videoId.getText().isEmpty() || videoId.getText().equals("")) { JFrame error = new JFrame(); JOptionPane.showMessageDialog(error, "Invalid URL to Convert.", "Error", JOptionPane.ERROR_MESSAGE, null); return; } videoTitle.setText(getVideoTitle()); downloadVideo(getAbstratURL(), getVideoTitle()); } }); btnNewButton.setBounds(10, 329, 414, 49); desktopPane.add(btnNewButton); videoId = new JTextField(); videoId.setBounds(10, 35, 414, 20); desktopPane.add(videoId); videoId.setColumns(10); JLabel lblYoutubeVideoId = new JLabel("Youtube Video Id:"); lblYoutubeVideoId.setBounds(10, 21, 242, 14); desktopPane.add(lblYoutubeVideoId); convertField = new JTextField(); convertField.setBounds(10, 84, 317, 20); desktopPane.add(convertField); convertField.setColumns(10); JLabel lblConvertLinkTo = new JLabel("Convert Link to Video Id:"); lblConvertLinkTo.setBounds(10, 71, 130, 14); desktopPane.add(lblConvertLinkTo); JButton convertButton = new JButton("Convert"); convertButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if(convertField.getText().isEmpty() || convertField.getText().equals("") || !convertField.getText().contains("http://www.youtube.com/watch?v=")) { JFrame error = new JFrame(); JOptionPane.showMessageDialog(error, "Invalid URL to Convert.", "Error", JOptionPane.ERROR_MESSAGE, null); return; } videoLink = convertField.getText().replace("http://www.youtube.com/watch?v=", "").substring(0, 11); genVideoId.setText(videoLink); } }); convertButton.setBounds(335, 83, 89, 23); desktopPane.add(convertButton); genVideoId = new JTextField(); genVideoId.setBounds(10, 130, 414, 20); desktopPane.add(genVideoId); genVideoId.setColumns(10); JLabel lblGeneratedVideoId = new JLabel("Generated Video Id:"); lblGeneratedVideoId.setBounds(10, 115, 130, 14); desktopPane.add(lblGeneratedVideoId); videoTitle = new JLabel(""); videoTitle.setBounds(10, 304, 414, 14); desktopPane.add(videoTitle); progressBar = new JProgressBar(); progressBar.setStringPainted(true); progressBar.setBounds(10, 196, 414, 35); desktopPane.add(progressBar); } public static void main(String[] args) { new YoutubeDownloaderApp().setVisible(true); } private String initialPage = "http://www.youtube.com/watch?v="; public String getVideoTitle() { String url = initialPage + videoId.getText(); String pageSource = getContent(url, "GET"); String title = getBetween(pageSource, "'VIDEO_TITLE': '", "',"); if(title == null) title = getBetween(pageSource, "name=\"title\" content=\"", "\""); if(title == null) try { title = URLDecoder.decode(getBetween(pageSource, "&title=", "&"), "UTF-8").replace("+", " "); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return title; } /** * Gets the Cached Url path that Youtube tries blocking the fuck out of. The encrypted page was fun to deal with * @return Cached Video Url */ public String getAbstratURL() { String url = initialPage + videoId.getText(); String pageSource = getContent(url, "GET"); String title = getBetween(pageSource, "'VIDEO_TITLE': '", "',"); if(title == null) title = getBetween(pageSource, "name=\"title\" content=\"", "\""); if(title == null) try { title = URLDecoder.decode(getBetween(pageSource, "&title=", "&"), "UTF-8").replace("+", " "); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } System.out.println("Title: "+title); String formatUrlMap = ""; try { formatUrlMap = URLDecoder.decode(getBetween(pageSource, "fmt_stream_map=", "&"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } if(formatUrlMap == null) formatUrlMap = getBetween(pageSource, "fmt_stream_map\": \"", "\"").replace("\\/", "/"); System.out.println("[Formatted] Url Map: "+formatUrlMap); String[] formatArray = formatUrlMap.split("url="); String mapUrl = ""; for(int i = 0; i < formatArray.length; i++) { String[] parts = formatArray[i].split(Pattern.quote("&qual")); try { mapUrl = URLDecoder.decode(parts[0], "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } if(mapUrl == null || mapUrl.isEmpty() || mapUrl.equals("")) { continue; } else { i = formatArray.length; return mapUrl; } } return null; } /** * Gets Data Values needed for download * @param a * @param b * @param c * @return Data Stream */ public String getBetween(String a, String b, String c) { try { String[] args1 = a.split(b); try { String[] args2 = args1[1].split(c); if((args2[0] != null) || (args2[0] != "")) return args2[0]; } catch (Exception e) { return args1[1]; } return args1[1]; } catch (Exception e) { } return null; } /** * Gets Page Source Data * @param urlPage Website Url * @param httpMethod Type you are Requesting * @return Content Data */ public String getContent(String urlPage, String httpMethod) { try { URL webPage = new URL(urlPage); HttpURLConnection connection = (HttpURLConnection) webPage.openConnection(); connection.setRequestMethod(httpMethod); InputStream input = connection.getInputStream(); ByteArrayOutputStream output = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; for(int bytesRead = 0; (bytesRead = input.read(buffer)) != -1;) { output.write(buffer, 0, bytesRead); } return output.toString(); } catch(Exception e) { e.printStackTrace(); } return null; } /** * Downloads Youtube Video * @param webPageUrl Video Download Link * @param title Title of Video and File name */ public void downloadVideo(String webPageUrl, String title) { int bytesRead = 0; try { URL webPage = new URL(webPageUrl); BufferedInputStream input = new BufferedInputStream(new URL(webPage.toString()).openStream()); BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream("data/youtube/"+title+".mp4")); while((bytesRead = input.read()) != -1) { output.write(bytesRead); bytesRead++; } input.close(); output.close(); System.out.println("------------- DOWNLOAD COMPLETE -------------------"); progressBar.setValue(100); } catch (IOException e) { e.printStackTrace(); } } }[/code] [img]http://i56.tinypic.com/2lm468h.jpg[/img]
  16. Im trying to make a webclient and it just keeping saying error click for details but someone said i needed a loader so im trying to install one but i cant find out. plz help me add me on msn or skype skype name: Chaka1chaka msn: [email][email protected][/email]
×