Mechdef, Template

From Battletech Modding Wiki
Jump to: navigation, search

Wiki Quick Nav: File Formats | Other Tweaks and Adjustments | Tools and Scripts | Troubleshooting | Style Guide


{
   "Version": 1,
   "Description": {
       "Id": "mechdef_atlas_AS7-D",
       "Name": "Atlas",
       "Details": "",
       "Icon": "",
       "Cost": 11400000,
       "Rarity": 5,
       "Purchasable": false
   },
   "ChassisID": "chassisdef_atlas_AS7-D",
   "MechTags": {
       "items": [
           "unit_mech",
           "unit_assault",
           "unit_release_ksbeta",
           "unit_ready",
           "unit_role_brawler"
       ],
       "tagSetSourceFile": ""
   },
   "inventory": [
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "Head",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_Laser_Medium",
           "ComponentDefType": "Weapon",
           "MountedLocation": "LeftArm",
           "HardpointSlot": 0,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "LeftArm",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "LeftArm",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_LRM20",
           "ComponentDefType": "Weapon",
           "MountedLocation": "LeftTorso",
           "HardpointSlot": 0,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_SRM6",
           "ComponentDefType": "Weapon",
           "MountedLocation": "LeftTorso",
           "HardpointSlot": 1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "AmmunitionBox_LRM",
           "ComponentDefType": "AmmunitionBox",
           "MountedLocation": "LeftTorso",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "AmmunitionBox_LRM",
           "ComponentDefType": "AmmunitionBox",
           "MountedLocation": "LeftTorso",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "AmmunitionBox_SRM",
           "ComponentDefType": "AmmunitionBox",
           "MountedLocation": "LeftTorso",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_Laser_Medium",
           "ComponentDefType": "Weapon",
           "MountedLocation": "CenterTorso",
           "HardpointSlot": 0,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_Laser_Medium",
           "ComponentDefType": "Weapon",
           "MountedLocation": "CenterTorso",
           "HardpointSlot": 1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_AC20",
           "ComponentDefType": "Weapon",
           "MountedLocation": "RightTorso",
           "HardpointSlot": 0,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "RightTorso",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "Weapon_Laser_Medium",
           "ComponentDefType": "Weapon",
           "MountedLocation": "RightArm",
           "HardpointSlot": 0,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "RightArm",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "RightArm",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "AmmunitionBox_AC20",
           "ComponentDefType": "AmmunitionBox",
           "MountedLocation": "LeftLeg",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "LeftLeg",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "LeftLeg",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "AmmunitionBox_AC20",
           "ComponentDefType": "AmmunitionBox",
           "MountedLocation": "RightLeg",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "RightLeg",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "ComponentDefID": "HeatSink_Basic",
           "ComponentDefType": "HeatSink",
           "MountedLocation": "RightLeg",
           "HardpointSlot": -1,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       }
   ],
   "Locations": [
       {
           "DamageLevel": "Functional",
           "Location": "Head",
           "CurrentArmor": 45,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 15,
           "AssignedArmor": 45,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "LeftArm",
           "CurrentArmor": 170,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 85,
           "AssignedArmor": 170,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "LeftTorso",
           "CurrentArmor": 160,
           "CurrentRearArmor": 50,
           "CurrentInternalStructure": 105,
           "AssignedArmor": 160,
           "AssignedRearArmor": 50
       },
       {
           "DamageLevel": "Functional",
           "Location": "CenterTorso",
           "CurrentArmor": 235,
           "CurrentRearArmor": 70,
           "CurrentInternalStructure": 160,
           "AssignedArmor": 235,
           "AssignedRearArmor": 70
       },
       {
           "DamageLevel": "Functional",
           "Location": "RightTorso",
           "CurrentArmor": 160,
           "CurrentRearArmor": 50,
           "CurrentInternalStructure": 105,
           "AssignedArmor": 160,
           "AssignedRearArmor": 50
       },
       {
           "DamageLevel": "Functional",
           "Location": "RightArm",
           "CurrentArmor": 170,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 85,
           "AssignedArmor": 170,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "LeftLeg",
           "CurrentArmor": 205,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 105,
           "AssignedArmor": 205,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "RightLeg",
           "CurrentArmor": 205,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 105,
           "AssignedArmor": 205,
           "AssignedRearArmor": -1
       }
   ]
}

File Information

  • "Version": - int, this is the current file version.
  • "Description" : { } - Description object block.
    • "Id": - String, the unique Id for this mechdef.
    • "Name" - string, Friendly name for this mech.
    • "Details":- string, the details for the mech, currently blank for most.
    • "Icon":- string, points to a sprite but is currently blank for most.
    • "Cost":- Int, cost in cbills for the mech.
    • "Rarity":- int, rarity of the mech, 0 is common, 5 is ultra rare (we believe)
    • "Purchasable":- bool, is it purchaseable
  • "ChassisID":- String, the chassisdef ID that is associated with this mech.
  • "MechTags": {} - Mech Tag object block
    • "items" : [ ] - string array of tags, match tag's in the database, valid at the moment include unit_mech, unit_light, unit_medium, unit_heavy, unit_assault, unit_release_ksbeta, unit_role_sniper, unit_role_brawler, unit_role_scout, unit_role_flanker
    • "tagSetSourceFile": -string, currently null/empty ""
  • "inventory": [ ] - array of items that describe the various critical components in the mech each entry consists of
    • "ComponentDefID": -string, the Definition Id of the Component
    • "ComponentDefType": -string, The component definition type
    • "HardpointSlot":- int, the location hardpoint in the chassis for the item.
    • "DamageLevel":- string, the current damage level (all say Functional at this time)
    • "prefabName":- string, all are currently null for inventory items.
    • "hasPrefabName":- bool, all currently set to false for inventory items.
  • "Locations": [ ] - array of items that define the various armor of each location each entry comprises of
    • "DamageLevel":- string, all currently have Functional. (we believe is the current damage of the location)
    • "Location":- string, the location of the location, valid "Head", "LeftArm", "LeftTorso", "CenterTorso", "RightTorso", "RightArm", "RightLeg","LeftLeg"
    • "CurrentArmor": int, Current amount of armor in the location.
    • "CurrentRearArmor": int, current amount of rear armor in a location -1 means not applicable.
    • "CurrentInternalStructure": int, current amount of internal structure in a location
    • "AssignedArmor": int, total assigned armor for the location
    • "AssignedRearArmor": int, total assigned rear armor for the location -1 means not applicable, CT, RT and LT should have entires for this.

Wiki Quick Nav: File Formats | Other Tweaks and Adjustments | Tools and Scripts | Troubleshooting | Style Guide