I am almost done Unicode Chatting.. someone help me for finishing
I am modifing Chatting system for forign language (specially Asian)
first, I decompiled WarZ_HUD.swf then opened HUD.as
it locates in WarZ_HUD\warz\hud\HUD.as
I added bellow sentenses
import flash.system.Capabilities;
import flash.system.IME;
import flash.system.IMEConversionMode;
then I modified keyboardInput(...) as bellow
public function keyboardInput(arg1:flash.events.KeyboardEvent):void
{
if (arg1.keyCode != 13) //ENTER
{
if (arg1.keyCode == 27) //ESC
{
warz.events.HUDEvents.eventChatMessage(-1, "");
this.Main.Chat.Chat.InputText.text = "";
this.Main.Chat.Chat.InputText.removeEventListener(flash.events.Event.ENTER_FRAME, this.chatInputEnterFrame);
this.Main.stage.focus = null;
}
if (arg1.keyCode == 229) //right ALT
{
if (Capabilities.hasIME)
{
try
{
IME.enabled = true;
IME.conversionMode = IMEConversionMode.KOREAN;
this.Main.Chat.Chat.InputText.text = "Conversion mode is OK";
}
catch (error:Error)
{
this.Main.Chat.Chat.InputText.text = "Unable to set conversion mode.";
}
}
//warz.events.HUDEvents.eventChatMessage(this.activeChatTab, this.Main.Chat.Chat.InputText.text);
//this.Main.Chat.Chat.InputText.text = "";
//this.Main.Chat.Chat.InputText.removeEventListener(flash.events.Event.ENTER_FRAME, this.chatInputEnterFrame);
//this.Main.stage.focus = null;
//return;
}
}
else
{
warz.events.HUDEvents.eventChatMessage(this.activeChatTab, this.Main.Chat.Chat.InputText.text);
this.Main.Chat.Chat.InputText.text = "";
this.Main.Chat.Chat.InputText.removeEventListener(flash.events.Event.ENTER_FRAME, this.chatInputEnterFrame);
this.Main.stage.focus = null;
}
return;
}
unfortunatlly, it dosen't work
if someone would help me, we can make it
Re: I am almost done Unicode Chatting.. someone help me for finishing
ill have to re-look it up but your missing a bunch of things in the source code as well.
Re: I am almost done Unicode Chatting.. someone help me for finishing
won't decompiling the swfs actually fuck things up?
Re: I am almost done Unicode Chatting.. someone help me for finishing
Jonny I knew that
I just found out the exact location and key isseue
If you help me plz give me some hint
Kratos you are right
So I am trying with every flash tools
after tons of works I decided to work with Trillo decompiler
If there are better way to decompile let me know it
Re: I am almost done Unicode Chatting.. someone help me for finishing
Quote:
Originally Posted by
loveomg
If there are better way to decompile let me know it
Remove the Chat UI from Flash & add it via DirectX or something like dat.
You can't decompile and recompile that flash files because it use scaleform as well and
other few things.
Re: I am almost done Unicode Chatting.. someone help me for finishing
Ikasu as you say there are some bugs in the compiled swf
But considering my exp. there is only health gage isseue.
in warz_hud.swf case, there are less problem than frontend.swf
so maybe I can fix it although I dont using scaleform
anyway thank you for your advice
Re: I am almost done Unicode Chatting.. someone help me for finishing
Maybe you/anyone should try investigating the .swf content to figure out how it draws the fonts and what decides the unicode.. who knows, there might be a special thing for it that gets decompiled weird, maybe it's like you have to include something.. did anyone try rewriting the fonts stuff and changing it?
Re: I am almost done Unicode Chatting.. someone help me for finishing
about font isseue... that's very simple and easy
just decompile font_en.swf with any decompiler
then change font family from tahoma and 2 others to your language's font name
for example, I changed it to 2002L (font name must be english)
and change embed characters to all (or your language)
then compile it. that's all.. very simple ^^
Re: I am almost done Unicode Chatting.. someone help me for finishing
you have to use the exporter from autodesk and export it to .gfx and make edits etc...
follow this gives you a idea..
*HOW-TO* Hack your hud (by editing the .gfx files) - League of Legends Community
Re: I am almost done Unicode Chatting.. someone help me for finishing
Thank Jonny
I am checking the guide in the link
I hope these work correctly