• 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.
The Colo Turrets mod adds new turrets. Maybe you need to add to both the turretdef and the turret chassisdef? The chassis may not have any slots to put gear in so your turretdef isn't valid.
 
The Colo Turrets mod adds new turrets. Maybe you need to add to both the turretdef and the turret chassisdef? The chassis may not have any slots to put gear in so your turretdef isn't valid.

A little more guidance on where and how I can find this mod would be greatly appreciated ;) I'm not familiar with it.
 
Well this is a interesting, I haven't really done a turret with a upgrade like this before.

So I just tried to copy the code format from a turretdef and that didn't work.
Then I tried the format from a vehicledef_MOBILEHQ Battle Computer and that didn't work either, but I did take out "MountedLocation": "Turret".

I did notice that turretdefs lack a Location code section.
Like how a mechdef has right arm, left leg, etc.
Or a vehicledef has a front, back, etc.

And in game the UI doesn't show Ammo bins.
Maybe there is something "hardcoded" in there about how turrets work?

Or Upgrades need a Location to define when they take a crit hit?
Maybe try variations of adding Location code to the turretChassis and turretdef?

Also could try variations of MountedLocation, like null or just empty brackets:
"MountedLocation": "Turret"
"MountedLocation": null
"MountedLocation": notset
"MountedLocation": ""
etc

Of course that ends up being alot of variations to try, be sure to track what you do so you don't duplicate your efforts and maybe save any errors logs.

If nothing works you can try to "trick" the system with a Ammo bin (since that's what turrets seem to like) with some Upgrade code. This is a old Inferno that I did, its designed to be balanced with alot of other games changes in my personal mod, but you can see when you can dump alot of code in it.
Code:
{
    "AmmoID" : "Ammunition_SRM",
    "Capacity" : 100,
    "Description" : {
        "Cost" : 50000,
        "Rarity" : 0,
        "Purchasable" : true,
        "Manufacturer" : "Generic",
        "Model" : "SRM",
        "UIName" : "Ammo SRM Inferno <color=#85DBF6>(100)</color>",
        "Id" : "Ammo_AmmunitionBox_Generic_SRM_Inferno",
        "Name" : "Short Range Missile Inferno Ammo (100)",
        "Details" : "Source-Battletech Master Rules r, pg. 141. +6 Heat damage to enemy Mechs. +15% chance to Crit. -99% Armor Damage. Mech maximum heat reduced by 33, in order to prevent Inferno Ammo explosion.\n\nAll normal SRM Ammo bins will also act like a Inferno Ammo bin.",
        "Icon" : "uixSvgIcon_ammoBox_Missile"
    },
    "BonusValueA" : "+6 Heat Dmg.",
    "BonusValueB" : "",
    "ComponentType" : "AmmunitionBox",
    "ComponentSubType" : "Ammunition",
    "PrefabIdentifier" : "",
    "BattleValue" : 0,
    "InventorySize" : 1,
    "Tonnage" : 1,
    "CanExplode" : true,
    "AllowedLocations" : "All",
    "DisallowedLocations" : "All",
    "CriticalComponent" : false,
    "statusEffects" : [
        {
            "durationData" : {
                "duration" : -1,
                "ticksOnActivations" : false,
                "useActivationsOfTarget" : false,
                "ticksOnEndOfRound" : false,
                "ticksOnMovements" : false,
                "stackLimit" : 1,
                "clearedWhenAttacked" : false
            },
            "targetingData" : {
                "effectTriggerType" : "Passive",
                "triggerLimit" : 0,
                "extendDurationOnTrigger" : 0,
                "specialRules" : "NotSet",
                "effectTargetType" : "Creator",
                "range" : 0,
                "forcePathRebuild" : false,
                "forceVisRebuild" : false,
                "showInTargetPreview" : false,
                "showInStatusPanel" : false
            },
            "effectType" : "StatisticEffect",
            "Description" : {
                "Id" : "StatusEffect-SRMInfernoAmmoHeatDamage",
                "Name" : "SRM Inferno Ammo Heat Damage.",
                "Details" : "SRM Inferno Ammo Heat Damage.",
                "Icon" : "uixSvgIcon_equipment_TTS"
            },
            "nature" : "Buff",
            "statisticData" : {
                "appliesEachTick" : false,
                "effectsPersistAfterDestruction" : false,
                "statName" : "HeatDamagePerShot",
                "operation" : "Float_Add",
                "modValue" : "6",
                "modType" : "System.Single",
                "additionalRules" : "NotSet",
                "targetCollection" : "Weapon",
                "targetWeaponCategory" : "Missile",
                "targetWeaponType" : "SRM",
                "targetAmmoCategory" : "SRM",
                "targetWeaponSubType" : "NotSet"
            },
            "tagData" : null,
            "floatieData" : null,
            "actorBurningData" : null,
            "vfxData" : null,
            "instantModData" : null,
            "poorlyMaintainedEffectData" : null
        },
{
            "durationData" : {
                "duration" : -1,
                "ticksOnActivations" : false,
                "useActivationsOfTarget" : false,
                "ticksOnEndOfRound" : false,
                "ticksOnMovements" : false,
                "stackLimit" : 1,
                "clearedWhenAttacked" : false
            },
            "targetingData" : {
                "effectTriggerType" : "Passive",
                "triggerLimit" : 0,
                "extendDurationOnTrigger" : 0,
                "specialRules" : "NotSet",
                "effectTargetType" : "Creator",
                "range" : 0,
                "forcePathRebuild" : false,
                "forceVisRebuild" : false,
                "showInTargetPreview" : false,
                "showInStatusPanel" : false
            },
            "effectType" : "StatisticEffect",
            "Description" : {
                "Id" : "StatusEffect-SRMInfernoAmmoLessDamage",
                "Name" : "SRM Inferno Ammo Less Damage",
                "Details" : "SRM Inferno Ammo Less Damage.",
                "Icon" : "uixSvgIcon_equipment_TTS"
            },
            "nature" : "Buff",
            "statisticData" : {
                "appliesEachTick" : false,
                "effectsPersistAfterDestruction" : false,
                "statName" : "DamagePerShot",
                "operation" : "Float_Multiply",
                "modValue" : "0.01",
                "modType" : "System.Single",
                "additionalRules" : "NotSet",
                "targetCollection" : "Weapon",
                "targetWeaponCategory" : "Missile",
                "targetWeaponType" : "SRM",
                "targetAmmoCategory" : "SRM",
                "targetWeaponSubType" : "NotSet"
            },
            "tagData" : null,
            "floatieData" : null,
            "actorBurningData" : null,
            "vfxData" : null,
            "instantModData" : null,
            "poorlyMaintainedEffectData" : null
        },
{
            "durationData" : {
                "duration" : -1,
                "ticksOnActivations" : false,
                "useActivationsOfTarget" : false,
                "ticksOnEndOfRound" : false,
                "ticksOnMovements" : false,
                "stackLimit" : 1,
                "clearedWhenAttacked" : false
            },
            "targetingData" : {
                "effectTriggerType" : "Passive",
                "triggerLimit" : 0,
                "extendDurationOnTrigger" : 0,
                "specialRules" : "NotSet",
                "effectTargetType" : "Creator",
                "range" : 0,
                "forcePathRebuild" : false,
                "forceVisRebuild" : false,
                "showInTargetPreview" : false,
                "showInStatusPanel" : false
            },
            "effectType" : "StatisticEffect",
            "Description" : {
                "Id" : "StatusEffect-SRMInfernoAmmoMoreCrits",
                "Name" : "SRM Inferno More Crit Damage",
                "Details" : "Inferno Ammo has a +15% chance to Crit.",
                "Icon" : "uixSvgIcon_genericDiamond"
            },
            "nature" : "Buff",
            "statisticData" : {
                "appliesEachTick" : false,
                "effectsPersistAfterDestruction" : false,
                "statName" : "CriticalChanceMultipler",
                "operation" : "Float_Multiply",
                "modValue" : "1.15",
                "modType" : "System.Single",
                "additionalRules" : "NotSet",
                "targetCollection" : "Weapon",
                "targetWeaponCategory" : "Missile",
                "targetWeaponType" : "SRM",
                "targetAmmoCategory" : "SRM",
                "targetWeaponSubType" : "NotSet"
            },
            "tagData" : null,
            "floatieData" : null,
            "actorBurningData" : null,
            "vfxData" : null,
            "instantModData" : null,
            "poorlyMaintainedEffectData" : null
        }
{
            "durationData" : {
                "duration" : -1,
                "ticksOnActivations" : false,
                "useActivationsOfTarget" : false,
                "ticksOnEndOfRound" : false,
                "ticksOnMovements" : false,
                "stackLimit" : 1,
                "clearedWhenAttacked" : false
            },
            "targetingData" : {
                "effectTriggerType" : "Passive",
                "triggerLimit" : 0,
                "extendDurationOnTrigger" : 0,
                "specialRules" : "NotSet",
                "effectTargetType" : "Creator",
                "range" : 0,
                "forcePathRebuild" : false,
                "forceVisRebuild" : false,
                "showInTargetPreview" : false,
                "showInStatusPanel" : true
            },
            "effectType" : "StatisticEffect",
            "Description" : {
                "Id" : "StatusEffect-SRMInfernoAmmoMechHeat",
                "Name" : "SRM Inferno Ammo",
                "Details" : "+6 Heat damage to enemy Mechs. +15% chance to Crit. -99% Armor Damage. Mech maximum heat reduced by 33, in order to prevent Inferno Ammo explosion.",
                "Icon" : "uixSvgIcon_genericDiamond"
            },
            "nature" : "Buff",
            "statisticData" : {
                "appliesEachTick" : false,
                "effectsPersistAfterDestruction" : false,
                "statName" : "MaxHeat",
                "operation" : "Int_Add",
                "modValue" : "-33",
                "modType" : "System.Int32",
                "additionalRules" : "NotSet",
                "targetCollection" : "NotSet",
                "targetWeaponCategory" : "NotSet",
                "targetWeaponType" : "NotSet",
                "targetAmmoCategory" : "NotSet",
                "targetWeaponSubType" : "NotSet"
            },
            "tagData" : null,
            "floatieData" : null,
            "actorBurningData" : null,
            "vfxData" : null,
            "instantModData" : null,
            "poorlyMaintainedEffectData" : null
        }
    ],
    "ComponentTags" : {
        "items" : [
            "component_type_stock",
            "component_type_variant",
            "component_type_variant1"
        ],
        "tagSetSourceFile" : ""
    }
}

The Colo Turrets mod adds new turrets
I don't know anything about this, maybe head over to Nexus and search "turrets"?

The chassis may not have any slots to put gear in so your turretdef isn't valid.
The vehiclechassisdef_MOBILEHQ does not have a "Upgrade" slot, so this might not be it.

If you happen to solve this, please let us know, at some point I may get back to my 3049 mod and might want to experiment as well. :)
 
  • 1
Reactions:
Your turret code basically adds Inferno ammunition to a SRM launcher.
This issue with stashing code in "statusEffects" of an AmmoBox is that the "Upgrade" equipment I'm trying to add is basically a passive effect, for example a +3 Defense Gyro. Thanks for the suggestion though, this method would allow for some interesting enhanced turret ammunition.
 
A little more guidance on where and how I can find this mod would be greatly appreciated ;) I'm not familiar with it.
I forgot, Colo pulled most of his stuff down.
 
You might want to search for Achmed's Turrets for Terrorists on Nexus and see if anything in that is helpful.
 
  • 1Like
Reactions: