Logo Khaganat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:nom_des_bots [2016/12/13 21:55] – created Domperssen:nom_des_bots [2021/12/03 18:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Name of the bots ====== ====== Name of the bots ======
-To have the Bots placed using the [[world_editor|World Editor]] **AND** have a correct names displayed over their head(in white rather than their code name specified in the Primitive) used in The publisher, __THEN__.. this is how to proceed!!+To have the Bots placed using the [[world_editor|World Editor]] **AND** having correct names displayed over their head(in white rather than their code name specified in the Primitive) used in the publisher, __THEN__.. this is how to proceed!!
  
-===== First step: Locate the name given to the bot ===== +===== First step: Locate the given bot name ===== 
-To do this, we use the World Editor. Open the file "newbieland.worldedit"(which contains the Bots whose names we want to change). +To do this, we use the World Editor. Open the file "newbieland.worldedit"(which contains the Bot names we want to change). 
-\\ Then we load the Primitive that contains them: Project> Add Primitive and choose "urban_newbieland.primitive"+\\ Then we load the Primitive that contains them: Project> Add Primitive and choose "urban_newbieland.primitive"
-{{:en:naming_bots_001.png?Direct&350|}} +{{ https://khaganat.net/wikhan/_media/fr:nommage_bots_001.png }} 
-In this example, it is "bland_marchand_rm" **AND** "nbland_marchandlarmor", the parts between $ in a row indicates their function and titles, that are indicated under their names. We will for the moment let it be.+ 
 +\\ In this example, there is "bland_marchand_rm" **AND** "nbland_marchandlarmor", the parts between the "$"(in a rowindicates their function and titles, which are indicated under their names. We will(for the momentlet these be.
 \\ We can now close World Editor. \\ We can now close World Editor.
 **Note:** For those who prefer to work with xml files by hand, it is also possible to search the names of the Bots in the corresponding file with a text editor, in this example, it is: **Note:** For those who prefer to work with xml files by hand, it is also possible to search the names of the Bots in the corresponding file with a text editor, in this example, it is:
Line 13: Line 14:
 ===== Second step: Give a reference name to the server side bot ===== ===== Second step: Give a reference name to the server side bot =====
 The server stores the "names of the Bots" in a file called "bot_name.txt", it's located in code/ryzom/server/ data_shard/language. The server stores the "names of the Bots" in a file called "bot_name.txt", it's located in code/ryzom/server/ data_shard/language.
-\\ It can be opened with a simple text editor, tho you should pay attention to its format, which uses **tabs**.+\\ It can be opened with a simple text editor, tho you should pay attention to it'format, which uses **tabs** and **NOT spacing**.
 \\ For now, it's almost empty, only Chiang has the honor to have a name in the file(provided with the official sources of Ryzom Core): \\ For now, it's almost empty, only Chiang has the honor to have a name in the file(provided with the official sources of Ryzom Core):
 <code bot_name.txt> <code bot_name.txt>
Line 20: Line 21:
 _819E5006E9093123 chiang_the_strong $gn_chiang_the_strong$  _819E5006E9093123 chiang_the_strong $gn_chiang_the_strong$
 </code> </code>
-There is a tab between each fieldincluding before the last one, even if it is empty, think of including it when you add entries.+There is a tab between each field(including before the last one). Even if it is empty, still think of including it when you add entries.
  
-The HASH code of the first field guarantees the difference between two entries. It is enough to determine it yourself.+The HASH code of the first field guarantees the difference between two entries. It is enough to determine the vaule of your own choice.
  
-I decided to build the names on the same model as the example provided, adding gn_ before the call retained in the file "urban_newbieland.primitive" and enclosing them with $+Let's decide to build the names on the same model as the example provided, adding gn_ before the call retained in the file "urban_newbieland.primitive" and enclosing them with "$"
 \\ We thus obtain: \\ We thus obtain:
 <code> <code>
Line 34: Line 35:
 </code> </code>
  
-It is then necessary to indicate for each language file the version in the corresponding language. In our case, we will deal with title_words_en.txt. It is also opened with text editor. It is organized in the same way and we will modify it in a similar way, but this time by indicating the value translated name that we defined above, without the $. Again, we create a HASH at the beginning to make the line unique, and we do not forget the end-of-line tabs.+It is then necessary to indicate(for each language filethe version in the corresponding language. In our case, we will deal with the file: title_words_en.txt. Open it with your chosen text editor. This file is organized in the same way and we will even modify it in a similar way, but this time by indicating the value translated name that we defined above, __without the $.__ Again(at the begining), we create a HASH number to make the line unique, and we make sure not to forget the "end-of-line tabs".
 \\ Add the following lines at the end of the file: \\ Add the following lines at the end of the file:
 <code> <code>
Line 42: Line 43:
 **Note:** It is of course possible(and even recommended) to add translations in all server language files. **Note:** It is of course possible(and even recommended) to add translations in all server language files.
  
-Then, for the server to recalculate the packed_sheets, they will be erased and restarted:+Then stopping the sharderasing the old sheets(so the new ones can be recalculated by the server), and simply restarting the shard, like below:
 <code bash> <code bash>
 $ shard stop $ shard stop
CC Attribution-Share Alike 4.0 International Driven by DokuWiki
en/nom_des_bots.1481666159.txt.gz · Last modified: (external edit)

Licences Mentions légales Accueil du site Contact Inclusion