• 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.

ShelxCNS

Recruit
4 Badges
Nov 17, 2018
6
2
  • BATTLETECH
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
Basic question, but I can't find the data anywhere. What is the WeaponSubTypeID value for the ultra and LB-X autocannons, and the AmmoCategoryID for LB-X autocannons? I know the Ultra autocannons use the same WeaponCategoryID, WeaponTypeID, and AmmoCategoryID as the standard autocannon. From what I can tell looking at the MetadataDatabase.db file, each model will have it's own value, ie; the Ultra AC-5 has a different WeaponSubtypeID from the Ultra AC-10. That means I need 12 total values; the eight WeaponSubTypeID values and the four LB-X AmmoCategoryID values.

Thanks
 
Basic question, but I can't find the data anywhere. What is the WeaponSubTypeID value for the ultra and LB-X autocannons, and the AmmoCategoryID for LB-X autocannons? I know the Ultra autocannons use the same WeaponCategoryID, WeaponTypeID, and AmmoCategoryID as the standard autocannon. From what I can tell looking at the MetadataDatabase.db file, each model will have it's own value, ie; the Ultra AC-5 has a different WeaponSubtypeID from the Ultra AC-10. That means I need 12 total values; the eight WeaponSubTypeID values and the four LB-X AmmoCategoryID values.

Thanks
The DLC data is stored in a different area. You can't normally open and access them in the same way. However, HBS has posted the .JSON info for us. I don't recall if I can paste the link, but google "caardappel-hbs git Battletech DLC" and the github design data should be the first result.
 
  • 1Like
Reactions:
I have looked at those repositories, and unfortunately, they don't have the data I need. What I am looking for is the tag value (a number) used in the database file itself that is linked to the weapons in question. The field in the .json files that call to that value has the "proper name", like "LB2X" as the weapon subtype, but not the actual tag value, which makes it much harder to create the new entries I want to, because I don't have the correct tag values. The only way I have come up with to find out what the tag values are is to trial and error it, but that's the last resort because I'd basically be doing a near-random search for the correct tag value.
 
Is this the same as the weapon subtype enums? I don't see a similar list for the ammo that has the LBX and UAC listed, it's probably somewhere inside the DLC packages.

Code:
[SerializableEnum("WeaponSubType")]
    public enum WeaponSubType
    {
        NotSet,
        AC2,
        AC5,
        AC10,
        AC20,
        Gauss,
        SmallLaser,
        MediumLaser,
        LargeLaser,
        PPC,
        LRM5,
        LRM10,
        LRM15,
        LRM20,
        SRM2,
        SRM4,
        SRM6,
        Flamer,
        MachineGun,
        Melee,
        AMS,
        DFA,
        AIImaginary,
        SmallLaserPulse,
        MediumLaserPulse,
        LargeLaserPulse,
        SmallLaserER,
        MediumLaserER,
        LargeLaserER,
        PPCER,
        UAC2,
        UAC5,
        UAC10,
        UAC20,
        LB2X,
        LB5X,
        LB10X,
        LB20X,
        SRMInferno,
        Narc,
        PPCSnub,
        TAG,
        COILS,
        COILM,
        COILL
    }
 
Yes, I think it is. The entry order matches exactly through the ER PPC, so I bet the ordering with numbers follows along the same. Thanks, much appreciated. I agree that the ammo is buried inside a DLC, but this may allow a way to use it without having to create an entire new set of entries.
 
  • 1Like
Reactions: