Conan Exiles

Conan Exiles

TAG2
 This topic has been pinned, so it's probably important
dracahn  [developer] 3 Oct, 2022 @ 1:27pm
For Devs
For Devs
Mod ID: 2472764949
Data Tables prefix: 651238XXX
The system in place is expandable. It can work with items from other mods easily. If you've added new items to any loot table (vanilla or modded loot tables), added new thralls, added loot tables, check below for compatibility.


New Items
If you've added new items to a new or existing loot table, please take a look at the `ResourceStatTable`. This table allows certain items to be filtered by what can harvest them. E.g. if you add a new religion with a new religious item, you'll want to add it here, set `blsToolExclusive` and set it to only be harvested by your religious harvesting item. If you do not add the item to this table, every item will be able to harvest it. Follow the Vanilla protocols - I haven't changed anything with this table, just read from it.

Thralls
To tell if the item in a box is a human thrall, TAG checks the information on the `SpawnDataTable`. The column NpcTags. Specifically it looks for the `Npc.Humanoid` tag. Please ensure any new thralls you add to this table have that Tag, and it should work flawlessly. Be advised that the thrall's tier it determined by casting a `GameItem` from any inventory to a `TrallItem` and getting the `Thrall Infor Thrall Tier` variable. Just make sure that's coming back correctly for all your thralls, and things should work just fine.

Loot Tables
If you've added any additional loot tables that you think people would want to use (e.g. new resource node or new creature) then add a new item. in the `ShortDesc` column, use the following "Tag: [LootTableRowName]" where [LootTableRowName] is...well a name of a row on the `LootTable_Resource` data table. For example, if I want to target iron ore, then I set the `ShortDesc` to "TAG: Ore_Iron". Then set the ItemTier to any number greater than 0. The ItemTier Determines how long it takes for each TAG cycle to run. It's minutes for a T1 Thrall to complete. To an ItemTier of 4 will take 4 minutes for a T1 thall to complete.
All of my items are obtained from recipes I added. You can do the same, or add other ways to obtain the TAG items. However you want to balance it out for your mod, go for it.
This is what the ItemTable entry looks like for Iron Ore:
[ { "RowName": "651238006", "Name": "NSLOCTEXT(\"\", \"TAG_DT_ItemTable_651238006_Name\", \"TAG - Target Iron Ore\")", "ShortDesc": "NSLOCTEXT(\"\", \"TAG_DT_ItemTable_651238006_ShortDesc\", \"TAG: Ore_Iron\")", "LongDesc": "NSLOCTEXT(\"\", \"TAG_DT_ItemTable_651238006_LongDesc\", \"Targets Iron Ore for gathering\")", "Icon": "None", "IconLayers": [ "/Game/Mods/TAG2/Icons/TAG_Overlay.TAG_Overlay", "/Game/UI/Textures/Icons/icon_iron_ore-1.icon_iron_ore-1" ], "ItemClass": "/Script/ConanSandbox.GameItem", "BuildingClass": "None", "VisualObject": "/Game/Items/GatheringResources/Rock1.Rock1_C", "ActionBlueprint_Use": "None", "MaxStackSize": 1, "EquipLocation": 0, "GUICategory": "Material", "ItemTags": [], "ArmourValue": 0, "ArmorType": 0, "SoundPhysicalSurface": 2, "WeaponType": "None", "WeaponArcheType": "None", "CompatableAmmunitions": [], "SoundTransmitterType": 0, "KnockbackResponseWeapon": false, "WeaponStaminaAttackSingleBasic": 0, "WeaponStaminaAttackSingleSpecial": 0, "WeaponStaminaAttackDualBasic": 0, "WeaponStaminaAttackDualSpecial": 0, "WeaponStaminaHeavyChargedRegenModifier": 0, "WeaponSpeedHeavyChargedModifier": 0, "EncumbranceWeight": 0.05000000074505806, "ConeAngle": 0, "ConeMaxDistance": 0, "DamageHealthLight_OnHit": 0, "DamageHealthHeavy_OnHit": 0, "DamageStaminaLight_OnHit": 0, "DamageStaminaHeavy_OnHit": 0, "DamageHealthLight_OnBlock": 0, "DamageHealthHeavy_OnBlock": 0, "DamageStaminaLight_OnBlock": 0, "DamageStaminaHeavy_OnBlock": 0, "HarvestDamage": 0, "WeaponUsage": 0, "MaxAttackReach": 0, "MinAttackReach": 0, "MinAttackDistance": 0, "WeaponEffectWidth": 0, "WeaponEffectHeight": 0, "ItemTier": 2, "ArmorPen": 0, "DamageConcussiveLightOnHit": 0, "DamageConcussiveHeavyOnHit": 0, "DamageConcussiveLightOnBlock": 0, "DamageConcussiveHeavyOnBlock": 0, "DamageTier": "Default", "CoolDownTime": 0, "ReuseTime": 0, "SelectionWeight": 0, "StatBasedDamageTypeID": "None", "KnockbackOffenseBasic": 0, "KnockbackOffenseSpecial": 0, "KnockbackOffenseBasicOnBlock": 0, "KnockbackOffenseSpecialOnBlock": 0, "KnockbackDefense": 0, "VisualStaticMesh": "None", "VisualSkeletalMesh": "None", "VisualDestructibleMesh": "None", "WeaponStatusDefault": 0, "WeaponStatusCurrent": 0, "WeaponStatusDecrement": 0, "PerishRate": 0, "PerishTo": 0, "MaxDurability": 0, "RepairItem1": 13015, "RepairItem1_Amount": 1, "RepairItem1_Weight": 1, "RepairItem2": 11076, "RepairItem2_Amount": 1, "RepairItem2_Weight": 1, "RepairItem3": 0, "RepairItem3_Amount": 0, "RepairItem3_Weight": 0, "AffectedByDamageTiers": 0, "BuildingPieceScore": 0, "BuildingMaxHealth": 0, "RepairXP": 0, "FirstModifier": "NSLOCTEXT(\"\", \"TAG_DT_ItemTable_651238006_FirstModifier\", \"TAG\")", "SecondModifier": "NSLOCTEXT(\"\", \"TAG_DT_ItemTable_651238006_SecondModifier\", \"Low Grade\")", "ThirdModifier": "NSLOCTEXT(\"\", \"TAG_DT_ItemTable_651238006_ThirdModifier\", \"Ingredient\")", "FourthModifier": "", "FifthModifier": "", "SixthModifier": "", "FirstModifierValue": 0, "SecondModifierValue": 0, "ThirdModifierValue": 0, "FourthModifierValue": 0, "FifthModifierValue": 0, "SixthModifierValue": 0, "FoodAmount": 0, "DrinkAmount": 0, "BurnTime": 2, "ItemFlags": 1, "ItemContainerSize": 0, "AvatarType": "None", "DyeColourID": -1, "WarPaintID": -1, "StaminaCostMultiplier": 1, "StaminaClimbingCostMultiplier": 1, "LeavesGhostItem": false, "DLCPackage": "None", "SpawnTemplateID": "None", "SpellcastID": 0, "GameplayTags": "(GameplayTags=)" } ]