Lance Presets

From Battletech Modding Wiki
Jump to: navigation, search

The lance definition are found in the folder SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets\data\lance\

The files can be either directly change or a new one can be created, preferably by copying and existing one and changing it. If changes are made a backup should be created first.

The file itself contains some basic info, like ID, name, cost and the lancetags. It is important that the tags contain at least the beta tag or the lance will not show up in game.

   "LanceTags" : {
      "items" : [
         "lance_bracket_high",
         "lance_bracket_skirmish",
         "lance_release_ksbeta",
         "lance_type_assault",
         "lance_type_heavy"
      ],
      "tagSetSourceFile" : "Tags/LanceTags"
   },

The most important part is the list of mechs and the pilots assigned to them, make sure that all mechs and pilots exits.


The last step is to add the new lance definition to the manifest file at SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets\data\VersionManifest.csv


lancedef_test,LanceDef,data/lance/lancedef_test.json,0,2017-05-17T08:26:05.0000000Z,2017-05-17T08:26:05.0000000Z,,,0 

The timestamp does not matter and the line can just be copied. The first column is the lancedef ID, the third one is the corresponding json file.

And no the

lancedef_mech_light_stienerScoutLance.json

is already in the game, no need to create one, though at 42324000 it will be hard to use and it does not have the beta tag.