• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

jrhmurray

Corporal
5 Badges
Dec 13, 2021
35
9
  • BATTLETECH
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
Hi,

I am a total beginner to modding. I have read some of the stickied topics about modding and looked at what others have done to create mods.

Initially, all I wanted was to make some advanced weapons more commenly available but one I started modding, I got carried away and started modding more stuff. All the mods I created appear in the Skirmish section as I made almost everything stock items.

I should mention, none of the mods are my total creations, basically, I copied and pasted from other mods.

I have two problems I hope someone can look at and give me advice.

First, none of the advanced weapons I created have ever appeared in the game, despite me making them Stock weapons. I hoped some might be listed once the Black Market was available but unfortuneately not.

Secondly, this is where I decided to create my own mechs already fitted with the advanced weaponry. I started a new campaign with Debug installed and added some of the newly created mechs to the mech bay. The couple of mechs I have tried out in battle work great, absolute killing machines. The problem is, when I place one of these advanced mechs into storage, I can't bring it back from storage.


This is an excerpt from the Output Log.

Uploading Crash Report
Unity [ERROR] KeyNotFoundException: No MechDef entry in 'MechDefs' with id: 'mechdef_centurion_CN9-Ghost'

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

KeyNotFoundException: No MechDef entry in 'MechDefs' with id: 'mechdef_centurion_CN9-Ghost'
at HBS.Data.DictionaryStore`1[T].Get (System.String id) [0x000a8] in <e8868b5137bd4c658e6c5bc6d4505d19>:0
at BattleTech.SimGameState.ReadyMech (System.Int32 baySlot, System.String id) [0x000a2] in <e8868b5137bd4c658e6c5bc6d4505d19>:0
at BattleTech.UI.MechBayPanel.OnReadyMech (BattleTech.UI.MechBayChassisUnitElement chassisElement) [0x0004c] in <e8868b5137bd4c658e6c5bc6d4505d19>:0



I have attached the full ouput log plus my mods folder. Please can someone look to see where I have gone wrong. I suspect there is something missing from the mod.json file but I don't know what it is.
 

Attachments

  • output_log.txt
    24,3 KB · Views: 0
  • Jims Mods.zip
    81,6 KB · Views: 0
The .zip file you attached contains two mechdef_centurion_CN9-Murray-Ghost.json, one each in the base and merge folders.

However your message states: Unity [ERROR] KeyNotFoundException: No MechDef entry in 'MechDefs' with id: 'mechdef_centurion_CN9-Ghost'
 
Last edited:
The .zip file you attached contains two mechdef_centurion_CN9-Murray-Ghost.json, one each in the base and merge folders.

However your message states: Unity [ERROR] KeyNotFoundException: No MechDef entry in 'MechDefs' with id: 'mechdef_centurion_CN9-Ghost'

Thank you very much, changing the names so both are the saame has sorted the problem.

I also removed the merge instructions that you mentioned earlier.