Client Name/Title?

Added by TomH about 8 years ago

Where can I find the Client Name/Title and change it to my own?

Currently it says Ryzom, but I want to be able to change it to something else.

Thank you.


Replies (11)

RE: Client Name/Title? - Added by rti about 8 years ago

The function IDriver::setWindowTitle is responsable for this.
Finding the point where Ryzom calls it might help you.

IIRC Ryzom uses it's I18N system for the window title as well. So you might want to look into that as well.

RE: Client Name/Title? - Added by TomH about 8 years ago

I did a search for setWindowTitle and they all say Driver->setWindowTitle(CI18N::get("TheSagaOfRyzom"));

The window's name is just Ryzom and searching for TheSagaOfRyzom doesn't help much.

I'm not really sure what IIRC is at the moment, mind explaining it a little bit so I can understand?

Thank you so much.

RE: Client Name/Title? - Added by TomH about 8 years ago

I found this on libwww.cpp:

/* Initiate libwww */ (Line: 532)
HTLib_setAppName("Ryzom"); (Line: 535)

Not sure if this would change the client name.

RE: Client Name/Title? - Added by kervala about 8 years ago

You should unpack gamedev.bnp and find a en.uxt file which contains all client english translations :)

RE: Client Name/Title? - Added by rti about 8 years ago

IIRC is "if I recall correctly". ;)

CI18N::get("TheSagaOfRyzom") means, get the localized string for "TheSagaOfRyzom".
So there must be some mapping from "text identifier" to "localized string" ("TheSagaOfRyzom" -> "Ryzom"),
but sorry, I do not know how the localization system works.

I guess it might be some XML file, but I do not know.

But just replacing the call with Driver->setWindowTitle("My cool Window Title"); should do the thing, bypassing the localization system.

RE: Client Name/Title? - Added by rti about 8 years ago

Ah ok, so kervala is pointing in the direction how to do it right :)

RE: Client Name/Title? - Added by TomH about 8 years ago

Thank you so much to both of you.. I see that gamedev.bnp has over 186,823 lines to look over!

I will be in his file for a long time :P

RE: Client Name/Title? - Added by kervala about 8 years ago

You're welcome :)

gamedev.bnp contains all .lua and .xml files for UI (the ones which are on Mercurial) and translations :)

You can have a look at : code\ryzom\common\data_common and code\ryzom\client\data\gamedev

RE: Client Name/Title? - Added by TomH about 8 years ago

Another question,

To compress everything to gamedev.bnp again, how do I do this?

RE: Client Name/Title? - Added by kervala about 8 years ago

You should use bnp_make :

USAGE :
   bnp_make /p <directory_name> [<destination_path>] [<destination_filename>] [option] ... [option]
   option :
      -if wildcard : add the file if it matches the wilcard (at least one 'if' conditions must be met for a file to be adding)
      -ifnot wildcard : add the file if it doesn't match the wilcard (all the 'ifnot' conditions must be met for a file to be adding)
 Pack the directory to a bnp file
   bnp_make /u <bnp_file>
 Unpack the bnp file to a directory
   bnp_make /l <bnp_file>
 List the files contained in the bnp file

RE: Client Name/Title? - Added by TomH about 8 years ago

Hopefully it is as easy as it sounds :P

Thank you so much Kervala! :D

(1-11/11)