Hi, like some off you know, we want to make morpheus a real international emulator.
I have made a dialog system for npc that allow each player to see npc dialog in their own language, even oral speach. (just need to add language file and language id in conf files).
I alse have made quest system that allow each player to see quest dialog in their own language (so yes you can open international private server)
If you want us to add you language in morpheus you can send me your translated version of our dialog files.
Here a link for english dialog file : http://www.mediafire.com/?sharekey=d...4e75f6e8ebb871
I suggest to other developer to use same format, then we could use same iles and avoid to make multiple work on a same thing...
Here how it work :
1- each language have one file with all npc dialog
2 -
in those file for each NPC you have a block like this :
NPC-type
{
...//some functions
}
3. Functions used :exemple :
MaDa_Eliff
{
AddOralText(Oh Hainan, do you see all those futur hero around us ?!);
AddText(Will you become the Ranger hero?|START);
AddLink(Farewell|STOP);
AddLink(Introduction|Introduction);
AddText(May the will of Hainan be with you always|STOP);
AddText(My name is Eliff i am the Ranger Master|Introduction);
}
AddOralText (your text here); : This function add a speach to the npc that he will repeat each 10~15s. You can have more than one speach but you should avoid to have more than 3 !
AddText (text here |link state); : This function add a new text corresponding to "link state" you have activated. Note than this symbole : "|" separate text from link state if you have more than one "|" you will have some problem in your dialog.
AddLink(your link text|link state); : This add some link at the bottom of npc chatbox. first value is the text showed, the second the state used to call a text.
4. Special variable
The first text that is showed when you're opening a chatbox with the npc MUST have "START" as link state, you can have morethan one screen.
The last text MUST have "STOP" as link state, you can have just one line.
You can use "%PLAYERNAME%" in your dialog, it will be automatically replaced by the name of the player who see the text.
(for exemple you can add an oral text to dior to say "Hey %PLAYERNAME% come and buy a broom in my shop !" and each player will see is name in the tex :p
----------------------------------------------------------------
Ok now you can do a file fo your own language. So i will try to benefits of this post to ask some people to help us.
In the link i gave you will find english, french, spanish, german and polish dialog file.
Thos files contain some mistake and don't have "AddOralText" for the npc...
I need some people to add the Oral text and to check all dialogs, cause, for exemple in some dialog there are more than one "|" that make some quest bug, and in english dialog file for exemple, the dialogs don't correspond to official server or don't have correct link
So if some people could fix them and send them to me, i will update them in morpheus fo futur release.
---------------------------------------------
Other part : Ques dialog
I have made a system for quest that allow each player to see quest dialog in their own language.
But to allow it i need the .txt file you have in your datasub1.res
those file are :
propQuest.txt, propQuest-DungeonandPK.txt, propQuest-RequestBox.txt, propQuest-Scenario.txt
I aleady have : english, french, german and spanish version.
Of course if morpheus don't have dialog file for a language it will not try to find it for quest either....
-----------------------
Why this post in releasesection when i ask some help?
Because, if you don't send me any dialog file, it's notmy problem i have french one and it's suffisent o m, but with this little tutorial you will be able to understood how dialog files work and do your own when we will release morpheus.
If you want to help us , then thanks you you can give your link here to allow other developers to use same file if they want.
EDIT : You can open the file in notepad, don't forget to register in UTF-8 format
EDIT2 :
note that if you have special letter you can send me a dialog file with one dialog translated to allow me to test it before translate all the dialog for nothing ^^for special language like Hebrew and Thai, just translate ONE NPC (for exemple Dior) and send to me those file :
dialog file registered in UTF-8 encoding. Letter_ENG with all english letter replaced by your language letter. If you can also tell me your charset and codepage (to test to replace them on english line in proplang.txt)
cause if we can't make those language work it's useless to translate dialog into those language.
I know that morpheus read them and can rewrite them (Streamreader and Streamwriter do it fine) The problem is client side and i think that it's in proplang.txt and Letter_ENG.inc
LETTER should indicate letter usable, and charset/codepage tell to the client wich charset/codepage use to sho text (i think)
I will try to put a test server on a personnal computer (not dedicaced so don't worry if there are some lag) and try to make it open to allow people to test there language. Only those people will have access to this test server, it's just to see if we can use their language :p
EDIT :
Fine specific language work ! i have tested hebrew and thai here a tuto :
http://www.mediafire.com/?sharekey=9...4e75f6e8ebb871
So now you can translate the dialog file !






