|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Megaladon Newbie cheater Reputation: 0
Joined: 27 Jun 2013 Posts: 11 Location: Russian Federation
|
Posted: Wed Jul 03, 2013 12:35 pm Post subject: function ReadString() problemmy working with Cyrillic Ansi. |
|
|
Hello, I'm from Russia. Speak English poorly. So forgive me treat leniently, if there are errors in grammar and bad, and the transfer of meaning.
For translation use ...translate.google.ru
Dark Byte, I congratulate you on recent birthday.
And so, I have the following problems with the function of readString().
When you search for text in the main table Cheat Engine(6.3), the text in Cyrillic is displayed correctly, but if we assume that the text in the script Code: | text = readString (textadr, 76)
print (text)
|
the numbers and Latin are displayed correctly. Cyrillic displayed not correctly, as question marks ??????????? "
I can not insert an image, writes: "Sorry, but you can't post url's yet"
http_//pixs.ru/showimage/Text003bmp_5706167_8367398.jpg
in main.lua found this entry:
Code: | ansiToUtf8(string): Converts a string in Ansi encoding to UTF8
utf8ToAnsi(string): Converts a string in UTF8 encoding to Ansi
Note: GUI components mainly show in UTF8, some other functions use Ansi, try to find out which ones... |
but success is not achieved, all the same issues ????? instead of Cyrillic.
Code: |
function onTimer(senderTimer)
text = readString(textadr, 16, true)
--[[tried several options, the result is always the same
1. text = readString(textadr, 16, true)
2. text = readString(textadr, 16, false)
3. text = readString(textadr, 16)]]
ansiToUtf8(text)
control_setCaption(label2, "считанный текст : "..text) -- "read the text:"
end
MyForm = createForm()
label1 = createLabel(MyForm)
label2 = createLabel(MyForm)
control_setCaption(MyForm, "My First Lua ")
control_setCaption(label1, "Пример считанного текста из памяти процесса ") -- "Example text from the read process memory"
control_setCaption(label2, "Тут будет то что СЕ считает из памяти...") -- "Here is what CheatEngine thinks of memory ..."
control_setPosition(label1, 10, 5)
control_setPosition(label2, 10, 30)
timer = createTimer(MyForm)
timer_setInterval(timer, 2000)
timer_onTimer(timer, onTimer)
-------- offsets text ----------------------------
status = readInteger(0x1073D248)
textadr2 = status + 0x10E1B8
textadr1 = readInteger(textadr2)
textadr = textadr1 + 0
|
the generated code provides:
Code: |
Пример считанного текста из памяти процесса
считанный текст : ???????
|
I'm guessing that the problems with the code page, ansiToUtf8 (string): why then, does not translate the contents of a variable in Unicode...
In advance I thank everyone who responded. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Wed Jul 03, 2013 12:56 pm Post subject: |
|
|
according to the add address window it should be "readString(textadr, 16)"
besides that I have no idea
usually ansiToUtf8 does something, but I can't really test this _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Gniarf Grandmaster Cheater Supreme Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Wed Jul 03, 2013 4:20 pm Post subject: |
|
|
On my end this combination displays the text correctly:
Code: | local text = ansiToUtf8(readString(textadr, 16,false))
control_setCaption(label2, "считанный текст : "..text) | Using cheat engine 6.3 (your screenshot shows CE 6.2).
EntitiesMP.dll....Serious sam? |
|
Back to top |
|
|
Megaladon Newbie cheater Reputation: 0
Joined: 27 Jun 2013 Posts: 11 Location: Russian Federation
|
Posted: Wed Jul 03, 2013 9:11 pm Post subject: |
|
|
Thank you very much, I initially thought that I had an error in the syntax.
And so it proved.
I used CheatEngine6.2 but after the failure, has updated to version 6.3 may be expecting that at version 6.2 ansiToUtf8 no support
Gniarf wrote: | Code: | local text = ansiToUtf8(readString(textadr, 16,false))
control_setCaption(label2, "считанный текст : "..text) |
|
with your example, it worked |
|
Back to top |
|
|
MadSnake Newbie cheater Reputation: 0
Joined: 06 Aug 2013 Posts: 13
|
Posted: Sun Aug 11, 2013 8:18 am Post subject: |
|
|
I have a similar problem
In my test in the trainer i made the characters with á é ã displays like ?
In portuguese lots of words have those `´~ symbols
What i can do to fix that to show my phrases correct? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|