[C#][iHook] Issue Getting EndScene menu

User Tag List

Results 1 to 6 of 6
  1. #1
    EvsonRARA's Avatar Member
    Reputation
    2
    Join Date
    Dec 2007
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#][iHook] Issue Getting EndScene

    As per the 5.0.5 Offsets, the third line returns the value of zero.

    Code:
    D3D9_Device = ReadInt(D3D9_Device + Offsets.HOOK_DIRECT3D9__DEVICE__OFFSETA);
    Code:
    private static int GetEndscene()        {
                int D3D9_Device = ReadInt(baseAddress + Offsets.HOOK_DIRECT3D9__DEVICE);
                D3D9_Device = ReadInt(D3D9_Device + Offsets.HOOK_DIRECT3D9__DEVICE__OFFSETA);
                D3D9_Device = ReadInt(D3D9_Device);
                D3D9_Device = ReadInt(D3D9_Device + Offsets.HOOK_DIRECT3D9__DEVICE__OFFSETB);
                return D3D9_Device;
            }
    Here are the offsets I'm using

    Code:
    // Hooking        public static int HOOK_FRAMESCRIPT_EXECUTEBUFFER = 0x75350;
            public static int HOOK_FRAMESCRIPT__GETLOCALIZEDTEXT = 0x48D7F0;
            public static int HOOK_DIRECT3D9__DEVICE = 0xAD773C;
            public static int HOOK_DIRECT3D9__DEVICE__OFFSETA = 0x27F8;
            public static int HOOK_DIRECT3D9__DEVICE__OFFSETB = 0xA8;
            public static int HOOK_CLNTOBJMGRGETACTIVEPLAYEROBJ = 0x34D0;
    Can anyone help me with this?

    [C#][iHook] Issue Getting EndScene
  2. #2
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you running the game in directx9 ?

  3. #3
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by EvsonRARA View Post
    As per the 5.0.5 Offsets, the third line returns the value of zero.

    Code:
    D3D9_Device = ReadInt(D3D9_Device + Offsets.HOOK_DIRECT3D9__DEVICE__OFFSETA);
    Code:
    private static int GetEndscene()        {
                int D3D9_Device = ReadInt(baseAddress + Offsets.HOOK_DIRECT3D9__DEVICE);
                D3D9_Device = ReadInt(D3D9_Device + Offsets.HOOK_DIRECT3D9__DEVICE__OFFSETA);
                D3D9_Device = ReadInt(D3D9_Device);
                D3D9_Device = ReadInt(D3D9_Device + Offsets.HOOK_DIRECT3D9__DEVICE__OFFSETB);
                return D3D9_Device;
            }
    Here are the offsets I'm using

    Code:
    // Hooking        public static int HOOK_FRAMESCRIPT_EXECUTEBUFFER = 0x75350;
            public static int HOOK_FRAMESCRIPT__GETLOCALIZEDTEXT = 0x48D7F0;
            public static int HOOK_DIRECT3D9__DEVICE = 0xAD773C;
            public static int HOOK_DIRECT3D9__DEVICE__OFFSETA = 0x27F8;
            public static int HOOK_DIRECT3D9__DEVICE__OFFSETB = 0xA8;
            public static int HOOK_CLNTOBJMGRGETACTIVEPLAYEROBJ = 0x34D0;
    Can anyone help me with this?
    Maybe the code I used in the dll needs changing. I found it on a previously lost USB Flash Drive that I found yesterday, so I have released the code.

    https://dl.dropbox.com/u/7923805/MMOwned/iHook.rar

    The code is old and fugly... but oh well.

    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  4. #4
    EvsonRARA's Avatar Member
    Reputation
    2
    Join Date
    Dec 2007
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Derp, sorry. EndScene works out using directx9 but I'm crashing on Hook.Apply(); now with the following error:
    Code:
    Could not write the specified bytes! 00000000 [6]
    It's unconventional to use ints when working with something that's truly unsigned but I beg you it's just a placeholder. I'm simply passing endscene and the corresponding offsets, which is the line it crashes on.
    Code:
    Hook.Apply((uint)GetEndscene(), (uint)Offsets.HOOK_CLNTOBJMGRGETACTIVEPLAYEROBJ, (uint)Offsets.HOOK_FRAMESCRIPT_EXECUTEBUFFER, (uint)Offsets.HOOK_FRAMESCRIPT__GETLOCALIZEDTEXT);
    Last edited by EvsonRARA; 11-06-2012 at 05:37 PM.

  5. #5
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by EvsonRARA View Post
    Derp, sorry. EndScene works out using directx9 but I'm crashing on Hook.Apply(); now with the following error:
    Code:
    Could not write the specified bytes! 00000000 [6]
    It's unconventional to use ints when working with something that's truly unsigned but I beg you it's just a placeholder. I'm simply passing endscene and the corresponding offsets, which is the line it crashes on.
    Code:
    Hook.Apply((uint)GetEndscene(), (uint)Offsets.HOOK_CLNTOBJMGRGETACTIVEPLAYEROBJ, (uint)Offsets.HOOK_FRAMESCRIPT_EXECUTEBUFFER, (uint)Offsets.HOOK_FRAMESCRIPT__GETLOCALIZEDTEXT);
    Your application and wow MUST be run as ADMIN
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  6. #6
    EvsonRARA's Avatar Member
    Reputation
    2
    Join Date
    Dec 2007
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    Your application and wow MUST be run as ADMIN
    Yup, WoW, VB 2012, and my application are running as administrator.

Similar Threads

  1. [Question] [Trinity Core Issue] Server start, issue getting it live. LF for 6.2.3 core, not RPck
    By Legionaccounteu in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 11-14-2016, 12:40 AM
  2. Issues getting own buffs
    By Calabazin in forum WoW Memory Editing
    Replies: 0
    Last Post: 01-01-2015, 11:36 AM
  3. Replies: 10
    Last Post: 12-11-2012, 01:51 PM
  4. Final Warning issued? Get it removed?
    By debiel in forum World of Warcraft Exploits
    Replies: 18
    Last Post: 07-30-2009, 06:02 AM
All times are GMT -5. The time now is 01:17 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search