Results 1 to 3 of 3
  1. #1
    Corporal
    Reputation
    6
    Join Date
    Sep 2009
    Posts
    18
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)

    Injected DoString problems



    Donate to Remove Ads, Get ShoutBawx - Elite Forum Access
    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


    Reputation
    724
    Join Date
    May 2008
    Location
    Here
    Posts
    644
    CoreCoins
    4281

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    I think your offset is wrong.
    Code:
    FrameScript_ExecuteBuffer       = 0x007ACB50, // not rebased

  3. #3
    Corporal
    Reputation
    6
    Join Date
    Sep 2009
    Posts
    18
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    It works! I didn't realize that ExecuteBuffer was the correct function - I had just been using Execute. Thanks!

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 07:11 PM. Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search