Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • Cole1497: this shout box is diarrhetic
      Today at 04:53:27 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 13, 2019, 04:54:43 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 13, 2019, 04:34:05 PM
    • rune-list:[link] RuneScape Private Servers List & Community.
      July 12, 2019, 12:25:23 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! [link]
      July 11, 2019, 10:31:15 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! [link]
      July 11, 2019, 10:31:11 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 10, 2019, 05:27:05 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 10, 2019, 05:10:40 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 10, 2019, 04:43:07 AM
    • ArtexAdv: Artex-rsps,com [link] (BRAND NEW SERVER)
      July 08, 2019, 07:59:48 PM
    • ArtexAdv:[link] (BRAND NEW SERVER)
      July 08, 2019, 07:59:31 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 08, 2019, 07:03:33 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 08, 2019, 07:03:16 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 08, 2019, 06:59:50 PM
    • dan v jad: guys join PkOwnage today!! Great new server, raids, eco, PK! Discord [link] homepage [link]
      July 07, 2019, 10:59:48 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! - [link]
      July 07, 2019, 08:19:24 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! - [link]
      July 07, 2019, 08:19:04 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 05, 2019, 04:22:44 PM
    • PavSwag: autoscape,0rg
      July 05, 2019, 04:22:32 PM
    • PavSwag: #AS [link] is 317 Oldschool RuneScape Private Server emulating core factors of the game with a strong economy and balance of experience to bossing and prestiging - Lumbridge remade - Login with a starter set of armour and items - PK District - Preloading sets - GE PVP - Clan Wars Safe PK - PVP Tournaments - Activity points for training - All Skills Working, Skilling Island, Skilling Pets, Skilling Rewards - All Working Max Capes - 25+ Bosses with Pets - Superior Slayer Encounters - Clue Scrolls & Imbue Scrolls - Player Profiles - Player Owned Shops - Minigames, Construction, Sawmill, Warriors Guild, Pest Control, Barrows (with pets), Fight Caves, Inferno Caves, Chambers of Xeric, Custom Raids - QoL Updates: Keybinds, Skill Guides,
      July 05, 2019, 04:22:29 PM

    Author Topic: RuneAgent Help  (Read 3065 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
    Runescape Gambling

     

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