Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • ragnoroker: Brand new unique server just released! - Awesome Community - [link]
      October 14, 2019, 11:11:32 AM
    • ragnoroker: Brand new unique server just released! - Awesome Community - [link]
      October 14, 2019, 11:11:28 AM
    • ragnoroker: Brand new unique server just released! - Awesome Community - [link]
      October 14, 2019, 11:11:23 AM
    • marquise:[link]
      October 11, 2019, 12:24:21 PM
    • marquise: hey guys try autoscape.org [link]
      October 11, 2019, 12:19:08 PM
    • Rash: is this site still ded
      October 08, 2019, 07:54:22 PM
    • The Meek: Just Uploaded New Server ~Phusion~
      October 01, 2019, 03:30:31 AM
    • ragnoroker: Pre-EOC New server just dropped today! Come check it out :) - [link]
      September 27, 2019, 08:43:43 PM
    • ragnoroker: Pre-EOC New server just dropped today! Come check it out :) - [link]
      September 27, 2019, 08:43:40 PM
    • ragnoroker: Pre-EOC New server just dropped today! Come check it out :) - [link]
      September 27, 2019, 08:43:33 PM
    • PavSwag: try autoscape,0rg today i will personally help you get RICH and well KNOWN - pav
      September 26, 2019, 09:02:13 AM
    • PavSwag: try autoscape,0rg today i will personally help you get RICH and well KNOWN - pav
      September 26, 2019, 08:52:25 AM
    • ragnoroker: Brand new server! Join today - Good Eco/Nice Players - [link]
      September 25, 2019, 08:59:33 AM
    • ragnoroker: Brand new server! Join today - Good Eco/Nice Players - [link]
      September 25, 2019, 08:59:24 AM
    • ragnoroker: Brand new server! Join today - Good Eco/Nice Players - [link]
      September 25, 2019, 08:59:15 AM
    • PavSwag: bopalini
      September 23, 2019, 10:08:02 PM
    • PavSwag: Join autoscape,0rg fun events daily for infernal mystery boxes only server with Infernal Twisted Bow
      September 23, 2019, 03:05:33 PM
    • Frostydapure: Upcoming dmm/open pvp world server, 2006 style (different and fun trus me) [link] join join!
      September 23, 2019, 08:05:52 AM
    • Frostydapure: Upcoming dmm/open pvp world server, 2006 style (different and fun trus me) [link] join join!
      September 23, 2019, 08:05:45 AM
    • PavSwag: try autoscape,0rg today i will personally help you get RICH and well KNOWN - pav
      September 22, 2019, 02:55:32 PM

    Author Topic: RuneAgent Help  (Read 3120 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineAveragescape

    • Member
    • **
    • Posts: 33
    • Thanks: +0/-0
      • View Profile
    RuneAgent Help
    « on: March 24, 2016, 08:21:43 PM »
    I am almost done but there's one problem. When I click Run.bat, it starts but I don't get the OutStream window and get this in cmd:

    C:\Users\louda\Desktop\OSV RuneAgent>java -Xbootclasspath/a:"RuneAgent.jar";"lib/bcel-5.2.jar";"lib/rsyntax.jar";"client.jar" -javaagent:"RuneAgent.jar"=config.js -jar client.jar
    java.lang.NumberFormatException: For input string: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">"
            at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
            at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
            at java.lang.Double.parseDouble(Unknown Source)
            at org.silabsoft.runeagent.Premain.getCurrentVersion(Premain.java:69)
            at org.silabsoft.runeagent.Premain.premain(Premain.java:32)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
            at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
    javax.script.ScriptException: ReferenceError: "importPackage" is not defined in <eval> at line number 2
            at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)
            at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:451)
            at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:403)
            at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
            at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:150)
            at javax.script.AbstractScriptEngine.eval(Unknown Source)
            at org.silabsoft.runeagent.Premain.premain(Premain.java:53)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
            at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
    Caused by: <eval>:2 ReferenceError: "importPackage" is not defined
            at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
            at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319)
            at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291)
            at jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1428)
            at jdk.nashorn.internal.scripts.Script$\^eval\_.:program(<eval>:2)
            at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:623)
            at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
            at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
            at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:446)
            ... 11 more


    And this is my config.js

    load('nashorn:mozilla_compat.js'); //Java 8 support
    importPackage(org.silabsoft.runeagent.transformer);
    importPackage(org.silabsoft.runeagent.util);
    var transformer = new RuneTekFourTransformer(runeAgent.getAgent());
    var byteStream = new ClassModifier("ByteStream", "stream", "org.silabsoft.runeagent.hook.GenericByteStream");
    byteStream.addMethodWrapper(new MethodWrapper("p1isaac","createFrame","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("p4","writeDWord","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("p1","writeWordBigEndian","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("p2","writeWord","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("p3","writeDWordBigEndian","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("ip4","method403","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("p8","writeQWord","(J)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("pjstr","writeString","(Ljava/lang/String;)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("np1","method424","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("sp1","method425","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("ip2","method431","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("sp2","method432","(I)V",true));
    byteStream.addMethodWrapper(new MethodWrapper("isp2","method433","(I)V",true));
    byteStream.setReturnClassName("org.silabsoft.runeagent.transformer.RuneTekFourTransformer");
    var clientModifier = new RuneTekFourClientTransformer("GameClient", "client", "org.silabsoft.runeagent.hook.GenericGameClient","ISAACRandomGen");
    transformer.addClassModifier(byteStream);
    transformer.addClassModifier(clientModifier);
    runeAgent.addTransformer(transformer);

    What's wrong?
    Runescape Gambling

    OfflineRuneAgent

    • wololo
    • Member
    • ****
    • *
    • *
    • Posts: 7,515
    • Thanks: +0/-0
      • View Profile
      • MITB FORUMS
    Re: RuneAgent Help
    « Reply #1 on: March 25, 2016, 08:33:38 AM »
    the error: For input string: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">" is nothing its just because silabsoft.org is unavailable

    ReferenceError: "importPackage" is not defined in <eval> at line number 2

    are you using java 8? if so you will need to load mozilla_compat however if you are not using java 8 then you should remove that line

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal