Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 65

Thread: [Tutorial] [Part I] Runescape Injection Basics

  1. #26
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by Adium View Post
    Code:
    public class Main {
      private static Map<String, String> parameters = new HashMap<~>();
      .....
    The HashMap

    I don't think thats the problem though.
    The way Maps work in java changed with 1.7, make sure you're up to date.

  2. #27
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Whoops, misread the issue.

    One second
    Last edited by NKN; 03-25-2013 at 07:29 PM.

  3. #28
    Join Date
    Sep 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Richard View Post
    The way Maps work in java changed with 1.7, make sure you're up to date.
    I'm rolling with 1.7. I get an error on the actual "~"

    Quote Originally Posted by Eclipse
    Multiple markers at this line
    - Syntax error on token "~", delete this token
    - HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
    - Type safety: The expression of type HashMap needs unchecked conversion to conform to
    Map<String,String>
    Quote Originally Posted by NKN View Post
    Check this part:
    http://puu.sh/2kc1i.png
    100% Match
    Last edited by Adium; 03-25-2013 at 07:28 PM.

  4. #29
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by Adium View Post
    I'm rolling with 1.7. I get an error on the actual "~"




    100% Match
    Code:
    private static Map<String, String> parameters = new HashMap<String, String>();
    Try that

  5. #30
    Join Date
    Sep 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    Code:
    private static Map<String, String> parameters = new HashMap<String, String>();
    Try that
    No luck, I'm also now getting a weird error that I wasn't getting before.
    Exception in thread "main" java.lang.ClassNotFoundException: client
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:4 23)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
    at Main.<init>(Main.java:111)
    at Main.main(Main.java:24)
    Gonna re-write from scratch to make sure I didn't do anything stupid

    Problem Solved Thanks guys
    Last edited by Adium; 03-26-2013 at 04:28 AM.

  6. #31
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Code:
    while(param.find()){
                String key = param.group(1);
                String value = param.group(2);
                parameters.put(key,value);
                System.out.println("key: "+ key + " value: "+value);
            }
    It doesn't find key nor value
    fixed it!

    Exception in thread "main" ci
    at dm.g(dm.java:59)
    at client.init(client.java:697)
    at Main.<init>(Main.java:62)
    at Main.main(Main.java:23)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.intellij.rt.execution.application.AppMain.main (AppMain.java:120)
    How to fix this? 0.o
    And stub.getParameter(parameters.get("java_arguments") ); should be -Xmx256m -Xss2m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC ??
    Last edited by detuks; 03-31-2013 at 02:33 PM.

  7. #32
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by detuks View Post
    Code:
    while(param.find()){
                String key = param.group(1);
                String value = param.group(2);
                parameters.put(key,value);
                System.out.println("key: "+ key + " value: "+value);
            }
    It doesn't find key nor value
    fixed it!

    Exception in thread "main" ci
    at dm.g(dm.java:59)
    at client.init(client.java:697)
    at Main.<init>(Main.java:62)
    at Main.main(Main.java:23)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.intellij.rt.execution.application.AppMain.main (AppMain.java:120)
    How to fix this? 0.o
    And stub.getParameter(parameters.get("java_arguments") ); should be -Xmx256m -Xss2m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC ??

    Post your
    public String getParameter
    function


    Sorry for the delay!

  8. #33
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Hey :P I thank you highly for your tutorial on how to inject the old school RuneScape client, and I was just wondering if you at all knew any way of how this method could be applied to the RuneScape 3 client. Would it be possible to modify the current code given for old school so that it is compatible with version 3, or is the method completely different (for Java RS3, of course)?

  9. #34
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by computerichy View Post
    Hey :P I thank you highly for your tutorial on how to inject the old school RuneScape client, and I was just wondering if you at all knew any way of how this method could be applied to the RuneScape 3 client. Would it be possible to modify the current code given for old school so that it is compatible with version 3, or is the method completely different (for Java RS3, of course)?
    Yeah, you could use it for RS3.

    It's a bit more difficult because of the inner pack.

  10. #35
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    Nice job man, been waiting for someone to make some kind of tut for anything




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

  11. #36
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Is there a possibility that you are able to create a loader, or some of the core code to load the applet?

  12. #37
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by computerichy View Post
    Is there a possibility that you are able to create a loader, or some of the core code to load the applet?
    Uhh.. I'm able yes. Did you want the code, is that what you're asking?

  13. #38
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    I would really appreciate if you were kind enough to, yes; It seems difficult to find support on injecting the RS3 client, which I guess is due to the illegitimate uses and the majority of developers prefer secretion. I, however am aiming to create a feature-full and supportive client to improve the user's experience through entertainment and efficiency, that incorporates both old school and RS3. If you were to support the client loading and injection component, I would be more than obliged to fully credit you for your support.
    Last edited by computerichy; 02-05-2014 at 11:49 PM.

  14. #39
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by computerichy View Post
    I would really appreciate if you were kind enough to, yes; It seems difficult to find support on injecting the RS3 client, which I guess is due to the illegitimate uses and the majority of developers prefer secretion. I, however am aiming to create a feature-full and supportive client to improve the user's experience through entertainment and efficiency, that incorporates both old school and RS3. If you were to support the client loading and injection component, I would be more than obliged to fully credit you for your support.
    I haven't done RS3 injection, but I'll look at it later today. If I get anything, I'll PM you it.

  15. #40
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    I haven't done RS3 injection, but I'll look at it later today. If I get anything, I'll PM you it.
    Thank you, I would really appreciate it as I've attempted myself and seems to be quite a complex issue.

  16. #41
    Join Date
    Jun 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    The issue is now solved, I've successfully been able to load the RS3 client as an applet by parsing the parameters using the 'jav_config.ws' page.

  17. #42
    Join Date
    Mar 2012
    Location
    Oklahoma
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Thank you so much, this is fantastic.

    PS- Where is part 2! Keep it up man

  18. #43
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by DatSik View Post
    Thank you so much, this is fantastic.

    PS- Where is part 2! Keep it up man
    this thread is a year old.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  19. #44
    Join Date
    Mar 2012
    Location
    Oklahoma
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    this thread is a year old.
    So? that doesent make it any less useful, I have just discovered it, Im not intending to grave-dig or anything, and honestly i didnt know anything about the date

  20. #45
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    this thread is a year old.
    Grave-digging tutorials is a crime now?

  21. #46
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Kasi View Post
    Grave-digging tutorials is a crime now?
    wasn't referring to grave digging, he thanked him for it and asked for part 2.

    do you honestly think NKN still checks this thread?
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  22. #47
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    wasn't referring to grave digging, he thanked him for it and asked for part 2.

    do you honestly think NKN still checks this thread?
    NKN actually started coming back on skype recently. Anyhow, isn't really your choice to make, Only reason why i posted was because he thought you were targeting him on the grave-digging; as did i.

  23. #48
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    wasn't referring to grave digging, he thanked him for it and asked for part 2.

    do you honestly think NKN still checks this thread?
    Hello yes I subscribe to all my threads so I can reply.

    I might do a part 2, would probably need to rewrite this one first, it's pretty god awful.

  24. #49
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by DatSik View Post
    So? that doesent make it any less useful, I have just discovered it, Im not intending to grave-dig or anything, and honestly i didnt know anything about the date
    Quote Originally Posted by Kasi View Post
    NKN actually started coming back on skype recently. Anyhow, isn't really your choice to make, Only reason why i posted was because he thought you were targeting him on the grave-digging; as did i.
    I'm sorry, my apologies. I was quick to jump to the conclusion that his post was useless. It was not. I was wrong.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  25. #50
    Join Date
    Mar 2012
    Location
    Oklahoma
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    I'm sorry, my apologies. I was quick to jump to the conclusion that his post was useless. It was not. I was wrong.
    Your a good dude. thumbs up to you

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •