how to get player  tradition chinese name menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    j121780im's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to get player tradition chinese name

    i use Black_Magic.dll to get the player name , but it only display English font, that's ok.
    in tradition chinese font, it will output messy code..

    i try
    Code:
    curName = wow.ReadASCIIString(pCurName, 100);
    alter
    Code:
    curName = wow.ReadUnicodeString(pCurName, 100);
    but ...still same.

    someone have any solution ?

    this's problem confuse me a long. :confused:

    how to get player  tradition chinese name
  2. #2
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    read the raw hex and convert it to the encoding that is used on chineese computers

  3. #3
    Bobbysing's Avatar Member
    Reputation
    192
    Join Date
    Jan 2009
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WoW represents strings as UTF-8 ( read the Wikipedia article about it ), you have to convert it first. You can still use your "ReadASCIIString" function as UTF-8 characters are never 0 within a string.

  4. #4
    j121780im's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, use ReadASCIIString read "TEST Ship"
    ascii is
    Code:
    84,69,83,84,32,83,104,105,112,
    but, use ReadASCIIString read some chinese
    Code:
    63,63,63,63,63,63,
    i can't convert to utf8 that can't read all .

    because i use Magic.dll , i can't rewritten some fuction
    i try all read function , then convert to byte see the Decimal.
    it still not completed.

    but i try other MemoryRead source , then add a fuction.
    it's working ! can read real chinese string.
    Code:
         public string Utf8String(IntPtr MemoryAddress, uint Len)
            {
                byte[] temp = ReadProcessMemory(MemoryAddress, Len);
                return Encoding.UTF8.GetString(temp); 
            }
    but, i like Magic.dll than MemoryRead , someone has better solution ?. or better read memory source. (i know this website has many .dll )

    thanks !

  5. #5
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Correct me of I'm wrong, but I think shynd released the sourcecode and project files for his BlackMagic library, adding a your method should be easy enough
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  6. #6
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    public string ReadUTF8String(IntPtr hProcess, uint Address, int Length)
    {
        byte[] buffer = SMemory.ReadBytes(hProcess, Address, Length);
        return Encoding.UTF8.GetString(buffer);
    }
    And then call it like string asdf = ReadUTF8String(blackmagic.ProcessHandle, 0x12345678, 20); where blackmagic is the name of your BlackMagic class object.

  7. #7
    j121780im's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    excuse , have blackmagic support read byte[] function ?..
    i only have .dll file , i find't it
    how get blackmagic source code ?

    i need learn more.. ~"~

  8. #8
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    either you decompile it, or you search around on gd and here for the link.
    EDIT: here it is BlackMagic
    Last edited by Nesox; 01-16-2009 at 03:59 AM.

  9. #9
    j121780im's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok,~ i add utf8 function
    Code:
      public static string ReadUtf8String(IntPtr hProcess, uint dwAddress, int nLength)
            {
                IntPtr lpBuffer = IntPtr.Zero;
                byte[] buf = ReadBytes(hProcess, dwAddress, nLength);
                if (buf == null)
                    throw new Exception("ReadByte failed.");
    
    
                return Encoding.UTF8.GetString(byteTrim(buf));
            }
    
            private static byte[] byteTrim(byte[] buf)
            {
                int byteCounter = 0;
                for (int i = 0; i < buf.Length; i++)
                {
                    if (buf[i] != 0)
                    {
                        byteCounter++;
                    }
                    else
                    {
                        break;
                    }
                }
    
                byte[] readStrByte = new byte[byteCounter];
                for (int i = 0; i < readStrByte.Length; i++)
                {
                    readStrByte[i] = buf[i];
                }
    
                return readStrByte;

    i appreciate you ! ^^
    Last edited by j121780im; 01-16-2009 at 07:06 AM.

Similar Threads

  1. [Bot] how can i get player name?
    By bisfs in forum WoW Memory Editing
    Replies: 7
    Last Post: 08-08-2014, 02:52 AM
  2. Replies: 32
    Last Post: 07-15-2010, 01:09 PM
  3. [Help] How to get player map id ?
    By rat50 in forum WoW Memory Editing
    Replies: 11
    Last Post: 04-20-2009, 09:32 AM
  4. How to get Player's Class?
    By luciferc in forum WoW Memory Editing
    Replies: 6
    Last Post: 03-28-2009, 12:04 PM
All times are GMT -5. The time now is 01:59 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search