Skip to content
This repository has been 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

Open
Nyamses opened this issue Apr 14, 2020 · 0 comments
Open

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

Nyamses opened this issue Apr 14, 2020 · 0 comments

Comments

@Nyamses
Copy link

Nyamses commented Apr 14, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant