Jump to content

ItemShopData.tsv: Difference between revisions

From Battle Cats Game Modding Wiki
No edit summary
headers
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
| Pack name = [[DataLocal]]
| Pack name = [[DataLocal]]
| Short description = contains various text strings used by the game.
| Short description = contains various text strings used by the game.
| Structure = The file is a [[:Category:TSV files|TSV file]] with 7 columns as so:
| Structure = The file is a [[TSV file]] where each row is a shop item, the first row being a set of headers. The 7 columns are as so:
# Shop ID - the unique identifier of the shop item.
# Shop ID - the unique identifier of the shop item.
# [[Gatyaitems|Gacha Item]] ID - what item should be on sale, the ID references [[GatyaitemName.csv]] and [[Gatyaitembuy.csv]].
# [[Gatyaitems|Gacha Item]] ID - what item should be on sale, the ID references [[GatyaitemName.csv]] and [[Gatyaitembuy.csv]].
Line 9: Line 9:
# Catfood cost - the amount of catfood this item costs to purchase.
# Catfood cost - the amount of catfood this item costs to purchase.
# Render the current quantity - whether or not to display the current amount of this item the player has (0 = don't display, 1 = do display).
# Render the current quantity - whether or not to display the current amount of this item the player has (0 = don't display, 1 = do display).
# Item category name - a [[Localizable.tsv|localized]] string specifying the name of the category to display on the top left of the screen.
# Item category name - a [[localized string]] specifying the name of the category to display on the top left of the screen.
# [[Textures|Texture]] cut ID - ID of the cut in the [[Item000|item000]] to display as this item's image.
# [[Textures|Texture]] cut ID - ID of the cut in the [[Item000|item000]] to display as this item's image.
| Examples = <syntaxhighlight lang="text" line>
| Examples = <syntaxhighlight lang="text" line>

Latest revision as of 10:31, 7 September 2025

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

Structure

The file is a TSV file where each row is a shop item, the first row being a set of headers. The 7 columns are as so:

  1. Shop ID - the unique identifier of the shop item.
  2. Gacha Item ID - what item should be on sale, the ID references GatyaitemName.csv and Gatyaitembuy.csv.
  3. Quantity - the number of items to buy per purchase.
  4. Catfood cost - the amount of catfood this item costs to purchase.
  5. Render the current quantity - whether or not to display the current amount of this item the player has (0 = don't display, 1 = do display).
  6. Item category name - a localized string specifying the name of the category to display on the top left of the screen.
  7. Texture cut ID - ID of the cut in the item000 to display as this item's image.

Examples

0	22	500	1	0	catfood	15

This means that the first item in the shop sells catfood in sets of 500 for the price of 1 catfood.

It doesn't display the current amount.

The category name is the localized key catfood, the value of this would have to be specified in localizable.tsv.

The texture cut id is 15, the item000 texture files would have to be modified so that 15 points to a valid region inside the spritesheet.

Notes

The cost of an item cannot be lower than 1, if it is, the game will default to using a cost of 50 catfood.

Any blank lines or empty fields in the file will be read as an item whose columns are all zeros (or an empty string in the case of the category name), this means that it will overwrite the first shop item with one with an item id of 0, quantity of 0, cost of 50 (see above), have an empty category name and use the first region specified in the texture.