[Question]chatlog problem menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    oHa's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question]chatlog problem

    Hey, i just tried to read the chatlog and i just get some crazy text

    Code:
              
    BlackMagic WoW = new BlackMagic();
    WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow.exe"));
               
    for (uint i = 0; i < 60; i++)
    {
    string Chat = WoW.ReadASCIIString(0x00B0E990 + i * 0x17C0, 255);
    list1.Items.Add(Chat);
    }


    hope for some help :|

    greetings

    [Question]chatlog problem
  2. #2
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I'm not totally wrong WoW uses unicode, so reading the chat as ascii chars will ofcourse make no sens at all.
    I hacked 127.0.0.1

  3. #3
    zutto's Avatar Active Member
    Reputation
    39
    Join Date
    Aug 2007
    Posts
    210
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
              
    BlackMagic WoW = new BlackMagic();
    WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow.exe"));
               
    for (uint i = 0; i < 60; i++)
    {
    string Chat = WoW.ReadASCIIString((0x00B0E9CC + (0x17C0 * i)), 255); // <-- see what i did thar?
    list1.Items.Add(Chat);
    }
    drugs are baad kids.. m'kay.

  4. #4
    oHa's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zutto View Post
    Code:
              
    BlackMagic WoW = new BlackMagic();
    WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow.exe"));
               
    for (uint i = 0; i < 60; i++)
    {
    string Chat = WoW.ReadASCIIString((0x00B0E9CC + (0x17C0 * i)), 255); // <-- see what i did thar?
    list1.Items.Add(Chat);
    }
    oh god damned thanks.. works just fine!

  5. #5
    !@^^@!'s Avatar Active Member
    Reputation
    23
    Join Date
    Feb 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zutto View Post
    Code:
              
    BlackMagic WoW = new BlackMagic();
    WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow.exe"));
               
    for (uint i = 0; i < 60; i++)
    {
    string Chat = WoW.ReadASCIIString((0x00B0E9CC + (0x17C0 * i)), 255); // <-- see what i did thar?
    list1.Items.Add(Chat);
    }
    c# doesn't respect the hierarchical laws in math? 0.o

  6. #6
    RedArray's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by !@^^@! View Post
    c# doesn't respect the hierarchical laws in math? 0.o
    It does. That's not the significant change he made.

  7. #7
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xarg0 View Post
    If I'm not totally wrong WoW uses unicode, so reading the chat as ascii chars will ofcourse make no sens at all.
    That's where things get confusing. "Unicode" is a very broad term. What you mean is that WoW uses UTF-8, which is backwards compatible with ASCII. On the other hand, when the term "Unicode" is used in a Windows-based context it usually implies UTF-16, because that's the encoding that Windows uses internally for all its strings.

    I typically use the terms "narrow" and "wide" to differentiate between the two, but that's mainly because I come from a C++ background where there are only two character and string types, and their encodings are implementation defined.*

    So, when you're reading strings from WoW you'll generally be reading them as "ASCII" (at least as far as most APIs are concerned), despite the fact that they are technically UTF-8 encoded Unicode strings.

    * This will be changing in C++0x where we will finally get character types which specify their encoding (char16_t, char32_t).

  8. #8
    bolototo's Avatar Banned
    Reputation
    0
    Join Date
    May 2009
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $ChatBufferStart = 0x00B0E990
    $NextMessage = 0x17C0
    $Compteurchat=0xB67F24

    $compteur=_MEMORYREAD($Compteurchat,$process,"dword") -1

    $buffer=_MEMORYREAD($ChatBufferStart+($compteur*$NextMessage)+0x3C,$process,"cha r[500]"))

  9. #9
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    That's where things get confusing. "Unicode" is a very broad term. What you mean is that WoW uses UTF-8, which is backwards compatible with ASCII. On the other hand, when the term "Unicode" is used in a Windows-based context it usually implies UTF-16, because that's the encoding that Windows uses internally for all its strings.

    I typically use the terms "narrow" and "wide" to differentiate between the two, but that's mainly because I come from a C++ background where there are only two character and string types, and their encodings are implementation defined.*

    So, when you're reading strings from WoW you'll generally be reading them as "ASCII" (at least as far as most APIs are concerned), despite the fact that they are technically UTF-8 encoded Unicode strings.

    * This will be changing in C++0x where we will finally get character types which specify their encoding (char16_t, char32_t).
    but it's always a good idea to read the chars in right size, because depending on the locale you'll need wide chars, for example in the russian version wow you'll face cyrillic script, wich is not supported in the ascii world.
    I didn't knew that utf-8 was backward compatible, so thanks for clearing that up.
    I hacked 127.0.0.1

  10. #10
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xarg0 View Post
    but it's always a good idea to read the chars in right size, because depending on the locale you'll need wide chars, for example in the russian version wow you'll face cyrillic script, wich is not supported in the ascii world.
    I didn't knew that utf-8 was backward compatible, so thanks for clearing that up.
    Huh? What are you talking about? Reread what I said. I said you are reading them as ASCII "as far as the APIs are concerned", as most people still label their APIs incorrectly as ASCII rather than UTF-8.
    Last edited by Cypher; 03-22-2010 at 10:56 AM.

  11. Thanks Fufavu (1 members gave Thanks to Cypher for this useful post)

Similar Threads

  1. [Question] Having problems with the fix(23)
    By Jo_Vo in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 11-26-2007, 08:06 AM
  2. [Question] Particle problem
    By untamed88 in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 10-29-2007, 03:36 AM
  3. [problem/question] noggit problem
    By Ermok in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-24-2007, 10:06 AM
  4. [Question] NoggIt Problem
    By Hiselor in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-10-2007, 04:25 AM
  5. [Question] Noggit problem
    By memech in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 10-06-2007, 04:43 AM
All times are GMT -5. The time now is 06:46 AM. 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