Difference between revisions of "Strings In Database Documentation"

From Nexus Mods Wiki
Jump to: navigation, search
Line 1: Line 1:
When some database table contains text that should be visible in the game (in any form), for example description of some item, the table itself stores only the id (''string_name'') of this string. The content (text) is stored separately in the table ''string''. It is worth noting, that even this text is not the one used in the running game. The final versions of texts appearing in the game are exported from the ''string_localized'' table (with various language versions).
+
When some database table contains text that should be visible in the game (in any form), for example description of some item, the table itself stores only the id (''string_name'') of this string. The content (text) is stored separately in the table ''string''. It is worth noting, that even this text is not the one used in the running game. The final versions of texts appearing in the game are exported from the ''string_localized'' table (with various language versions).  
  
 
= Exporting new strings =
 
= Exporting new strings =
 +
 +
In order for a string to be exported to the game correctly, it has to have value in the ''string_localized'' table for ''language_id = 1'' (''PDG'', which is sort of a working language) and ''language_id = 2'' (''ENG'', which is the final English version).

Revision as of 12:52, 29 January 2020

When some database table contains text that should be visible in the game (in any form), for example description of some item, the table itself stores only the id (string_name) of this string. The content (text) is stored separately in the table string. It is worth noting, that even this text is not the one used in the running game. The final versions of texts appearing in the game are exported from the string_localized table (with various language versions).

Exporting new strings

In order for a string to be exported to the game correctly, it has to have value in the string_localized table for language_id = 1 (PDG, which is sort of a working language) and language_id = 2 (ENG, which is the final English version).