Add Grand Dragon

From Battletech Modding Wiki
Jump to: navigation, search

Overview

The Grand Dragon is a version of the Dragon see link sarna. The Grand Dragon useslostech technologies such as ER-PPC and double heat sinks that actually exist in game but are not available in the normal game. Because of this only the mech needs to be added to make it available in game. Below is how to add the Grand Dragon to the skirmish mode of the game. Note that the Grand Dragon is very expensive relative to actual performance.

Add the move definition file

In directory (Steam Location)\steamapps\common\BATTLETECH\BattleTech_Data\StreamingAssets\data\movement add the file movedef_dragon_DRG-5K.json

{
  "Description" : {
     "Id" : "movedef_dragon_DRG-5K",
     "Name" : "MovementCapabilitiesDef for Dragon DRG-5K",
     "Details" : "",
     "Icon" : ""
  },
  "MaxWalkDistance" : 160.0,
  "MaxSprintDistance" : 270.0,
  "WalkVelocity" : 16.0,
  "RunVelocity" : 36.0,
  "SprintVelocity" : 44.0,
  "LimpVelocity" : 8.0,
  "WalkAcceleration" : 15.0,
  "SprintAcceleration" : 20.0,
  "MaxRadialVelocity" : 70.0,
  "MaxRadialAcceleration" : 210.0,
  "MaxJumpVel" : 30.0,
  "MaxJumpAccel" : 15.0,
  "MaxJumpVerticalAccel" : 30.0
}

Add the mech definition file

In directory (Steam Location)\steamapps\common\BATTLETECH\BattleTech_Data\StreamingAssets\data\chassis add the file chassisdef_dragon_DRG-5K.json.

{
   "Description": {
       "Cost": 5800000,
       "Rarity": 2,
       "Purchasable": true,
       "Manufacturer": "",
       "Model": "",
       "UIName": "Grand Dragon",
       "Id": "chassisdef_dragon_DRG-5K",
       "Name": "Dragon",
       "Details": "The Grand Dragon is the successor of the Dragon sporting improved weaponry. It is fielded as the Main Battle Mech of the Draconis Combine.",
       "Icon": "uixTxrIcon_dragon"
   },
   "MovementCapDefID": "movedef_dragon_DRG-5K",
   "PathingCapDefID": "pathingdef_heavy",
   "HardpointDataDefID": "hardpointdatadef_dragon",
   "PrefabIdentifier": "chrPrfMech_dragonBase-001",
   "PrefabBase": "dragon",
   "Tonnage": 60,
   "InitialTonnage": 28,
   "weightClass": "HEAVY",
   "BattleValue": 6362000,
   "Heatsinks": 0,
   "TopSpeed": 150,
   "TurnRadius": 90,
   "MaxJumpjets": 5,
   "Stability": 100,
   "StabilityDefenses": [
       0,
       0,
       0,
       0,
       0,
       0
   ],
   "SpotterDistanceMultiplier": 1,
   "VisibilityMultiplier": 1,
   "SensorRangeMultiplier": 1,
   "Signature": 0,
   "Radius": 8,
   "PunchesWithLeftArm": false,
   "MeleeDamage": 90,
   "MeleeInstability": 60,
   "MeleeToHitModifier": 0,
   "DFADamage": 75,
   "DFAToHitModifier": 0,
   "DFASelfDamage": 75,
   "DFAInstability": 75,
   "Locations": [
       {
           "Location": "Head",
           "Hardpoints": [],
           "Tonnage": 0,
           "InventorySlots": 1,
           "MaxArmor": 45,
           "MaxRearArmor": -1,
           "InternalStructure": 16
       },
       {
           "Location": "LeftArm",
           "Hardpoints": [
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },				
               {
                   "WeaponMount": "AntiPersonnel",
                   "Omni": false
               }
           ],
           "Tonnage": 0,
           "InventorySlots": 8,
           "MaxArmor": 100,
           "MaxRearArmor": -1,
           "InternalStructure": 50
       },
       {
           "Location": "LeftTorso",
           "Hardpoints": [
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },				
               {
                   "WeaponMount": "AntiPersonnel",
                   "Omni": false
               }
           ],
           "Tonnage": 0,
           "InventorySlots": 10,
           "MaxArmor": 140,
           "MaxRearArmor": 70,
           "InternalStructure": 70
       },
       {
           "Location": "CenterTorso",
           "Hardpoints": [
               {
                   "WeaponMount": "Missile",
                   "Omni": false
               },
               {
                   "WeaponMount": "Missile",
                   "Omni": false
               }
           ],
           "Tonnage": 0,
           "InventorySlots": 4,
           "MaxArmor": 200,
           "MaxRearArmor": 100,
           "InternalStructure": 100
       },
       {
           "Location": "RightTorso",
           "Hardpoints": [
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },				
           ],
           "Tonnage": 0,
           "InventorySlots": 10,
           "MaxArmor": 140,
           "MaxRearArmor": 70,
           "InternalStructure": 70
       },
       {
           "Location": "RightArm",
           "Hardpoints": [
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },
               {
                   "WeaponMount": "Energy",
                   "Omni": false
               },				
               {
                   "WeaponMount": "Ballistic",
                   "Omni": false
               },
               {
                   "WeaponMount": "Ballistic",
                   "Omni": false
               }
           ],
           "Tonnage": 0,
           "InventorySlots": 8,
           "MaxArmor": 100,
           "MaxRearArmor": -1,
           "InternalStructure": 50
       },
       {
           "Location": "LeftLeg",
           "Hardpoints": [],
           "Tonnage": 0,
           "InventorySlots": 4,
           "MaxArmor": 140,
           "MaxRearArmor": -1,
           "InternalStructure": 70
       },
       {
           "Location": "RightLeg",
           "Hardpoints": [],
           "Tonnage": 0,
           "InventorySlots": 4,
           "MaxArmor": 140,
           "MaxRearArmor": -1,
           "InternalStructure": 70
       }
   ],
   "LOSSourcePositions": [
       {
           "x": 0,
           "y": 13,
           "z": 1
       },
       {
           "x": 3,
           "y": 13,
           "z": 0
       },
       {
           "x": -3,
           "y": 13,
           "z": 0
       }
   ],
   "LOSTargetPositions": [
       {
           "x": 0,
           "y": 13,
           "z": 1
       },
       {
           "x": 3,
           "y": 13,
           "z": 0
       },
       {
           "x": -3,
           "y": 13,
           "z": 0
       },
       {
           "x": 2,
           "y": 5,
           "z": 0
       },
       {
           "x": -2,
           "y": 5,
           "z": 0
       }
   ],
   "VariantName": "DRG-5K",
   "ChassisTags": {
       "items": [],
       "tagSetSourceFile": ""
   },
   "StockRole": "Skirmisher & Brawler",
   "YangsThoughts": "The Grand Dragon 5K is a new name of an old and flawed Draconis mech. It only succeeds in being worse than the original Dragon as it uses unreliable los tech and as with all     other Draconis mechs it is only through the heroic efforts of Draconis merchwarriors that this mech is considered a threat."
 }

Add the chassis definition file

In directory (Steam Location)\steamapps\common\BATTLETECH\BattleTech_Data\StreamingAssets\data\chassis add the file chassisdef_dragon_DRG-5K.json.

{
   "MechTags": {
       "items": [
           "unit_mech",
           "unit_heavy",
           "unit_indirectFire",
           "unit_lance_tank",
           "unit_lance_vanguard",
           "unit_role_brawler",
           "unit_release"
       ],
       "tagSetSourceFile": ""
   },
   "ChassisID": "chassisdef_dragon_DRG-5K",
   "HeraldryID": null,
   "Description": {
       "Cost": 650000,
       "Rarity": 2,
       "Purchasable": true,
       "Manufacturer": null,
       "Model": null,
       "UIName": "Grand Dragon DRG-5K",
       "Id": "mechdef_dragon_DRG-5K",
       "Name": "Grand Dragon",
       "Details": "The Grand Dragon is the successor of the Dragon sporting improved weaponry. It is fielded as the Main Battle Mech of the Draconis Combine",
       "Icon": "uixTxrIcon_dragon"
   },
   "simGameMechPartCost": 1390000,
   "Version": 1,
   "Locations": [
       {
           "DamageLevel": "Functional",
           "Location": "Head",
           "CurrentArmor": 45,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 16,
           "AssignedArmor": 45,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "LeftArm",
           "CurrentArmor": 70,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 50,
           "AssignedArmor": 70,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "LeftTorso",
           "CurrentArmor": 80,
           "CurrentRearArmor": 40,
           "CurrentInternalStructure": 70,
           "AssignedArmor": 80,
           "AssignedRearArmor": 40
       },
       {
           "DamageLevel": "Functional",
           "Location": "CenterTorso",
           "CurrentArmor": 135,
           "CurrentRearArmor": 60,
           "CurrentInternalStructure": 100,
           "AssignedArmor": 135,
           "AssignedRearArmor": 60
       },
       {
           "DamageLevel": "Functional",
           "Location": "RightTorso",
           "CurrentArmor": 80,
           "CurrentRearArmor": 40,
           "CurrentInternalStructure": 70,
           "AssignedArmor": 80,
           "AssignedRearArmor": 40
       },
       {
           "DamageLevel": "Functional",
           "Location": "RightArm",
           "CurrentArmor": 70,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 50,
           "AssignedArmor": 70,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "LeftLeg",
           "CurrentArmor": 90,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 70,
           "AssignedArmor": 90,
           "AssignedRearArmor": -1
       },
       {
           "DamageLevel": "Functional",
           "Location": "RightLeg",
           "CurrentArmor": 90,
           "CurrentRearArmor": -1,
           "CurrentInternalStructure": 70,
           "AssignedArmor": 90,
           "AssignedRearArmor": -1
       }
   ],
   "inventory": [
       {
           "MountedLocation": "LeftArm",
           "ComponentDefID": "Weapon_Laser_MediumLaser_0-STOCK",
           "SimGameUID": null,
           "ComponentDefType": "Weapon",
           "HardpointSlot": 0,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "LeftTorso",
           "ComponentDefID": "Weapon_Laser_MediumLaser_0-STOCK",
           "SimGameUID": null,
           "ComponentDefType": "Weapon",
           "HardpointSlot": 0,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "LeftTorso",
           "ComponentDefID": "Ammo_AmmunitionBox_Generic_LRM",
           "SimGameUID": null,
           "ComponentDefType": "AmmunitionBox",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "LeftTorso",
           "ComponentDefID": "Ammo_AmmunitionBox_Generic_LRM",
           "SimGameUID": null,
           "ComponentDefType": "AmmunitionBox",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "CenterTorso",
           "ComponentDefID": "Weapon_LRM_LRM10_0-STOCK",
           "SimGameUID": null,
           "ComponentDefType": "Weapon",
           "HardpointSlot": 0,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "RightTorso",
           "ComponentDefID": "Weapon_Laser_MediumLaser_0-STOCK",
           "SimGameUID": null,
           "ComponentDefType": "Weapon",
           "HardpointSlot": 0,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "RightArm",
           "ComponentDefID": "Weapon_PPC_PPCER_0-STOCK",
           "SimGameUID": null,
           "ComponentDefType": "Weapon",
           "HardpointSlot": 0,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       }
       {
           "MountedLocation": "LeftLeg",
           "ComponentDefID": "Gear_HeatSink_Generic_Double",
           "SimGameUID": null,
           "ComponentDefType": "HeatSink",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },	
       {
           "MountedLocation": "LeftTorso",
           "ComponentDefID": "Gear_HeatSink_Generic_Double",
           "SimGameUID": null,
           "ComponentDefType": "HeatSink",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },
       {
           "MountedLocation": "LeftTorso",
           "ComponentDefID": "Gear_HeatSink_Generic_Double",
           "SimGameUID": null,
           "ComponentDefType": "HeatSink",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },			
       {
           "MountedLocation": "RightLeg",
           "ComponentDefID": "Gear_HeatSink_Generic_Double",
           "SimGameUID": null,
           "ComponentDefType": "HeatSink",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },	
       {
           "MountedLocation": "RightTorso",
           "ComponentDefID": "Gear_HeatSink_Generic_Double",
           "SimGameUID": null,
           "ComponentDefType": "HeatSink",
           "HardpointSlot": -1,
           "GUID": null,
           "DamageLevel": "Functional",
           "prefabName": null,
           "hasPrefabName": false
       },					
   ]
 }

Make the files visible ingame

Add the three files to the loading file used by Battletch, that is add to file (Steam Location)\steamapps\common\BATTLETECH\BattleTech_Data\StreamingAssets\data\VersionManifest.csv the lines

chassisdef_dragon_DRG-5K,ChassisDef,data/chassis/chassisdef_dragon_DRG-5K.json,15,2018-02-27T00:45:27.7565230Z,2018-04-05T20:51:06.8057259Z,,,False,0,False
mechdef_dragon_DRG-5K,MechDef,data/mech/mechdef_dragon_DRG-5K.json,15,2018-02-27T00:45:28.4155235Z,2018-04-05T01:11:44.5915965Z,,,False,0,False
movedef_dragon_DRG-5K,MovementCapabilitiesDef,data/movement/movedef_dragon_DRG-5K.json,8,2018-02-27T00:45:28.5045251Z,2018-04-05T01:11:44.7155966Z,,,False,0,False