Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


codepage

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Sat Sep 21, 2019 7:22 pm    Post subject: codepage Reply with quote

The character of the game should be checked by ce's codepage to display correctly. Now I want to use lua's writestring command to write the codepage characters. What command should I use to convert? The conversion between utf8 and ansic is also garbled, please help me.

Code:

globalalloc(msg,128)
globalalloc(string,1024)
createthread(msg)

{$lua}
writestring('string','你好')  ––Here I like to be a codepage character
{$asm}

msg:
push 0
push string
push 99
push 31
call 400356
add esp,14
ret
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sat Sep 21, 2019 11:36 pm    Post subject: Reply with quote

utf8ToAnsi or ansiToUtf8 depending

or if it uses widestring writeString(addeess,string,true)

_________________
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
View user's profile Send private message MSN Messenger
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Sat Sep 21, 2019 11:44 pm    Post subject: Reply with quote

utf8ToAnsi或ansiToUtf 8取决于

,如果它使用widestring writeString(addeess,string,true)



My English is not very good, so I can't understand what you mean. Can you modify and post it from my code? :oops:[/quote]
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sat Sep 21, 2019 11:48 pm    Post subject: Reply with quote

instead of lua try

Code:

string:
dw '你好'

_________________
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
View user's profile Send private message MSN Messenger
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Sun Sep 22, 2019 1:23 am    Post subject: Reply with quote

Dark Byte wrote:
instead of lua try

Code:

string:
dw '你好'



OK,thank
Back to top
View user's profile Send private message
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Mon Sep 23, 2019 6:28 am    Post subject: Reply with quote

[quote="yazigegeda"]
Dark Byte wrote:
instead of lua try

Code:

string:
dw '你好'



This will not work,



1.png
 Description:
 Filesize:  77.63 KB
 Viewed:  4278 Time(s)

1.png


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites