Importing and Exporting
Loot Table Templates can be imported and exported to/from .csv and .json files.
Usage
Importing
You can't use the import menu from the Content Browser to import a loot table template. You must create an asset first and then use the 'Reimport' or 'Reimport From New File' commands in the asset editor toolbar.
E.g., you can't use this:

You must instead use this:

Exporting
Right click on any existing asset in the content browser and select Export as CSV or Export as JSON:

Formats
For the following examples, suppose we have the following loot table:
| Loot Table (Unlimited) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Row Name | Ref Table | Ref Row Name | Weight | Ref Mode | Weight Inherit Mode | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Apple | Fruits | Apple | 100 | Row | Parent | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Banana | Fruits | Banana | 100 | Row | Parent | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Orange | Fruits | Orange | 100 | Row | Parent | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Csv
The CSV format includes one column for each property in the authoring tab:
Csv Table A
RowName,RefTable,RefRowName,Weight,Count,RefMode,WeightInheritMode
"Apple","DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'","Apple","100","0","Row","Parent"
"Banana","DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'","Banana","100","0","Row","Parent"
"Orange","DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'","Orange","100","0","Row","Parent"
You may omit some columns, in which case each omitted column will receive a default value for each row. E.g.:
Partial CSV Table A
RowName,RefTable,RefRowName,Weight
"Apple","DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'","Apple","100"
"Banana","DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'","Banana","100"
"Orange","DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'","Orange","100"
Json
The JSON format expects an array containing objects for each row; each object has fields for each property:
Json Table B
[
{
"RowName": "Apple",
"RefTable": "DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'",
"RefRowName": "Apple",
"Weight": 100,
"Count": 0,
"RefMode": "Row",
"WeightInheritMode": "Parent"
},
{
"RowName": "Banana",
"RefTable": "DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'",
"RefRowName": "Banana",
"Weight": 100,
"Count": 0,
"RefMode": "Row",
"WeightInheritMode": "Parent"
},
{
"RowName": "Orange",
"RefTable": "DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'",
"RefRowName": "Orange",
"Weight": 100,
"Count": 0,
"RefMode": "Row",
"WeightInheritMode": "Parent"
}
]
You may omit some properties, in which case each omitted property will receive a default value:
Partial Json Table B
[
{
"RowName": "Apple",
"RefTable": "DataTable'/Game/Stoch/DataTables/DT_Fruits.DT_Fruits'",
"RefRowName": "Apple",
"Weight": 100
}
]