Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Gun Charge Blaster Vanilla Mech Weapon no Melee Damage Value Error #1220

@Nyamses

Description

@Nyamses

Reviving issue #1177 , which I can consistently replicate on a fresh install with only CE 1.1 loaded.

Whenever I try to look at the infocard/information window of the Heavy Charge Blaster, I get the following repeating error on the log:

Trying to get stat MeleeDamageAverage from Gun_ChargeBlasterHeavy which has no support for Combat Extended.

However, I managed to fix it by changing the following in Patches\Core\ThingsDefs_Misc\Weapons_Guns.xml (lines 1151 and 1152) :

<Operation Class="PatchOperationAdd"> <xpath>Defs/ThingDef[defName="Gun_ChargeBlasterHeavy"]</xpath>

to

<Operation Class="PatchOperationReplace"> <xpath>Defs/ThingDef[@Name="Gun_ChargeBlasterHeavyBase"]/tools</xpath>

I can now look at the information of the Heavy Charge Blaster without the error popping up and it displays the correct melee DPS, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions