EnumVisibleObjects problem menu

Shout-Out

User Tag List

Page 3 of 8 FirstFirst 1234567 ... LastLast
Results 31 to 45 of 113
  1. #31
    skra's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'm only startig it when i'm ingame
    You need to ensure the device is the correct one
    can you give me a hint on how to do that?

    EnumVisibleObjects problem
  2. #32
    adaephon's Avatar Active Member
    Reputation
    76
    Join Date
    May 2009
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    Aha, you are using WPF, are you?
    In that case.. Doesn't WPF also use DirectX? Which means that WPF will also have its own EndScene that it's calling. That pretty much means that you might be calling the functions from the WPF EndScene call.
    You need to ensure the device is the correct one.
    Not necessarily, on Vista or 7, WPF uses Direct3D9Ex and creates an Ex device which I believe has separate EndScene method call, thus hooking would only hook WoW's device. Not 100% sure though.

  3. #33
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by skra View Post
    i'm only startig it when i'm ingame

    can you give me a hint on how to do that?
    Either you extract the pointer WPF uses, or you find the pointer WoW uses.

    Originally Posted by adaephon View Post
    Not necessarily, on Vista or 7, WPF uses Direct3D9Ex and creates an Ex device which I believe has separate EndScene method call, thus hooking would only hook WoW's device. Not 100% sure though.
    That is correct, but it needs to be fixed anyway for XP.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  4. #34
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Replace

    Code:
    IntPtr endSceneAddr = DirectX.GetEndScenePointer();
    with
    Code:
    IntPtr endSceneAddr = m.GetObjectVtableFunction(m.Read<IntPtr>(0x00C776B8, 0x397C), 42);
    than add to ObjectManager class:
    Code:
            private static ulong ActivePlayer
            {
                get { return GetActivePlayerDelegate(); }
            }
    
            public static bool IsInWorld
            {
                get { return ActivePlayer != 0; }
            }
    and replace:
    Code:
    ObjectManager.Pulse();
    with
    Code:
    if(ObjectManager.IsInWorld)
        ObjectManager.Pulse();
    and report back if it still crashing at 0x0047B95F.
    Last edited by TOM_RUS; 02-27-2010 at 08:36 AM.

  5. #35
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    Replace
    IntPtr endSceneAddr = DirectX.GetEndScenePointer();
    with
    IntPtr endSceneAddr = m.GetObjectVtableFunction(m.Read<IntPtr>(0x00C776B8, 0x397C), 42);
    Those will be the exact same addresses.
    Anyways, as TOM_RUS suggested, the device pointer is at [[0xC776B8] + 0x397C] - you can check the 'this' ptr against that to be sure it's WoW's device.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  6. #36
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    Aha, you are using WPF, are you?
    In that case.. Doesn't WPF also use DirectX? Which means that WPF will also have its own EndScene that it's calling. That pretty much means that you might be calling the functions from the WPF EndScene call.
    You need to ensure the device is the correct one.
    Same device iirc
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  7. #37
    !@^^@!'s Avatar Active Member
    Reputation
    23
    Join Date
    Feb 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How should he even be able to hook the WPF endscene? because he shouldn't be injecting a WPF window directly, but rather inject a lib and let that create instances of objectmanager and hooking endscene then create a thread to launch the injected WPF window in

  8. #38
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    Same device iirc
    Hmm? I don't think so. :O

    Originally Posted by !@^^@! View Post
    How should he even be able to hook the WPF endscene? because he shouldn't be injecting a WPF window directly, but rather inject a lib and let that create instances of objectmanager and hooking endscene then create a thread to launch the injected WPF window in
    WPF is still running in the same application domain as WoW's device is. That means they will both call the same EndScene function, with different 'this' parameters.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  9. #39
    !@^^@!'s Avatar Active Member
    Reputation
    23
    Join Date
    Feb 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah okay i wasn't aware of that... but i wonder if that might be what causes my WPF window to crash wow when i resize it...

  10. #40
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by !@^^@! View Post
    Ah okay i wasn't aware of that... but i wonder if that might be what causes my WPF window to crash wow when i resize it...
    Then Robske might be right that it's the same device.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  11. #41
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by !@^^@! View Post
    Ah okay i wasn't aware of that... but i wonder if that might be what causes my WPF window to crash wow when i resize it...
    That is not caused by WPF. In all likelyhood you aren't managing your resources properly. Look into OnLostDevice & OnResetDevice.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  12. #42
    skra's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    and report back if it still crashing at 0x0047B95F.
    well it isnt crashing anymore ^^ ActivePlayer is 0 =/
    Last edited by skra; 02-27-2010 at 09:59 AM.

  13. #43
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As MaiN somewhat pointed out, certain elements of WPF will use DirectX directly. So you'll need to filter out the calls. You'll have EndScene being called from 2 different devices, but using the same function. (That's how vfuncs work!) You'll need to grab WoW's EndScene pointer first (easiest way is to check the current thread ID against WoW's main thread. Your GUI shouldn't be running off WoW's main thread anyway). If it's WoW's device, do all your bot logic. Otherwise, just let it pass through, as it's WPF rendering its controls.

  14. #44
    skra's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks apoc i'll try that now
    Last edited by skra; 02-27-2010 at 05:12 PM.

  15. #45
    skra's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'ts probably a stupid question but how do i determine which one the mainthread is?

Page 3 of 8 FirstFirst 1234567 ... LastLast

Similar Threads

  1. Problem with CE.
    By Eldretch in forum World of Warcraft General
    Replies: 1
    Last Post: 08-08-2006, 06:49 PM
  2. realm list problem
    By robtuner in forum World of Warcraft General
    Replies: 2
    Last Post: 07-21-2006, 09:08 AM
  3. I have problem with BHW 3.0
    By sunrize1 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-17-2006, 08:49 AM
  4. wow emu problem
    By bezike in forum World of Warcraft General
    Replies: 0
    Last Post: 07-09-2006, 04:45 PM
  5. Site problems
    By Shanaar in forum Community Chat
    Replies: 10
    Last Post: 05-14-2006, 01:15 AM
All times are GMT -5. The time now is 01:44 PM. 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