Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Eidolon's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Vanished
    Posts
    822
    Reputation
    54
    Thanks
    4,034
    My Mood
    Angelic

    Question [Solved] C++ D3D Single Player

    I need an answer... I'm currently busy with a C++ D3D hack and I need a recognition if the game is running active or not. I have been asking around and there is no such thing as an IsInGame pointer/address, so the only option would be with reading another address/pointer and I tried but still my iw5sp is crashing... I used this code [I just started with this so it could be wrong, though i dont get any Compiler errors]

    Code:
    bool indication()
    {
            float var;
            var = *(float*)(*(int*)0x1D31404 +0xC);
            if(var != 0)
                  return true;
    }
    
    void Hacks()
    {
            if(indication)
            {
             //hacks
            }
    }




    Yet, you are a pathetic human.

    Contributor since: 7.26.2012 - ended
    Donator since: 7.14.2012


  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    So the method I gave you didn't work for you?

    Because you do mean if you are in the game and not just that the game is running.
    Else, you just check around to see after some "sticky" offsets that have an "main" value in the "lobby" or in the game.
    Like, I found 1 that changes into the map name. (That I gave you.)

    Or you can try to look in the range of your health. There should be an offset there that changes when you are in-game. (No, not the health, but something close to it.)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. #3
    Eidolon's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Vanished
    Posts
    822
    Reputation
    54
    Thanks
    4,034
    My Mood
    Angelic
    Quote Originally Posted by Jorndel View Post
    So the method I gave you didn't work for you?

    Because you do mean if you are in the game and not just that the game is running.
    Else, you just check around to see after some "sticky" offsets that have an "main" value in the "lobby" or in the game.
    Like, I found 1 that changes into the map name. (That I gave you.)

    Or you can try to look in the range of your health. There should be an offset there that changes when you are in-game. (No, not the health, but something close to it.)
    Problem is when im not in game its varying in numbers and once im in game it changes to a char




    Yet, you are a pathetic human.

    Contributor since: 7.26.2012 - ended
    Donator since: 7.14.2012


  4. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by Anonymouss View Post


    Problem is when im not in game its varying in numbers and once im in game it changes to a char
    Just read it as a string then
    Or just but a try / catch (If it's possible in C++)
    And then you got it all solved

    Try/Catch : http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  5. #5
    Eidolon's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Vanished
    Posts
    822
    Reputation
    54
    Thanks
    4,034
    My Mood
    Angelic
    Quote Originally Posted by Jorndel View Post
    Just read it as a string then
    Or just but a try / catch (If it's possible in C++)
    And then you got it all solved

    Try/Catch : try, catch, and throw Statements (C++)
    Try-catch I know, but Ive never been good with the basics and since char doesnt support integer properties (as far as i know and its always a random number...




    Yet, you are a pathetic human.

    Contributor since: 7.26.2012 - ended
    Donator since: 7.14.2012


  6. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by Anonymouss View Post


    Try-catch I know, but Ive never been good with the basics and since char doesnt support integer properties (as far as i know and its always a random number...
    Some easy facts:
    Chars can be converted into numbers. Think it was 16 bit. (Did it in my name faker :P)
    Google found:

    With the Try / Catch you could use the catch to notify when it's in-game | out-game.

    And what else I was to say I forgot :P

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  7. #7
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    214
    Reputation
    28
    Thanks
    747
    My Mood
    Amazed
    if you hook the engine, you dont have problems with isingame
    just hook renderscene, can be found on string

  8. #8
    Eidolon's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Vanished
    Posts
    822
    Reputation
    54
    Thanks
    4,034
    My Mood
    Angelic
    Quote Originally Posted by cardoow View Post
    if you hook the engine, you dont have problems with isingame
    just hook renderscene, can be found on string
    What do you mean by this? [as I said, I dont have much experience with this ollydbg/C++]




    Yet, you are a pathetic human.

    Contributor since: 7.26.2012 - ended
    Donator since: 7.14.2012


  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    My Mood
    Angelic
    Quote Originally Posted by Anonymouss View Post


    What do you mean by this? [as I said, I dont have much experience with this ollydbg/C++]
    Means you have to access the game engine
    And you read the render info from there.

    What he mostly like meant.

    Like it have to render the items etc.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  10. #10
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,317
    My Mood
    Breezy
    No, should be this @Anonymouss:
    Code:
    bool indication()
    {
        return *(int*)0x1D31404 == 0;
    }
    Maybe I should've been more clearer. When you are not in-game, those DVAR pointers point to nothing.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  11. #11
    Eidolon's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Vanished
    Posts
    822
    Reputation
    54
    Thanks
    4,034
    My Mood
    Angelic
    Quote Originally Posted by master131 View Post
    No, should be this @Anonymouss:
    Code:
    bool indication()
    {
        return *(int*)0x1D31404 == 0;
    }
    Maybe I should've been more clearer. When you are not in-game, those DVAR pointers point to nothing.
    In combination with
    Code:
    if(!indication)
    I guess?




    Yet, you are a pathetic human.

    Contributor since: 7.26.2012 - ended
    Donator since: 7.14.2012


  12. #12
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,309
    My Mood
    Angelic
    Quote Originally Posted by Anonymouss View Post


    In combination with
    Code:
    if(!indication)
    I guess?
    Yep.
    Code:
    if(!indication){
       //Your stuff here
    }


    CoD Minion from 09/19/2012 to 01/10/2013

  13. #13
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,317
    My Mood
    Breezy
    Yeah, or you could reverse the logic and rename the function to make it more clearer.

    Code:
    bool IsInGame()
    {
        return *(int*)0x1D31404 != 0;
    }
    
    void MyThing()
    {
        if(IsInGame())
        {
            // Do crap here.
        }
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  14. #14
    Eidolon's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Vanished
    Posts
    822
    Reputation
    54
    Thanks
    4,034
    My Mood
    Angelic
    Ok great I used @master131's tip but game is still crashing, so I will need someone (with brains and honor so he doesn't copy my base) to have a look at my code what I did wrong...




    Yet, you are a pathetic human.

    Contributor since: 7.26.2012 - ended
    Donator since: 7.14.2012


  15. #15
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,309
    My Mood
    Angelic
    Quote Originally Posted by Anonymouss View Post
    Ok great I used @master131's tip but game is still crashing, so I will need someone (with brains and honor so he doesn't copy my base) to have a look at my code what I did wrong...
    What about you attach your code here, or part of it, so everyone who want to help can take a look? Unless you don't want to share your work to the public, what I would understand as well... Anyway, it's your call


    CoD Minion from 09/19/2012 to 01/10/2013

Page 1 of 2 12 LastLast

Similar Threads

  1. [SOLVED]Single Player ESP!?
    By virusloccin in forum Call of Duty Modern Warfare 2 Help
    Replies: 9
    Last Post: 11-10-2010, 04:55 PM
  2. [SOLVED]Single player error
    By lolbie in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 08-08-2010, 08:28 PM
  3. [SOLVED]mw2 single player hacks.
    By SofaKingH4rd in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 08-03-2010, 06:54 AM
  4. [SOLVED] Single-Player with aIW-Files?
    By kleenkutschick in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 07-28-2010, 02:32 AM
  5. [SOLVED] AlterIWnet + Single Player = FAIL.
    By Shucker in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 07-21-2010, 03:11 AM