Adding Gear to a turret?

  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

Sigil

Captain
11 Badges
Feb 28, 2018
315
21
  • Stellaris
  • BATTLETECH
  • Age of Wonders III
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
Can you add gear, such as a targeting and tracking system, to a turret?

I've modded one into the turretDef, but it doesn't have any effect.
 

Pode

Lt. General
70 Badges
May 3, 2005
1.473
91
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • 500k Club
  • BATTLETECH - Backer
  • BATTLETECH - Beta Backer
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings II
  • Mount & Blade: Warband
  • Stellaris Sign-up
  • Stellaris
  • Deus Vult
  • Europa Universalis: Rome
  • Rome: Vae Victis
  • Europa Universalis III: Collection
  • Majesty 2
  • Sword of the Stars
  • Naval War: Arctic Circle
  • Europa Universalis IV
  • Victoria: Revolutions
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • Age of Wonders III
  • Magicka
  • Pride of Nations
  • War of the Roses
  • Sengoku
  • Warlock: Master of the Arcane
  • The Showdown Effect
  • Dungeonland
  • Knights of Pen and Paper +1 Edition
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.
 

Sigil

Captain
11 Badges
Feb 28, 2018
315
21
  • Stellaris
  • BATTLETECH
  • Age of Wonders III
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
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.
 

Hopalong

Sergeant
5 Badges
Apr 24, 2018
66
7
sites.google.com
  • Stellaris
  • BATTLETECH
  • Age of Wonders III
  • BATTLETECH - Backer
  • Shadowrun Returns
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:

Sigil

Captain
11 Badges
Feb 28, 2018
315
21
  • Stellaris
  • BATTLETECH
  • Age of Wonders III
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
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.
 

Pode

Lt. General
70 Badges
May 3, 2005
1.473
91
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • 500k Club
  • BATTLETECH - Backer
  • BATTLETECH - Beta Backer
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings II
  • Mount & Blade: Warband
  • Stellaris Sign-up
  • Stellaris
  • Deus Vult
  • Europa Universalis: Rome
  • Rome: Vae Victis
  • Europa Universalis III: Collection
  • Majesty 2
  • Sword of the Stars
  • Naval War: Arctic Circle
  • Europa Universalis IV
  • Victoria: Revolutions
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • Age of Wonders III
  • Magicka
  • Pride of Nations
  • War of the Roses
  • Sengoku
  • Warlock: Master of the Arcane
  • The Showdown Effect
  • Dungeonland
  • Knights of Pen and Paper +1 Edition
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.
 

Eximar

Major
6 Badges
Feb 23, 2018
531
44
  • BATTLETECH
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
You might want to search for Achmed's Turrets for Terrorists on Nexus and see if anything in that is helpful.
 
  • 1Like
Reactions: