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
    803
    Join Date
    May 2008
    Location
    Here
    Posts
    689
    Thanks (Given)
    0
    Thanks (Received)
    12
    CoreCoins
    4341
    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!

 

 

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 05:54 AM. Powered by vBulletin® Version 4.2.2
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved. Feedback Buttons provided by Advanced Post Thanks / Like v3.3.2 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search