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 


How to convert unicode to string in CE?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat May 07, 2016 5:00 pm    Post subject: How to convert unicode to string in CE? Reply with quote

How to convert unicode to string in CE? I have googled a lot and still couldn't get it. Sad I couldn't even find the "unicode" checkbox mentioned by Penguin in another post. So frustrated... Sad(
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sat May 07, 2016 5:15 pm    Post subject: Reply with quote

Unicode is a type of string. The "Unicode" checkbox is literally right next to the "Scan Type" and "Value Type" combo boxes when searching for a string and again right next to the "Length" field when changing an address's value type in the address list to "Text". It should be nearly impossible to miss it. Would a picture help?

What do you want to do with that string?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat May 07, 2016 5:33 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Unicode is a type of string. The "Unicode" checkbox is literally right next to the "Scan Type" and "Value Type" combo boxes when searching for a string and again right next to the "Length" field when changing an address's value type in the address list to "Text". It should be nearly impossible to miss it. Would a picture help?

What do you want to do with that string?


I found it, thanks Penguin.

For example, I know the unicode of a character, "9673" in hex, which represents a character in a language other than English, and I want to show that character on my trainer, such as the name of an item. What should I do? Can Lua do the conversion?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sat May 07, 2016 6:39 pm    Post subject: Reply with quote

I don't know of any way to make a trainer in CE using UTF-16.

If it's something simple like showing a message box, then you could call MessageBoxW using asm. If you're planning on converting all the strings in your trainer, then you'd be better off programming it in another language entirely separate from CE.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat May 07, 2016 7:03 pm    Post subject: Reply with quote

ParkourPenguin wrote:
I don't know of any way to make a trainer in CE using UTF-16.

If it's something simple like showing a message box, then you could call MessageBoxW using asm. If you're planning on converting all the strings in your trainer, then you'd be better off programming it in another language entirely separate from CE.


Yea, I think you are right. I should use C\C++, unfortunately. Sad
Is it possible to make a trainer interact with C or C++ program?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sat May 07, 2016 7:09 pm    Post subject: Reply with quote

"Interact" is a very broad term, but yes, there are several ways two processes can interact with each other (e.g. WriteProcessMemory).
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat May 07, 2016 7:11 pm    Post subject: Reply with quote

ParkourPenguin wrote:
"Interact" is a very broad term, but yes, there are several ways two processes can interact with each other (e.g. WriteProcessMemory).


Sorry for the inaccurate word. Actually I meant "using C functions in Lua", within the realm of CE of course. Is it doable? I couldn't find information about this issue.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sat May 07, 2016 7:22 pm    Post subject: Reply with quote

I'm not sure. I've only briefly touched on Lua's interaction with C.

I found some links that might be useful:
http://www.lua.org/pil/26.html
http://www.lua.org/manual/5.3/manual.html#4

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat May 07, 2016 10:16 pm    Post subject: Reply with quote

ParkourPenguin wrote:
I'm not sure. I've only briefly touched on Lua's interaction with C.

I found some links that might be useful:
http://www.lua.org/pil/26.html
http://www.lua.org/manual/5.3/manual.html#4


Sorry for the late reply. I think I will just use other programming languages, call C in Lua looks too complicated to me. Very Happy
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