[Help] TraceLine crashes Wow menu

User Tag List

Results 1 to 7 of 7
  1. #1
    unbekannter2's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] TraceLine crashes Wow

    Hello,
    i just implemented Traceline(CGWorldFrame__Intersect) into my Gatherbot. But everytime i call the function wow crashes. I am calling it from an EndScene hook which works well. Also Framescript_Execute is working with no problems. I cant find the mistake in my code.
    Here are some snippets :

    Code:
    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    private delegate byte TracelineDelegate(ref wowPoint end, ref wowPoint start, ref wowPoint result, ref float distance, uint flags, ref uint Optional);
    private static TracelineDelegate WoWTraceLine;
    Code:
    WoWTraceLine = m.RegisterDelegate<TracelineDelegate>(wowGatherMainClass.wowBase + 0x289790);
    Code:
    private static byte LineOfSight(wowPoint pStart, wowPoint pEnd)
    {
    wowPoint start = pStart;
    wowPoint end = pEnd;
    wowPoint result;
    result.x = 0f;
    result.y = 0f;
    result.z = 0f;
    float distance = 1.0f;
    uint dummy = 0;
    return WoWTraceLine(ref end, ref start, ref result, ref distance, 0x100011, ref dummy);
    }
    Hope somebody can help me
    Last edited by unbekannter2; 02-15-2011 at 07:20 AM.

    [Help] TraceLine crashes Wow
  2. #2
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    crash dump?

  3. #3
    unbekannter2's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    ERROR #132 (0x85100084) Fatal Exception
    Program:	D:\World of Warcraft\World of Warcraft\WoW.exe
    Exception:	0xC0000005 (ACCESS_VIOLATION) at 0023:431A851A
    
    The instruction at "0x431A851A" referenced memory at "0x431A851A".
    The memory could not be "read".
    For testing i started calling the function every 100th frame. Seems to work 5-10 times and then crashes.

  4. #4
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well the only difference i can see between your code and mine, is that i pass the last pram by value, not reference. Also, a crash dump like that does not help without knowing the location of wow module. If you know the base you can check to see were the exception is being thrown (if its in the wow module).
    Last edited by jjaa; 02-15-2011 at 07:52 AM.

  5. #5
    unbekannter2's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really crazy, but passing the last parameter by value not ref makes it work 100%!!!

    Thank you very much jjaa

  6. #6
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That surprises you? When you marshal data wrong, bad things happen.

    BTW, TraceLine itself is incredibly stable; I call it nearly every frame for hours on end with no stability issues.
    Don't believe everything you think.

  7. #7
    4b2's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    traceline again and again. ohh noes-

    Hey folks, first of all i have to say I HATE C#. lol

    I am trying to call Tracline from out of process.
    I'm creating a Remotethread which calls traceline.
    Works properly well, but after some time its crashing.
    After some debugging i thought, that the error came due to some parallel calls from the engine. So i hooked traceline and checked for this( i got the same error in my cod hacks, i wanted to call some engine funcs from d3d. solved it with some thread interlock stuff. )

    I still get this referenced memory shit error. I dont know the actual function offset. but it was a function which is called by traceline.

    I am fkn disappointed. May some of you knows why this happens.

    Here is some code from my call(executed in remotethread):
    PHP Code:
                byte[] functionbytes = { 0x56,                   //push    esi
                                         
    0x8B0x740x240x08//mov     esi, [esp+8]
                                         
    0x8B,0x4E,0x28,         //mov     ecx, [esi+28h]
                                         
    0x8B0x460x30,       //mov     eax, [esi+30h]
                                         
    0x6A0x00,             //push    0
                                         
    0x51,                   //push    ecx
                                         
    0x8D0x560x24,       //lea     edx, [esi+24h]
                                         
    0x52,                   //push    edx
                                         
    0x8D,0x4E,0x18,         //lea     ecx, [esi+18h]
                                         
    0x51,                   //push    ecx
                                         
    0x8D0x560x0C,       //lea     edx, [esi+0Ch]
                                         
    0x52,                   //push    edx
                                         
    0x56,                   //push    esi
                                         
    0xFF0xD0,             //call    eax
                                         
    0x0F0xB60xC0,       //movzx   eax, al
                                         
    0x890x460x34,       //mov     [esi+34h], eax
                                         
    0xB80x010x000x000x00// mov     eax, 1
                                         
    0x5E,                   //pop     esi
                                         
    0x830xC40x18,       //add     esp, 18h
                                         
    0xC20x040x00        //retn    4
                
    }; 
    PHP Code:
    Struct:
    D3DXVECTOR3 pos1;
    D3DXVECTOR3 pos2;
    D3DXVECTOR3 pos3;
    float distance;
    unsigned int flags;
    DWORD zero;
    DWORD dwWorldframeIntersect
    Last edited by 4b2; 02-17-2011 at 07:41 AM.

Similar Threads

  1. Replies: 11
    Last Post: 05-12-2014, 04:52 AM
  2. (3.3.5) TraceLine causes WoW to hang... need help!
    By haku43 in forum WoW Memory Editing
    Replies: 5
    Last Post: 04-10-2011, 05:10 AM
  3. [Question] Crashing WoW, need help fixing it
    By Breakdawn in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 05-24-2010, 03:54 PM
  4. [Question] MEfix crashing wow still? Help please
    By ravner298 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 10-11-2007, 04:58 PM
  5. Help with a WOW movie.
    By Sh4d0w in forum World of Warcraft General
    Replies: 6
    Last Post: 12-08-2006, 12:08 AM
All times are GMT -5. The time now is 07:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search