Add Pilots

From Battletech Modding Wiki
Revision as of 19:42, 8 June 2017 by Rob (talk | contribs) (Example new Mechwarrior: Phelan Kell)
Jump to: navigation, search

If you want to modify an existing pilot make sure to backup the original file first

The pilot files can be found in:
SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets\data\pilot\
Modifying a pilot simply requires that you adjust the existing .json file.

Abilities

Pilots can have multiple abilities, even more than the 4 suggested by the UI, just add the to the list. The abilities can be found in SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets\data\abilities\

or by looking at Existing Pilot Abilities

  "AbilityDefNames" :
         [
            "AbilityDefG3"
      	  "AbilityDefG5"
      	  "AbilityDefGu5"
      	  "AbilityDefP3"
      	  "AbilityDefP5"
      	  "AbilityDefT4"
      	  "AbilityDefT5"
         ]

Voices

You can change the 'voice' of the Mechwarrior by changing this line

"Voice" : "f_glum01_russian",

valid voices can be found in the other pilots files.

Mechwarrior Skills

You can change your piloting, gunnery, tactics and guts by modifying their values here:

"BaseGunnery" : 6,
"BasePiloting" : 3,
"BaseGuts" : 8,
"BaseTactics" : 5,

Adding a new Pilot.

If you want to create a new pilot the easiest way is to copy one of the existing pilots and modify it to your liking I recommend following the Mod Distribution rules for making new content

There are a few important things you need to take into account however.

You need to give it a UNIQUEID

"Description" : {
"Id" : "pilot_kbeta_buckshot",

so for your own pilot you might make this look like:

"Description" : {
"Id" : "pilot_pkell",

you likely also want to give it unique in game names so the end description area might look like this :

"Description" : {
"Id" : "pilot_pkell",
"Name" : "Wolf",
"Details" : "He's out of time.. from 3050 to the high time of his father.. ",
"FirstName" : "Phelan",
"LastName" : "Kell",
"Icon" : "Wolf"
},

if you've added new images for Mechwarrior's you could even change the "icon" line to that.

In this case I have made Phelan Kell as an example he will show up as such with his own unique icon in game.

It is also important that the pilot has the Tag for the beta

  "PilotTags" : {
            "items" : [
      		"pilot_release_ksbeta"
            ],
  • Make sure the abilities are valid if you copied one of the pilots.

Save the JSON file as a name you will remember! eg pilot_pkell.json in with the other pilots!

The last and very important step is to add the new pilot to the manifest file located at

SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets\data\VersionManifest.csv

add the new pilot line at the end like so (this presumes you are using the folder structure as suggested in Mod Distribution:

pilot_pkell,PilotDef,mods/<mymodname>/pilot/pilot_pkell.json,0,2017-05-17T08:26:05.0000000Z,2017-05-17T08:26:05.0000000Z,,,0

The first column is the ID just set in the json file, the third is the path to the json, relative to SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets. The rest does not have to be changed the game is not checking the timestamp.

Example new Mechwarrior: Phelan Kell

Please note that for this to show a correct mechwarrior face in game you will need to also make the "Icon"

This becomes mods/<mymodname>/pilot/pilot_pkell.json

{
"Description" : {
 "Id" : "pilot_pkell",
 "Name" : "Wolf",
 "Details" : "Out of time, a young Phelen Patrick Kell finds himself in the days of his fathers glory.",
 "FirstName" : "Phelan",
 "LastName" : "Kell",
 "Icon" : "Kell"
},
"PilotTags" : {
 "items" : [
		"pilot_release_ksbeta"
],
 "tagSetSourceFile" : ""
},
"BaseGunnery" : 8,
"BasePiloting" : 5,
"BaseGuts" : 8,
"BaseTactics" : 5,
"Injuries" : 0,
"Voice" : "m_rizzo01",
"AbilityDefNames" :
[
 "AbilityDefGu5",
 "AbilityDefT5",
 "AbilityDefG3",
 "AbilityDefG5",
 "AbilityDefP5"
]
}
PKell in game.
His VersionManifest.csv entry (just add it to the last of the line)
pilot_pkell,PilotDef,mods/<mymodname>/pilot/pilot_pkell.json,0,2017-05-17T08:26:05.0000000Z,2017-05-17T08:26:05.0000000Z,,,0