View previous topic :: View next topic |
Author |
Message |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Sat Sep 21, 2019 7:22 pm Post subject: codepage |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Sat Sep 21, 2019 11:36 pm Post subject: |
|
|
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 |
|
 |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Sat Sep 21, 2019 11:44 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Sat Sep 21, 2019 11:48 pm Post subject: |
|
|
instead of lua try
_________________
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 |
|
 |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Sun Sep 22, 2019 1:23 am Post subject: |
|
|
Dark Byte wrote: | instead of lua try
|
OK,thank
|
|
Back to top |
|
 |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Mon Sep 23, 2019 6:28 am Post subject: |
|
|
[quote="yazigegeda"] Dark Byte wrote: | instead of lua try
|
This will not work,
Description: |
|
Filesize: |
77.63 KB |
Viewed: |
4274 Time(s) |

|
|
|
Back to top |
|
 |
|