Write in memory special char menu

User Tag List

Results 1 to 6 of 6
  1. #1
    RivaLfr's Avatar Contributor CoreCoins Purchaser Authenticator enabled
    Reputation
    221
    Join Date
    Sep 2010
    Posts
    258
    Thanks G/R
    2/25
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Write in memory special char

    Hi,

    I have an problem, I use lua (for reloger) and if the player name use an special char I have an lua error.

    I have try much possibility, and this not work all time

    Sample:
    Memory.Memory.MyHook.Memory.WriteBytes(DoStringArg_Codecave, Encoding.UTF8.GetBytes(command));

    If you have any ideas.

    Thank

    ---------- Post added at 05:46 AM ---------- Previous post was at 05:02 AM ----------

    I have find an solution:

    Code:
                string t = "";
                foreach (var b in Encoding.UTF8.GetBytes("häràk"))
                {
                    if (t != "")
                        t = t + ", ";
                    t = t + Convert.ToInt32(b);
                }
                string playerName = "string.char(" + t + ")";
    
               Lua.LuaDoString("print(" + playerName  + ");");
    
    // playerName == string.char(72, 195, 164, 114, 195, 160, 107) == häràk
    Last edited by RivaLfr; 05-07-2011 at 05:28 AM.

    Write in memory special char
  2. #2
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It should work just fine with Encoding.UTF8.GetBytes.

    Btw, it returns { 104, 195, 164, 114, 195, 160, 107 } for your string.

    h = 104
    H = 72

    Are you in-process? How do you call Lua_DoString?

    Also, all strings should ends with 0x00.
    Last edited by TOM_RUS; 05-07-2011 at 08:04 AM.

  3. #3
    zys924's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2009
    Posts
    113
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pay attention to the EOF '\0', GetBytes() will not give you this key trail.

  4. #4
    Neffarian's Avatar Member
    Reputation
    -5
    Join Date
    Sep 2006
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Rival, dont you have to process the byte of each char then store it, or does that func readbites of the whole stringset?

  5. #5
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Neffarian, are u related to wowgremlin ?

  6. #6
    RivaLfr's Avatar Contributor CoreCoins Purchaser Authenticator enabled
    Reputation
    221
    Join Date
    Sep 2010
    Posts
    258
    Thanks G/R
    2/25
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply.

    I am in-process and I call luadostring with asm code (hook).

    I have only an lua error if I use
    Code:
    if string.lower(GetCharacterInfo(i)) == string.lower("häràk") then ...
    if I use
    Code:
    Print("häràk")
    this work, is strange but with
    Code:
    string.char
    this work all time.

Similar Threads

  1. Writing to memory doesn't change the value
    By mathix in forum WoW Memory Editing
    Replies: 10
    Last Post: 04-18-2015, 07:18 AM
  2. Need help reading Memory, Writing too memory
    By Neer in forum Programming
    Replies: 0
    Last Post: 08-17-2009, 12:11 PM
  3. [3.1.1] Movement with simple memory writes
    By barthen in forum WoW Memory Editing
    Replies: 65
    Last Post: 07-04-2009, 04:26 PM
  4. Request: More Info about Memory Writing
    By Lindoz12 in forum WoW Memory Editing
    Replies: 12
    Last Post: 04-18-2008, 11:58 AM
All times are GMT -5. The time now is 02:23 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