wotlk 3.3.5a GetLocalizedText error menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Sye24's Avatar Member
    Reputation
    1
    Join Date
    Apr 2021
    Posts
    6
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    wotlk 3.3.5a GetLocalizedText error

    Hello,

    for some reason GetLocalizedText doesnt work on the AccountLoginUI or char screen, i am able to read ingame but not outside of game. any idea's?

    Code:
    public static string GetLocalizedText(string Command)
            {
    
                uint Lua_GetLocalizedText_Space = Main.myHook.Memory.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);
                Main.myHook.Memory.WriteBytes(Lua_GetLocalizedText_Space, Encoding.UTF8.GetBytes(Command));
    
                String[] asm = new String[]
                {
                    "call " + Offsets.GetActivePlayerObject,
                    "mov ecx, eax",
                    "push -1",
                    "mov edx, " + Lua_GetLocalizedText_Space + "",
                    "push edx",
                    "call " + Offsets.GetLocalizedText,
                    "retn",
                };
                string Variable = Encoding.ASCII.GetString(Main.myHook.InjectAndExecute(Randomizer.RandomizeASM(asm)));
                Main.myHook.Memory.FreeMemory(Lua_GetLocalizedText_Space);
                return Variable;
            }

    wotlk 3.3.5a GetLocalizedText error
  2. #2
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    Use GetText instead of GetLocalizedText. The only difference is that the latter returns male and female variations of the string for the unit it is provided. The former does not take a unit argument so it can be used while you are not in-game.
    Make sure you search before making new threads.

  3. #3
    Sye24's Avatar Member
    Reputation
    1
    Join Date
    Apr 2021
    Posts
    6
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    Make sure you search before making new threads.
    Hello,
    thanks for your replay, i didnt know there was a male / female variations in a string. thats really interesting.. i tried to get GetText to work last night but i dont understand my mistake. i am new to memory editing / assembly. Can you have a look at the code i am using and point me at the right way to get it working?


    This is the code, Thank you for your help

    public static string GetText(string command)
    {
    uint codeCave = Main.myHook.Memory.AllocateMemory(Encoding.UTF8.GetBytes(command).Length + 1);
    Main.myHook.Memory.WriteBytes(codeCave, Encoding.UTF8.GetBytes(command));
    String[] asm = new String[]
    {
    "push 0",
    "push -1",
    "mov edx, " + codeCave,
    "push edx",
    "call " + (0x819d40 + (uint)Main.myHook.Memory.MainModule.BaseAddress),
    "add esp, 0Ch",
    "retn"
    };
    string Text = Encoding.ASCII.GetString(Main.myHook.InjectAndExecute(asm));
    Main.myHook.Memory.FreeMemory(codeCave);
    return Text;
    }

Similar Threads

  1. WOTLK 3.3.5a PQRotation + profiles
    By 0kill in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 02-26-2015, 04:06 AM
  2. [DBC Edit] [wotlk 3.3.5a spell swap] effect from gnomish-x-ray to other spell
    By cwel in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 03-15-2013, 01:38 PM
  3. [Trinity] Hollywood WotLK 3.3.5a
    By Moffeman in forum WoW Emulator Server Listings
    Replies: 3
    Last Post: 08-06-2011, 03:04 AM
  4. [Question] cataclysm model to wotlk 3.3.5a (12340)
    By equertez in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-04-2011, 11:57 AM
  5. [Help] Trying to set up WOTLK 3.02 8885, but errors.
    By foxtrot08 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 09-23-2008, 11:18 PM
All times are GMT -5. The time now is 05:17 PM. 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