Injected DoString problems menu

User Tag List

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

    Injected DoString problems

    I've searched through the forum here to try to find out what I've done wrong, but can't figure it out. I've looked at several examples, such as WoWXFramework, Apoc's Lua wrapper, and briefly at cleanCore. I've injected a DLL and have Endscene pulsing my function every frame (so I assume that confirms I'm in the main thread). From this pulse, I'm trying to call a very simplified version of DoString, since none of the examples including return values are working for me.

    Code:
    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
            public delegate void DoStringDele(string lua, string fileName, uint pState);
            public static DoStringDele _do = null;
    
    public static void Pulse()
            {
                Process.EnterDebugMode();
                MemoryOpen();
                if (_do == null)
                {
    MessageBox.Show("Handler nulll. Registering Delegate");
                    _do = Helper.Magic.RegisterDelegate<DoStringDele>(Helper.WoWBase + 0x3AE6A0);
                }
                _do("DoEmote(\"dance\")", "Fake.lua", 0);
            }
    The code isn't really doing anything. I know it's being run, because the messagebox will show once only, even though it continues to pulse through endscene. My character doesn't dance, or anything. What am I doing wrong here?

    Injected DoString problems
  2. #2
    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)
    I think your offset is wrong.
    Code:
    FrameScript_ExecuteBuffer       = 0x007ACB50, // not rebased

  3. #3
    weber7655's Avatar Member
    Reputation
    6
    Join Date
    Sep 2009
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It works! I didn't realize that ExecuteBuffer was the correct function - I had just been using Execute. Thanks!

Similar Threads

  1. Replies: 11
    Last Post: 12-23-2010, 09:30 PM
  2. Help getting 3.3.0 Invincible? And problems with cataclysm model injection.
    By random101 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 07-25-2010, 08:49 AM
  3. M2-OBJ injecting problem
    By s3ph1roth in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-21-2009, 12:09 PM
  4. DLL Injection Problems
    By lanman92 in forum Programming
    Replies: 4
    Last Post: 06-18-2009, 11:24 PM
  5. Injecting ASM problems
    By lanman92 in forum WoW Memory Editing
    Replies: 33
    Last Post: 03-16-2009, 06:46 AM
All times are GMT -5. The time now is 07:00 AM. 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