Jump to content

Localizable.tsv: Difference between revisions

From Battle Cats Game Modding Wiki
localizable.tsv
 
Few more formatting examples and uses
Line 8: Line 8:
cool_text <flash>This flashes!!!</flash>
cool_text <flash>This flashes!!!</flash>
message_text Well done, you successfully "%@"
message_text Well done, you successfully "%@"
multiline_example Line 1<br>Line 2
color_example <color=255,0,0>RED</color>
</syntaxhighlight>
</syntaxhighlight>


Line 15: Line 17:


Taking the third line, some text fields have placeholders (the <code>%@</code>) which are replaced with a string by the game before being rendered to the screen, these come in different forms. Some are named, e.g <code>${varName}</code>, some use <code>%@</code> and some use other format specifiers such as <code>%d</code> or <code>%02d</code>
Taking the third line, some text fields have placeholders (the <code>%@</code>) which are replaced with a string by the game before being rendered to the screen, these come in different forms. Some are named, e.g <code>${varName}</code>, some use <code>%@</code> and some use other format specifiers such as <code>%d</code> or <code>%02d</code>
Taking the 4th line, in supported text fields you can add line breaks by adding a <code>&#60;br&#62;</code> tag.
Taking the 5th line, in supported text fields you can  specify the color of the text in rgb form in the format <code><color=r,g,b>text</color></code>.
}}
}}
== Uses ==
The game uses this file in the code quite often to fetch strings to use, it's often menu text rather than text relating to [[Cats|cats]] or [[Stages|stages]] since that text is stored in other files.
=== References in other game files ===
* [[ItemShopData.tsv|itemShopData.tsv]] for the name of the category for a specific item

Revision as of 13:16, 4 September 2025

localizable.tsv is a file inside of resLocal which contains various text strings used by the game.

Structure

The file is a tsv file with 2 columns. The first column is the name of the key, and the second column is the value.

Examples

item_name_22	Catfood
cool_text	<flash>This flashes!!!</flash>
message_text	Well done, you successfully "%@"
multiline_example	Line 1<br>Line 2
color_example	<color=255,0,0>RED</color>

Taking the first line, this says that if the game ever references item_name_22 it will use the text "Catfood".

Taking the second line, some text fields in the game support more formatting such as <flash>some text</flash>, this will cause the text to flash yellow and magenta.

Taking the third line, some text fields have placeholders (the %@) which are replaced with a string by the game before being rendered to the screen, these come in different forms. Some are named, e.g ${varName}, some use %@ and some use other format specifiers such as %d or %02d

Taking the 4th line, in supported text fields you can add line breaks by adding a <br> tag.

Taking the 5th line, in supported text fields you can specify the color of the text in rgb form in the format <color=r,g,b>text</color>.

Uses

The game uses this file in the code quite often to fetch strings to use, it's often menu text rather than text relating to cats or stages since that text is stored in other files.

References in other game files