Page 4 of 9 FirstFirst ... 23456 ... LastLast
Results 76 to 100 of 207

Thread: Hooking openGL functions for new style reflection

  1. #76
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    How about some sauce?
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  2. #77
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    E: And btw, are 2D models processed with OpenGL too, such as minimap and inventory items, or does the game-engine handle them separately? Cause if they aren't processed with OGL then you can't use this system to mapwalk.
    Yes, everything goes through OGL. Map walking should be possible, but it will be tricky to implement.

    Quote Originally Posted by mixster View Post
    Out of interest, have you been experimenting long enough to confirm they do not change their models/often or is it just a guess that they don't?
    This is just a guess, but I'd be very surprised if they did.

    Quote Originally Posted by mixster View Post
    could they not alter the id's without changing the actual models used, a bit like with hooks for reflection?
    Nope, the only way for IDs to change is to alter the model. I also hope to implement a method which will be impervious to small random changes in vertex positions.

    Quote Originally Posted by The Claw View Post
    Do those numbers represent anything specific or are they arbitrary?
    They relate to the model itself. I don't really want to go too much into the specifics of how I detect models on a public forum

    Quote Originally Posted by Nava2 View Post
    How about some sauce?
    In time

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

    Default

    Quote Originally Posted by n3ss3s View Post
    What the hell would make you think that a candle is an NPC? NON PLAYER CHARACTER.
    Uhm... Learn to read the topic..
    "Here's a render of an 'NPC' - really anything that is animated like things drawn in wireframe in the image above. This is actually passed to the gfx card in a different way to everything else (e.g. scenary etc, anything static) so I was just testing I could grab vertex data for animated things as well."
    http://www.villavu.com/forum/showpos...2&postcount=23
    Meaning anything that moves will be passed to his hacking program as NPC's

    EDIT: I compared SD on lowest to HD on lowest and HD on lowest used about 75% more CPU for me
    Last edited by Zyt3x; 01-16-2010 at 06:10 PM.

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

    Default

    Oh sorry, only now saw that the plants aswell have the X.

  5. #80
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Uhm... Learn to read the topic..
    "Here's a render of an 'NPC' - really anything that is animated like things drawn in wireframe in the image above. This is actually passed to the gfx card in a different way to everything else (e.g. scenary etc, anything static) so I was just testing I could grab vertex data for animated things as well."
    http://www.villavu.com/forum/showpos...2&postcount=23
    Meaning anything that moves will be passed to his hacking program as NPC's

    EDIT: I compared SD on lowest to HD on lowest and HD on lowest used about 75% more CPU for me
    Well, if he could "black-out" part of the screen as he mentioned earlier for easier ID/colour finding. Wouldn't that contribute to a lower CPU use?

    And also as I've been trying to pm you about :P Having the graphic card (OpenGL) running the show instead of the CPU, isn't that going to effect the set-up you need to run in order to mass bot?
    I ... Am ... CARTMANN!

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

    Default

    He said jagex could take screenshots of the rs screen, so we would have to draw to another layer. It would just increase the gpu/cpu usage.

    Correct me if im wrong.
    There used to be something meaningful here.

  7. #82
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by n3ss3s View Post
    Seeing you managed to wireframe RS, do you think you'd be able to choose a specific NPC or an Object to render? e.g otherwise black main screen but a trees are showing or something...
    That would be fantastic indeed..

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

    Default

    Quote Originally Posted by Frement View Post
    He said jagex could take screenshots of the rs screen, so we would have to draw to another layer. It would just increase the gpu/cpu usage.

    Correct me if im wrong.
    Yeah, the blacking-out thing would be on a separate canvas, it wouldn't be too hard for JaGeX to put in a screen shooter or something, and why not be on the safe-side, eh?


    And n3ss3s: Sorry if I seemed harsh/angry :P I was in a bad mood, it wasn't your fault

  9. #84
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here's my proper model recognition code in action:



    Previously IDs were changing each time RS is started, now it is static

    Can someone link me to some info on writing a SCAR plugin? It wont take much to get a GetNPCCoords() function implemented now

  10. #85
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    http://www.villavu.com/forum/showthread.php?t=13118

    Should to the trick for c++ plugins .
    Verrekte Koekwous

  11. #86
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    Here's my proper model recognition code in action:



    Previously IDs were changing each time RS is started, now it is static

    Can someone link me to some info on writing a SCAR plugin? It wont take much to get a GetNPCCoords() function implemented now
    The plugin depends on the language.

    edit: ninja'd

  12. #87
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    Can someone link me to some info on writing a SCAR plugin? It wont take much to get a GetNPCCoords() function implemented now

    If you're doing delphi:


    Code:
    // An example plugin for SCAR, created by Freddy1990
    // Check "Accessable SCAR Functions.txt" for which functions you can call from SCAR
    library TestPlugin;
    
    uses
      FastShareMem,
      TestPlugin_Globals;
    
    {$R *.res}
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    exports GetTypeCount;
    exports GetTypeInfo;
    exports SCARClosing;
    exports ScriptTerminate; 
    exports ScriptPause;
    exports ScriptResume;
    
    end.
    ect..

    Code:
    library CppTestPlugin;
    
    uses
      FastShareMem,
      SysUtils;
    
    {$R *.res}
    {$L CppTestPlugin\Main.obj}
    
    function _Inc10(Numb: Integer): Integer; cdecl; external;
    
    function Inc10(Numb: Integer): Integer; stdcall;
    begin
      Result := _Inc10(Numb);
    end;
    
    function GetFunctionCount(): Integer; stdcall; export;
    begin
      Result := 1;
    end;
    
    function GetFunctionInfo(x: Integer; var ProcAddr: Pointer; var ProcDef: PChar): Integer; stdcall;
    begin
      case x of
        0:
          begin
            ProcAddr := @Inc10;
            StrPCopy(ProcDef, 'function Inc10(Numb: Integer): Integer;');
          end;
      else
        x := -1;
      end;
      Result := x;
    end;
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    
    end.
    Accessibles
    Code:
    All functions unless clearly specified are available for the version for which they're listed and the following versions.
    
    SCAR Divi 3.12
    --------------
    procedure Writeln(s: string);
    procedure Status(s: string);
    procedure Wait(ms: Integer);
    function GetBitmapDc(Bmp: Integer): HDC;
    function GetSCARVersion: Integer;
    procedure Disguise(Caption: string);
    function GetClientWindowHandle: Integer;
    procedure SetClientWindowHandle(H: Integer);
    function InCircle(x, y, mx, my, r: Integer): Boolean;
    function InTriangle(x, y, x1, y1, x2, y2, x3, y3: Integer): Boolean;
    function Distance(x1, y1, x2, y2: Integer): Integer;
    procedure ConvertTime(Ms: Integer; var H, M, S: Integer);
    procedure TerminateScript;
    
    SCAR Divi 3.15
    --------------
    procedure ClearDebug;
    function GetStatus: string;
    function AppPath: string;
    function ScriptPath: string;
    procedure AddToReport(s: string);
    procedure ClearReport;
    procedure MoveToTray;
    procedure ActivateClient;
    function GetDebugText: String;
    procedure DeleteDebugLine(Line: Integer);
    function GetDebugLineCount: Integer;
    function GetDebugLine(Line: Integer): string;
    procedure ClearDebugLine(Line: Integer);
    procedure ReplaceDebugLine(Line: Integer; s: string);
    function GetClientCanvas: TCanvas;
    function GetDebugCanvas: TCanvas;
    function GetTimeRunning: Integer;
    procedure SetTargetDc(Dc: HDC);
    procedure ResetDc;
    procedure SetDesktopAsClient;
    
    SCAR Divi 3.20
    --------------
    function GetTargetDC: HDC;
    procedure ResetCaption;
    procedure Alert(s: string);

  13. #88
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    I'm very interested in this, and would like to learn abit of this aswell O.o.

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

    Default

    Quote Originally Posted by Dr D. Dervish View Post
    I'm very interested in this, and would like to learn abit of this aswell O.o.
    Yeah, you should totally write a tutorial, silentwolf

  15. #90
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    If you're doing delphi:


    Code:
    // An example plugin for SCAR, created by Freddy1990
    // Check "Accessable SCAR Functions.txt" for which functions you can call from SCAR
    library TestPlugin;
    
    uses
      FastShareMem,
      TestPlugin_Globals;
    
    {$R *.res}
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    exports GetTypeCount;
    exports GetTypeInfo;
    exports SCARClosing;
    exports ScriptTerminate; 
    exports ScriptPause;
    exports ScriptResume;
    
    end.
    ect..

    Code:
    library CppTestPlugin;
    
    uses
      FastShareMem,
      SysUtils;
    
    {$R *.res}
    {$L CppTestPlugin\Main.obj}
    
    function _Inc10(Numb: Integer): Integer; cdecl; external;
    
    function Inc10(Numb: Integer): Integer; stdcall;
    begin
      Result := _Inc10(Numb);
    end;
    
    function GetFunctionCount(): Integer; stdcall; export;
    begin
      Result := 1;
    end;
    
    function GetFunctionInfo(x: Integer; var ProcAddr: Pointer; var ProcDef: PChar): Integer; stdcall;
    begin
      case x of
        0:
          begin
            ProcAddr := @Inc10;
            StrPCopy(ProcDef, 'function Inc10(Numb: Integer): Integer;');
          end;
      else
        x := -1;
      end;
      Result := x;
    end;
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    
    end.
    Accessibles
    Code:
    All functions unless clearly specified are available for the version for which they're listed and the following versions.
    
    SCAR Divi 3.12
    --------------
    procedure Writeln(s: string);
    procedure Status(s: string);
    procedure Wait(ms: Integer);
    function GetBitmapDc(Bmp: Integer): HDC;
    function GetSCARVersion: Integer;
    procedure Disguise(Caption: string);
    function GetClientWindowHandle: Integer;
    procedure SetClientWindowHandle(H: Integer);
    function InCircle(x, y, mx, my, r: Integer): Boolean;
    function InTriangle(x, y, x1, y1, x2, y2, x3, y3: Integer): Boolean;
    function Distance(x1, y1, x2, y2: Integer): Integer;
    procedure ConvertTime(Ms: Integer; var H, M, S: Integer);
    procedure TerminateScript;
    
    SCAR Divi 3.15
    --------------
    procedure ClearDebug;
    function GetStatus: string;
    function AppPath: string;
    function ScriptPath: string;
    procedure AddToReport(s: string);
    procedure ClearReport;
    procedure MoveToTray;
    procedure ActivateClient;
    function GetDebugText: String;
    procedure DeleteDebugLine(Line: Integer);
    function GetDebugLineCount: Integer;
    function GetDebugLine(Line: Integer): string;
    procedure ClearDebugLine(Line: Integer);
    procedure ReplaceDebugLine(Line: Integer; s: string);
    function GetClientCanvas: TCanvas;
    function GetDebugCanvas: TCanvas;
    function GetTimeRunning: Integer;
    procedure SetTargetDc(Dc: HDC);
    procedure ResetDc;
    procedure SetDesktopAsClient;
    
    SCAR Divi 3.20
    --------------
    function GetTargetDC: HDC;
    procedure ResetCaption;
    procedure Alert(s: string);
    Hm.. I wouldn't advise using that code.

    silentwolf, have a look at SMART. It is a plugin too, written in c++.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  16. #91
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not a fan of Delphi syntax... glad I won't have to get my hands dirty

    Wizzup, did you ever get your C++ plugin (posted in that other thread) to work with normal SCAR (not portable)?

  17. #92
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Hm.. I wouldn't advise using that code.
    Yea, lol, it's directly from the CppTest and plugin instructions in SCAR hahahah

  18. #93
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    I'm not a fan of Delphi syntax... glad I won't have to get my hands dirty

    Wizzup, did you ever get your C++ plugin (posted in that other thread) to work with normal SCAR (not portable)?
    No, I have no clue why it did not work at the time, but I guess it may work now. I really advise looking at SMART, it has it all.

    Quote Originally Posted by IceFire908 View Post
    Yea, lol, it's directly from the CppTest and plugin instructions in SCAR hahahah
    My point.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  19. #94
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    This is amazing, please write a tutorial. When reflection started I wasn't excited about it, but this is defanetly exciting to figure out.
    Formerly known as Cut em2 it

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

    Default

    Is there a way to shorten the IDs? so if we want to find the bankers we didn't have to type/remember 27772005 and 588752808 instead of something easy like 2875

  21. #96
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Is there a way to shorten the IDs? so if we want to find the bankers we didn't have to type/remember 27772005 and 588752808 instead of something easy like 2875
    Well really, that doesn't matter now does it? We have computers to remember the ID's.. You could easily replace all those numbers by Strings of what they represent, etc..
    Verrekte Koekwous

  22. #97
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I would say a collection of global constants that held the ID's would be setup, ie bankers = 27458743; so that you didn't have to.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

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

    Default

    Quote Originally Posted by Zyt3x View Post
    Is there a way to shorten the IDs? so if we want to find the bankers we didn't have to type/remember 27772005 and 588752808 instead of something easy like 2875
    Hello there,
    Mr. Mysterious man came out of nowhere with a cool fresh new way to detect NPCS, and possibly items, minimap, and map walking, potentially creating a whole new method of easy coding/cheating that will hopefully not break and need to be updated as often as reflection and you ask him for shorter IDs?! Lawl!

    I'm sorry the IDs are a few digits too long for you, maybe TPAs and autocolor and density and MapWalking will be easier?! ! Lawl! <3

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

    Default

    Quote Originally Posted by YoHoJo View Post
    Hello there,
    Mr. Mysterious man came out of nowhere with a cool fresh new way to detect NPCS, and possibly items, minimap, and map walking, potentially creating a whole new method of easy coding/cheating that will hopefully not break and need to be updated as often as reflection and you ask him for shorter IDs?! Lawl!

    I'm sorry the IDs are a few digits too long for you, maybe TPAs and autocolor and density and MapWalking will be easier?! ! Lawl! <3
    Lol xD
    I hope that wasn't meant as anything personal, because I didn't get offended at all
    but yeah.. go back to your old tpa, color finding stuff you old croocky man... (there should be more "angry"-smilies here, lol)

    Ooh sh- maybe we should get back on topic?


    I think we should let the computers create the shortened ids for us, and then we would have to check a (online) database for the id's.
    Every time a user searches for an id, the server checks for matching ids and if there does not exist one then the server will create one unique id for us to use or something..

  25. #100
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Or you can just create an include file that relates all the commonly used different ID's to a constant.

    SCAR Code:
    const
      mdl_banker = 2273125;
      mdl_chicken = 5847383;
      mdl_your_mum = 8008135;
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Page 4 of 9 FirstFirst ... 23456 ... 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
  •