AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   [Module]UTF-8 Gaming (https://forums.alliedmods.net/showthread.php?t=177315)

K.K.Lv 01-30-2012 22:57

[Module]UTF-8 Gaming
 
3 Attachment(s)
This module can set the name with special characters.
First , need to set the string to UTF-8(Bom or without Bom are accepted).
In China, most coder make a plug-in or module to get it !
so, I just recode it with a C++, and make a native that server can use it.

native:
PHP Code:

native set_utf8_name(indexuname[]);
 
//linux version have not this.Requested from ot_207
//ansi to utf8 
native ansi_to_utf8(const ansi[], utf8[], ulen);
 
//utf8 to ansi
native utf8_to_ansi(const utf8[], ansi[], alen); 



credits:
MemHack module
nooby(who the UTF-8 name's author)
Arkshine(compile the linux version)

linux version here
http://forums.alliedmods.net/showpos...1&postcount=19

any bug are welcome
I wil try my best to fix it:wink:
and I have posted a example !
test it on steam or non-steam server and work fine !

Photo:
http://forums.alliedmods.net/attachm...1&d=1327983144

Edited:Sorry for the mistake, fixed now :mrgreen:

Starsailor 01-31-2012 02:45

Re: [Module]UTF-8 Name
 
nice

Devil259 01-31-2012 06:10

Re: [Module]UTF-8 Name
 
Awesome :o

romm1e 01-31-2012 06:32

Re: [Module]UTF-8 Name
 
Well, whats wrong with Unicode Patch by Rulzy ?

kiki33hun 01-31-2012 06:40

Re: [Module]UTF-8 Name
 
LOOL, Nice tahnx:)

Edit: Please convert linux version

K.K.Lv 01-31-2012 06:40

Re: [Module]UTF-8 Name
 
Quote:

Originally Posted by romm1e (Post 1641750)
Well, whats wrong with Unicode Patch by Rulzy ?

Rulzy's upatch module are nice one, at lest better than this !
I have the code, but You have to get his permission before you post the code !
so if you had upatch module, ignore this :mrgreen:

m0skVi4a 01-31-2012 11:25

Re: [Module]UTF-8 Name
 
Nice :)

201724 02-02-2012 03:52

Re: [Module]UTF-8 Name
 
patch 2 address,
swds auto convert name to non utf8 format nop the 2 byte is success but voice label not fix = =...

say utf8 patch mp.dll ....

K.K.Lv 02-02-2012 04:31

Re: [Module]UTF-8 Name
 
Quote:

Originally Posted by 201724 (Post 1642964)
patch 2 address,
swds auto convert name to non utf8 format nop the 2 byte is success but voice label not fix = =...

say utf8 patch mp.dll ....

glad to see you man !
I'm try to find the code that when player voice.
maybe can be find in HLSDK !:wink:

RuRuRu612754 02-06-2012 05:45

Re: [Module]UTF-8 Name
 
What linux module does not have?

.bin


All times are GMT -4. The time now is 01:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.