Results 1 to 25 of 25

Thread: https://github.com/silabsoft/SimbaGL

  1. #1
    Join Date
    Jun 2006
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default https://github.com/silabsoft/SimbaGL


  2. #2
    Join Date
    Jun 2006
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    some script files uploaded in the hope that they will be useful

  3. #3
    Join Date
    Jun 2006
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    limit per post is 5 files...

    don't take the mouse method too seriously

    haven't looked at rest of files

  4. #4
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Looks like she's coming along pretty well with this.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  5. #5
    Join Date
    Jun 2006
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    we haven't touched it in 3 months, both too busy

  6. #6
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Interesting, might fork this project.
    Working on: Tithe Farmer

  7. #7
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    This is really a project worth continuing! It's great that you have finally released the sourcecode. I hope someone else will try to contineue this project: Since Silab n' Afthermath are both too busy.

    Anyways great job!
    Last edited by slacky; 02-25-2012 at 02:37 AM.

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Wow, so this is an OpenGL plugin/project for simba, you do most/all of this on your own awesome?!
    More info and pictures and stuff please? get the people excited!

  9. #9
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    YoHoJo, have you not seen silabsoft's thread at MITB? The project has been down for three months. Maybe it's time for someone else to contineue it?
    Last edited by slacky; 02-27-2012 at 05:54 AM.

  10. #10
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    may sound nooby but I get a error with the include part :P



    ^^

  11. #11
    Join Date
    Dec 2011
    Location
    USA
    Posts
    362
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Mat View Post
    may sound nooby but I get a error with the include part :P
    Agreed... (on the error part :P)
    Currently: Very busy
    Future Goals: finish nursing school, RS later.

  12. #12
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    IF: Trying to include it in simba (LoadLib):
    What does the error say? Something alà "can't find blabla32.dll..." Or is it something more "advanced"?
    In any case, when there is such an error you may just need to reinstall Simba -> this is to go the easiest direction. I've had two types of errors while trying to include dll's; I always reinstall simba.

    ELSE: Try to spesify your question... oh... wait... There is no question... Compile error: No question asked!

    - It all works well for me...
    Last edited by slacky; 03-05-2012 at 04:05 PM.

  13. #13
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    I noticed some of your random solvers make use of DTMs and TextTPA for the OCR, I'm wondering how this is possible if we can't read the color data in OGL mode?

    By the way, why on Earth are we not working on this? This would be a very powerful tool for SRL, I don't understand why there's so little attention to this project.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  14. #14
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    I noticed some of your random solvers make use of DTMs and TextTPA for the OCR, I'm wondering how this is possible if we can't read the color data in OGL mode?

    By the way, why on Earth are we not working on this? This would be a very powerful tool for SRL, I don't understand why there's so little attention to this project.
    Because most of the forum takes little to no interest in C++. Even on Moparisthebest, barely anyone wanted to learn it to help her develop. And as long as you inject, you can do whatever you want which includes grabbing interfaces and text and models. I guess it was just a matter of sticking to Simba.
    This dll gave to Simba but just no one took interest.
    Last edited by Brandon; 06-27-2012 at 02:22 AM.
    I am Ggzz..
    Hackintosher

  15. #15
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Because most of the forum takes little to no interest in C++. Even on Moparisthebest, barely anyone wanted to learn it to help her develop. And as long as you inject, you can do whatever you want which includes grabbing interfaces and text and models. I guess it was just a matter of sticking to Simba.
    This dll gave to Simba but just no one took interest.
    Yeah it's really a shame. I don't know C++ but I would sure like to learn some basics for the sake of progressing this plugin, ect... Yeah I heard Trilez was grabbing text also from his 'TOGL', but his bot also used a fair amount of color-finding, including DTMs.

    I would surely like to work on a full include for OGL if we were already to the point of reading color along with it, but this is beyond my ability so I'm hoping someone else with more knowledge will take interest.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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

    Default

    I'll start learning C++ if I can help with it.

    Tried TRiBot, couldn't get it to load(4 hours of attempts)

  17. #17
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Yeah it's really a shame. I don't know C++ but I would sure like to learn some basics for the sake of progressing this plugin, ect... Yeah I heard Trilez was grabbing text also from his 'TOGL', but his bot also used a fair amount of color-finding, including DTMs.

    I would surely like to work on a full include for OGL if we were already to the point of reading color along with it, but this is beyond my ability so I'm hoping someone else with more knowledge will take interest.

    I know C++ (Self taught everything).. Never touched OpenGL though but I have the concepts and stuff. Strong background in GDI, Windows API, and hooking and what not.

    Just dunno OpenGL. Though I have to say I did port most of Simba to C++ after seeing Scar++.
    If I could find a good OGL tutorial I can self teach and probably work on OpenGL hooking. And I don't know Java (not even a single line; Can read it, not write it) so Iunno if I need to learn that to understand the game client to help or not. If you guys work on it, I will too I guess.

    I've been looking at this: http://www.swiftless.com/opengltuts.html
    Last edited by Brandon; 06-27-2012 at 03:06 AM.
    I am Ggzz..
    Hackintosher

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

    Default

    If only I could understand how to install it...

    :I

  19. #19
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    I know C++ (Self taught everything).. Never touched OpenGL though but I have the concepts and stuff. Strong background in GDI, Windows API, and hooking and what not.

    Just dunno OpenGL. Though I have to say I did port most of Simba to C++ after seeing Scar++.
    If I could find a good OGL tutorial I can self teach and probably work on OpenGL hooking. And I don't know Java (not even a single line; Can read it, not write it) so Iunno if I need to learn that to understand the game client to help or not. If you guys work on it, I will too I guess.

    I've been looking at this: http://www.swiftless.com/opengltuts.html

    Hey! At least someone got some use out of Scar++. We didn't do all that work for nothing :P


  20. #20
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    http://imgur.com/a/k5rVu#13

    See those fonts anyone? Those are the fonts we use in Simba no? I got them from the RS Client. There's 9 of those sets of fonts in the RS Client.. Yet Simba seems to have 11 of them :S?

    The others cannot upload cuz it keeps saying something about "Make sure they aren't 2MB in size" wtf? Very annoying imgur -_- But hasn't anyone noticed that before? This could possibly help our uptext stuff. AND just it has every possible combination of the minimap flag colours. There's a purple flag pole, red, white, green, etc.

    Also how do I make the GLIntercept stop logging 4 gb's of function calls.. Holy. I'm not even logged in yet at the amount of calls are ridiculous. 4GB!! I can't even open it.
    Last edited by Brandon; 06-27-2012 at 06:03 AM.
    I am Ggzz..
    Hackintosher

  21. #21
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Brandon
    The others cannot upload cuz it keeps saying something about "Make sure they aren't 2MB in size" wtf? Very annoying imgur -_-
    Yeah I dunno why this is so I've been having to use Tinypic, yuck...

    Quote Originally Posted by Brandon
    Also how do I make the GLIntercept stop logging 4 gb's of function calls.. Holy. I'm not even logged in yet at the amount of calls are ridiculous. 4GB!! I can't even open it.
    It's just the opposite for me; OpenGL seems to run super smooth for RS, but DirectX kills me...


    If the tutorials you've been reading say anything about like... hooking/grabbing the canvas's color data or anything along those lines then that's what I'd like to focus on.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  22. #22
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    [..img]See those fonts anyone? Those are the fonts we use in Simba no? I got them from the RS Client. There's 9 of those sets of fonts in the RS Client.. Yet Simba seems to have 11 of them :S?

    [...]But hasn't anyone noticed that before? This could possibly help our uptext stuff. AND just it has every possible combination of the minimap flag colours. There's a purple flag pole, red, white, green, etc.

    [...]
    *cough*Auto-Updating fonts?! - 12-08-2010*cough*
    it sucks that the images doesn't work anymore, but it was the same images as you had

    The fonts load only when the client needs them; if it don't need the font used in say i.e Login then it wont load that font and so forth

  23. #23
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Brandon, does this mean anything to you?
    Code:
    void sys_glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
    {
    if(logging)
    add_log("glBitmap"); // need to add vars was lazy;
    (*orig_glBitmap) (width, height, xorig, yorig, xmove, ymove, bitmap);
    }
    As this is a standard procedure in the OpenGL dll, could we not use this (or something similar) to grab a bitmap of the client?
    Code:
    sys_glBitmap (765, 503,  0,  0,  xmove (what is this?),  ymove (what is this?), out BMP)
    Aside from this I'm lost on how to interact between color-reading in Simba and the RS client in OGL mode. I really can't go any further beyond this point.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  24. #24
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Brandon, does this mean anything to you?
    Code:
    void sys_glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
    {
    if(logging)
    add_log("glBitmap"); // need to add vars was lazy;
    (*orig_glBitmap) (width, height, xorig, yorig, xmove, ymove, bitmap);
    }
    As this is a standard procedure in the OpenGL dll, could we not use this (or something similar) to grab a bitmap of the client?
    Code:
    sys_glBitmap (765, 503,  0,  0,  xmove (what is this?),  ymove (what is this?), out BMP)
    Aside from this I'm lost on how to interact between color-reading in Simba and the RS client in OGL mode. I really can't go any further beyond this point.

    K most hooks use what is called a detour function. Exactly what you have above.

    The way it works is like this:

    1. Create a function with the same parameters as the original function but with a different name since two functions can't have the exact same name and exact same parameters.

    2. Do whatever you have to do with the values you get from the callee.

    3. Using a pointer to the original function, pass it the values of the detour parameters.


    So first they declared the detour function. Within it, they add to the log the function that was called aka "gl_Bitmap" then they just pass the original gl_Bitmap function the parameters it requires.

    Function Parameter Definition: http://www.opengl.org/sdk/docs/man/xhtml/glBitmap.xml


    For example:

    C++ Code:
    void GLHOOK_glEnable(GLenum  cap)   //Our detour function.. Similar name. It will hook glEnable and that takes only 1 parameter.
    {
        //Do whatever with "cap" here..
        (*orig_glEnable)(cap);     //This is just a typedef of a pointer to the original glEnable. You pass it the cap parameter. That's it.
    }

    In the .def file you would do glEnable = GLHOOK_glEnable

    Why? Because that will "Intercept" the calls to your detour which will do whatever it has to do then pass it to the original.
    Last edited by Brandon; 07-07-2012 at 05:14 PM.
    I am Ggzz..
    Hackintosher

  25. #25
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Looks like a hook for glBitmap. It's used for painting a bitmap on the buffer.

    You're probably looking for a function like ReadPixels.

    EDIT: That was a bit too late.
    Hup Holland Hup!

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
  •