Issue resolved by KMiSSioN.
When creating custom ammo tags use:
When creating custom ammo tags use:
"ammoCategoryID" NOT "Category"
CAC will handle it anyway allowing both field names to be used, but you are not using CAC so you HAVE to operate new field style
body.
Hello everybody,
I have been searching for a simple way to MOD the base game to include ammo types for weapons I am creating. I know there has been some forms of implementation of this with the addition of LBX ammo types to the game.
Currently I have my weapon JSON, Ammunition_Chem JSON, and ammunitionBox_Chem JSON files completed.
If i add my ammo type to the enumerated AmmoCategory.JSON as follows
The game crashes as soon as the Category Name "Chem" to the ammunition_Chem.JSON file. It seems like the act of invoking the new name causes the game to enter an eternal loading state.
If i Delete my input and just use the unused AMS Ammo type everything works fine.
If it helps my MODTEK mod file calls the AmmoCategory.json and manifest as follows:
Is there a hard coded limit to the number of ammo types? Is there any way to fix this without using other mods? Opening the MDD with a SQL viewer i noticed that the AmmoCategory in the Database file does not list category names or friendly names. Is this information referenced somewhere else?
Ultimately I am looking to completely rework all of the mechs, and weapons to create an entirely new world. I've enjoyed well over 300 hours of this game and I want to take my knowledge and skill in editing it a bit further.
I know user Kmission has done something like this with Harmony ( I Believe thats what he called the magic) but I am not sure if he did it post or pre enumeration changes
I have been searching for a simple way to MOD the base game to include ammo types for weapons I am creating. I know there has been some forms of implementation of this with the addition of LBX ammo types to the game.
Currently I have my weapon JSON, Ammunition_Chem JSON, and ammunitionBox_Chem JSON files completed.
If i add my ammo type to the enumerated AmmoCategory.JSON as follows
{
"ID" : 20,
"Name" : "Chem",
"FriendlyName" : "Chemical Ammo",
"IsBallistic" : true,
"IsMissile" : false,
"IsEnergy" : true,
"IsSupport" : false,
"UsesInternalAmmo" : false,
"UIColorRef" : "Energy",
"FallbackUIColor" : null,
"Icon" : "EnergyHardpointIcon",
"OutOfAmmoAudioVOEvent" : null
},
"ID" : 20,
"Name" : "Chem",
"FriendlyName" : "Chemical Ammo",
"IsBallistic" : true,
"IsMissile" : false,
"IsEnergy" : true,
"IsSupport" : false,
"UsesInternalAmmo" : false,
"UIColorRef" : "Energy",
"FallbackUIColor" : null,
"Icon" : "EnergyHardpointIcon",
"OutOfAmmoAudioVOEvent" : null
},
If i Delete my input and just use the unused AMS Ammo type everything works fine.
If it helps my MODTEK mod file calls the AmmoCategory.json and manifest as follows:
"DataAddendumEntries":[
{
"name": "BattleTech.AmmoCategoryEnumeration",
"path": "AmmoCategory.json"
}
],
"Manifest": [
{ "Type": "AmmunitionBoxDef", "Path": "ammunitionBox" },
{ "Type": "AmmunitionDef", "Path": "ammunition" },
{ "Type": "WeaponDef", "Path": "weapons" },
{ "Type": "HeatSinkDef", "Path": "heatsinks" },
{ "Type": "ItemCollectionDef", "Path": "itemcollection" }
],
{
"name": "BattleTech.AmmoCategoryEnumeration",
"path": "AmmoCategory.json"
}
],
"Manifest": [
{ "Type": "AmmunitionBoxDef", "Path": "ammunitionBox" },
{ "Type": "AmmunitionDef", "Path": "ammunition" },
{ "Type": "WeaponDef", "Path": "weapons" },
{ "Type": "HeatSinkDef", "Path": "heatsinks" },
{ "Type": "ItemCollectionDef", "Path": "itemcollection" }
],
Ultimately I am looking to completely rework all of the mechs, and weapons to create an entirely new world. I've enjoyed well over 300 hours of this game and I want to take my knowledge and skill in editing it a bit further.
I know user Kmission has done something like this with Harmony ( I Believe thats what he called the magic) but I am not sure if he did it post or pre enumeration changes
Last edited: