Results 1 to 3 of 3
  1. #1
    Corporal weber7655's Avatar
    Reputation
    6
    Join Date
    Sep 2009
    Posts
    18
    Thanks (Given)
    0
    Thanks (Received)
    0
    CoreCoins
    0
    Trade Feedback
    0 (0%)

    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?

  2. #2
    Legendary CoreCoins User TOM_RUS's Avatar
    Reputation
    833
    Join Date
    May 2008
    Location
    Here
    Posts
    699
    Thanks (Given)
    0
    Thanks (Received)
    22
    CoreCoins
    4391
    Trade Feedback
    0 (0%)
    I think your offset is wrong.
    Code:
    FrameScript_ExecuteBuffer       = 0x007ACB50, // not rebased

  3. #3
    Corporal weber7655's Avatar
    Reputation
    6
    Join Date
    Sep 2009
    Posts
    18
    Thanks (Given)
    0
    Thanks (Received)
    0
    CoreCoins
    0
    Trade Feedback
    0 (0%)
    It works! I didn't realize that ExecuteBuffer was the correct function - I had just been using Execute. Thanks!

 

 
All times are GMT -5. The time now is 06:56 AM. Powered by vBulletin® Version 4.2.2
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search