Register Register

Author Topic: Doing some modding - wondering how to add a heat sink type?  (Read 412 times)

ArneHD

  • Recruit
  • *
  • Posts: 2
Hi, I'm doing some light modding for my own amusement and had an idea to add a trippel heat sink, one that explodes when struck. Well, I've been able to add a piece of equipment, a lead weight that does nothing except take up a critical slot and weigh 1 ton, and I was hoping for some advice on how heat sinks are handled in the code so I can figure out what I need to add and where to do it.

I apologize if this is the wrong forum to ask on, but I thank you for your time in any case.

Hammer

  • Numerorum Malleo
  • Global Moderator
  • Major
  • *
  • Posts: 3740
    • MegaMek Website
Re: Doing some modding - wondering how to add a heat sink type?
« Reply #1 on: 21 November 2022, 17:23:16 »
Hi, you've picked a piece of equipment that touches everywhere in the code. I'm not one of the coders but your best bet is going to be walking thru the code looking for references to heat sinks.

I'd start with the IDE to look for references to their flags in MiscType.
MegaMek Projects Wiki
Bug Trackers
MegaMek Tracker
MekHQ Tracker
MegaMekLab Tracker
New Units and RAT's aren't added until after the 2 month release moratorium is passed.


ArneHD

  • Recruit
  • *
  • Posts: 2
Re: Doing some modding - wondering how to add a heat sink type?
« Reply #2 on: 01 December 2022, 13:40:42 »
Hi, you've picked a piece of equipment that touches everywhere in the code. I'm not one of the coders but your best bet is going to be walking thru the code looking for references to heat sinks.

I'd start with the IDE to look for references to their flags in MiscType.

Sorry for the late response, but that is more or less what I've done. I now do actually have a heat sink type (the "Cold Weight" since I copied my "Lead Weight" for a lot of it) that shows up, but I'm not 100% certain which change I did actually made that happen.

But thanks for your time anyway, I'll let everybody know if I manage to actually pull this off.