Page 3 of 12 FirstFirst 12345 ... LastLast
Results 51 to 75 of 287

Thread: Interception with DirectX

  1. #51
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    Nice work will have a look when I get home hope there isn't anything suspicious going on in there

  2. #52
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I can now set a point in the minimap to the code as x and y coordinate and it is able to calculate the screen coordinates for the same pixel in ingame minimap and click on it regardless of the direction you are looking at. Now i just have to work out how to make it walk well over those minimap image changes so it doesnt go to wrong direction.

  3. #53
    Join Date
    Mar 2012
    Posts
    690
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Could someone of higher knowledge confirm the .exe that Release.rar contains please? :/

  4. #54
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Sirenia View Post
    Could someone of higher knowledge confirm the .exe that Release.rar contains please? :/
    The sources were clean as far as I'm concerned. Thought Mato, you might want to remove the sockets from your sources. I find them..well kind of disturbing.
    There used to be something meaningful here.

  5. #55
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know, i said it was messy cause i didnt clean it up and the send hook is disabled there atm, ill delete it today.

  6. #56
    Join Date
    Jan 2012
    Posts
    273
    Mentioned
    7 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Mato View Post
    It uses very much less cpu than if you would search the screen and find an object by color + its probably faster + its more accurate + requires less updating.

    If runescape is updated for example, many people have to update their scripts colors and so on but this uses only the object shape for searching, so with this all you have to do is walk next to the object, see whats the new ID and put that to script and it works again. And that is required only if the object models are updated, which happens rarely if ever because its much work for jagex to update all models and then we look for the new ID's in an hour.
    do they push entire 3d model or only visible surfaces? (i.e. will you get different model attributes from different angle?)

    and nice - very nice
    Perfect script? There is no such thing as "perfect", only "better than you expect".

  7. #57
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Meh, ran it and gave me 0.00's in the corner, probs did something wrong. Was in a VM that probs has an old ass DirectX installed so...

  8. #58
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The ID will stay the same when looking from any angle. It was probably your directx, i compiled this with june 2010 sdk so you need to have d3dx9_43.dll in the system files somewhere, it uses the d3dx library to do matrix math and save textures and some other stuff.

    EDIT: I made a bit more code to the minimap coordinate system, it now uses a offset so that when the runescape loads a new minimap image the coordinates will stay the same. I will make it so that if you would be using for example a miner and banker with this, you would walk to some pre-defined spot and press a hotkey so that it resets the coordinates to (0, 0) at you. Then the script maker would have saved the walking points to the bank and mine and it could walk on them very long distances very accurately.

    Ill next make some walking code and try to make it walk from place A to place B.

    EDIT2: Walking works perfectly now. I hardcoded some points to the code and it walked from varrock to lumbridge 3 times, everytime with different looking angle.
    Last edited by Mato; 05-27-2012 at 01:38 PM.

  9. #59
    Join Date
    Mar 2012
    Posts
    690
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    You could add the rar to the mainpost so nobody misses it

  10. #60
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I dont know if its worth adding to the mainpost, all you can do with it is see the float type coordinates of the minimap in the left upper corner and the object ID's so you can really do anything with it :P

    And it isnt very easy to use yet.

    Oh and did you try it and did it work for you?

  11. #61
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    Good work mate have you created a function to return the coord(s) of the object ID's yet. Still aint had a look on pc yet and cant view whole code on phone for some reason.

    And what I guess your using an exe to hook couldn't you have it in the dll and then called from simba?.

    Starting to give me a bit motivation keep it up

  12. #62
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The function to get the object ID's isnt ready yet, and the exe is used only to inject the dll to the process. I havent looked yet at how to make it work with simba, ill make the most important functions work fully before that.

  13. #63
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    Using with simba shouldn't be a problem we can already call functions from dynamically loaded librarys for instance smart is library we use.

  14. #64
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

  15. #65
    Join Date
    Mar 2012
    Posts
    690
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Nope I couldnt get it to work at all actually I did what your post said and it told me it injecting and I changed to DirectX and all that good stuff but nothing happend :/

  16. #66
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have to have 32 bit java also and you will need d3dx9_43.dll also if you dont have the lastest directx version.

    I worked on inventory item recognition today and got it pretty good:


    As you can see the items with basically same image such as ores and runes have the same ID because it generates the ID by counting the fully transparent pixels in the sprite. The colors change always little every time rs is restarted so i couldnt make a accurate ID for every individual item. But i think its good enough if your miner doesnt for example mine many different ores in one load.

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

    Default

    Problem: Infinite loops for the "while(GetModuleHandleA("d3d9.dll") == 0)"

    and the way you find the windows, if Jagex changes window size by just one pixel, you'd have to recompile your DLL :c
    Other than that, looks nice.
    I am Ggzz..
    Hackintosher

  18. #68
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know theres a infinite loop for finding d3d9.dll, but i cant really do it any other way. Thats just meant to wait until the dll is loaded, because my dll cant hook the directx functions before its loaded and without hooking them its useless.

    And i dont think jagex is going to change the window size because then they would have to remake the border sprites so there wouldnt be any gaps between them. And if they did it, it would take me like 5min to find the new dimensions and recompile it.

    I looked at other ways to find the rs window, but it didnt have any caption and the window class it uses isnt anyhow unique so i decided to use the dimensions to find it. If you know any other better solution let me know.

  19. #69
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Problem: Infinite loops for the "while(GetModuleHandleA("d3d9.dll") == 0)"

    and the way you find the windows, if Jagex changes window size by just one pixel, you'd have to recompile your DLL :c
    Other than that, looks nice.
    We can inject it to SMART directly, so not a problem. When I was experimenting with OpenGL I had quite different way to hook the functions and inject it.
    There used to be something meaningful here.

  20. #70
    Join Date
    May 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OHH gawd this looks very interesting!
    Subscribed. c:

  21. #71
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Mato that's awesome dude, with Item's with the Same Id's it wouldn't make any difference since they only need a ColorSpeedTolerance(0) 1 Pixel Color Check on each of them to Differentiate

  22. #72
    Join Date
    Jan 2010
    Location
    Salo, Finland
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Uptext recognition is almost done, i will make it so it saves the uptext each frame and the function to get the uptext just returns a pointer to the uptext string so its really fast because it doesnt need any image recognition this way. It doesnt detect spaces in the string but that doesnt really matter.

  23. #73
    Join Date
    Mar 2012
    Posts
    690
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    I dont think should be too much of a problem since in most cases you dont search for more then one word

  24. #74
    Join Date
    Dec 2011
    Posts
    257
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This seems like it is getting somewhere. There was talk of this after the first bot nuke, but no-one carried it on. Does this script/idea have anti-ban? You also seem like you are having fun too.

  25. #75
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Mato View Post
    Uptext recognition is almost done, i will make it so it saves the uptext each frame and the function to get the uptext just returns a pointer to the uptext string so its really fast because it doesnt need any image recognition this way. It doesnt detect spaces in the string but that doesnt really matter.
    Could you update your first post with the current sources? Nice job by the way
    There used to be something meaningful here.

Page 3 of 12 FirstFirst 12345 ... LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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