Select Unit causes Fatal Error menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    haku43's Avatar Member
    Reputation
    3
    Join Date
    Sep 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Select Unit causes Fatal Error

    2 different approaches cause the same error:

    This application has encountered a critical error:

    ERROR #134 (0x85100086) Fatal Condition

    WoWBuild: 12340
    Code:
    //GGGameUI_Target  3.3.5 0x00524BF0
    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    public delegate void SelectUnitDelegate(ulong guid);
    public static SelectUnitDelegate SelectUnit;
    Code:
                uint codeCave = wow.AllocateMemory(0x108);
    
                wow.WriteUInt64(codeCave + 0x100, guid);
    
                wow.Asm.Clear();
                wow.Asm.AddLine("MOV EAX, [0x{0}]", (codeCave + 0x100 + 0x4).ToString("X"));
                wow.Asm.AddLine("PUSH EAX");
                wow.Asm.AddLine("MOV EAX, [0x{0}]", (codeCave + 0x100 + 0x0).ToString("X"));
                wow.Asm.AddLine("PUSH EAX");
                wow.Asm.AddLine("CALL 0x00524BF0");
                wow.Asm.AddLine("ADD esp, 0x08");
                wow.Asm.AddLine("RETN");
    
                wow.Asm.InjectAndExecute(codeCave);

    Select Unit causes Fatal Error
  2. #2
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rebase the address. It's relative to wow's base.

    This will also probably fail 50% of the time unless you are in wow's main thread.

  3. #3
    culino's Avatar Banned
    Reputation
    215
    Join Date
    Feb 2010
    Posts
    141
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He's using WoW 3.3.5, under normal conditions he don't have to rebase anything.

  4. #4
    haku43's Avatar Member
    Reputation
    3
    Join Date
    Sep 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I gave up, and use this method:

    Code:
    ProcessManager.Memory.SuspendThread();
    ProcessManager.Memory.WriteUInt64((uint)Pointers.WowLocalPlayer.LastTargetGUID,guid);
    ProcessManager.Memory.ResumeThread();
    ProcessManager.Player.TargetLastTarget();

  5. #5
    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)
    You don't really need to suspend thread for this kind of tasks

  6. #6
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It could potentially cause a race condition because he's writing 8 bytes, which is normally going to be two writes. His thread could be suspended in between the writes, then what happens if WoW tries to access that address?

Similar Threads

  1. 1>LINK : fatal error LNK1181: cannot open input file 'arcemu-world.lib' ???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 08-01-2008, 12:12 AM
  2. Fatal error in my sql dont want to lose files! HELP
    By J-Dizzle in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 07-26-2008, 09:06 PM
  3. Fatal error
    By Royalaty in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-29-2008, 08:09 AM
  4. Replies: 1
    Last Post: 03-06-2008, 05:41 PM
  5. Quest Creation ~ Fatal Error
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-24-2007, 02:30 AM
All times are GMT -5. The time now is 02:13 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