|
||
|
|||||||
| General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Lurker
Join Date: Aug 2007
Posts: 2
|
Dear Runuo Community,
I am a developer for "Dawn of Light". We are a Dark Age of Camelot emulator that is many years old. Recently we were talking about restructuring our community, and that we should model it after Runuo's community. I must say, you guys are doing a wonderful job with Runuo, and I must say that your source code is very clean. I had only one question, though. I've noticed that your messages within Runuo, are sent using serialized numbers? Why is this? Is this a client limitation? Or is this to prevent misspellings? You guys use this. Code:
m.SendLocalizedMessage( 502726 ); // You are not hidden well enough. Become better at hiding. Code:
player.Out.SendMessage("Hello Runuo Community!", eChatType.CT_Say, eChatLoc.CL_SystemWindow);
Supgee. |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,784
|
Those numbers represent cliloc entries (client localized entries). It is good to use these with UO because the UO users could be using different language clients, and just by specifying the cliloc number, you can have the message translated client-side.
In your example, 502726 would be "You are not hidden well enough. Become better at hiding." in UO's "cliloc.enu" - the English language cliloc. However, there are many more cliloc.*languageshortcut*, such as cliloc.fra - the French language cliloc, and 502726 is the same message translated to French. In this way, the server only has to use the single number to reach a variety of multilingual users.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
Also, It saves bandwidth... 1000 people who get full text srings (eg. "this is a very long string which is eating ur bandwith as many people are recieving it") is replaced with a number (= 345236 (made up number, don't try it, lol)). Ya know, instead of sending thousands of long strings... numbers can be used, which will be looked-up.
As Khaz says, the main benefit to it is many languages can be used, no matter which server you connect to.
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!! |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
Kenny, you can click on clicks with the middle mouse button in IE too and have them open in new tabs
![]() @topic - welcome to RunUO Ill have to look into DoL if i ever have time (which i usually dont )
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#5 (permalink) | |
|
Forum Expert
|
Quote:
That means I'll have to get a new sig
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!! |
|
|
|
|
|
|
#7 (permalink) |
|
Lurker
Join Date: Aug 2007
Posts: 2
|
Thanks Khaz.
I do see how it saves memory when sending it as an int rather then a string. Alas, that's not available in DOL. I like the idea of client side language features, but DOL recently added multinational functionalities. We use something like: Code:
SayTo(player, eChatLoc.CL_PopupWindow, LanguageMgr.GetTranslation(player.Client, "Scripts.Blacksmith.Say")); Code:
Scripts.Blacksmith.Say: I can repair weapons or armor for you, Just hand me the item you want repaired and I'll see what I can do, for a small fee of course. Code:
Scripts.Blacksmith.Say: Posso riparare le tue armi e armature, basta passarmi l'oggetto che vuoi riparare e vedro' cosa posso fare, per un piccolo compenso ovviamente. That is how we do it within DOL, because the DAoC client doesn't support other languages. Anyhow, thanks for the information. ![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|