Jump to content

Valkyr

Members
  • Posts

    1433
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by Valkyr

  1. Awesome, but it seems to have broken at least one of my scripts Looks like something related to LocalWalker
  2. Ay? My fighter can do this, when webwalker is done it'll be banking to
  3. Valkyr

    move threads

    could someone please move the threads in my sig to the sdn section?
  4. If I don't respond fast I'm in Morocco

  5. I hear you can get jobs from the NPCs in Lumbridge
  6. Tomorrow I'm flying to Morocco
  7. I've tried lifting weights while tipsy and it was easier than it would've been sober, though I reckon if you're doing a proper workout you could end up doing some damage to yourself by overworking yourself. You'll definitely feel it once the alcohol's worn off xD
  8. So I'm writing a webwalker and using Kryo to serialize the web object. The file (as far as I am aware) saves perfectly fine, but when it loads I am presented with the following error: java.lang.NoClassDefFoundError: com/esotericsoftware/reflectasm/ConstructorAccess I believe this is caused by the lack of a no-args constructor, though all my classes have one for that specific reason. Here is the code I am using to load the file: public static WeightedGraph read(String filename) { WeightedGraph retrievedObject = new WeightedGraph(); try (Input input = new Input(new FileInputStream(filename))) { Kryo kryo = new Kryo(); retrievedObject = (WeightedGraph) kryo.readClassAndObject(input); System.out.println("Retrieved from file: " + retrievedObject.getVertices().size() + " nodes"); } catch (FileNotFoundException ex) { Logger.getLogger(WeightedGraph.class.getName()).log(Level.SEVERE, null, ex); } return retrievedObject; } If anyone has used Kryo and experienced a similar problem please respond.
  9. getHealth returns the health as a percentage, I think he means to get the actual number of hitpoints remaining. There is no way to do this, only for players by getting the skillTracker.getDynamicLevel(SKILL) method. Maybe someone else needs to read the API
×
×
  • Create New...