# Strange issue with "artifact\_data"

**URL:** <https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003>\
**Category:** The Garage\
**Created:** [November 29, 2015, 6:36pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003 "2015-11-29T18:36:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marte](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/marte/32/1224_2.png) [@Marte](https://discourse.cataclysmdda.org/u/Marte)\
**Post date:** [November 29, 2015, 6:36pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/1 "2015-11-29T18:36:35Z")

</div>

I’m working on a mod, playing with battery powered tools with “artifact\_data” embedded in the code (calling special effects…) and I think have found a strange issue… (Tested on last experimental).

For example, this is the code of a night visor that enhance PER…

{  
“id”: “cddaxp\_goggles\_artnv”,  
“type”: “TOOL\_ARMOR”,  
“category” : “clothing”,  
“symbol”: “[”,  
“color”: “dark\_gray”,  
“name” : “tactical night visor”,  
“description”: “A Miltech battery-powered tactical visor that amplify ambient light, with ‘HUD’ for enhancing perception purposes. Use it to turn them on.”,  
“flags” : [“FRAGILE”],  
“price”: 200000,  
“material”: [“plastic”, “aluminum”],  
“weight” : 1050,  
“volume”: 5,  
“bashing”: 0,  
“cutting”: 0,  
“to\_hit” : -3,  
“max\_charges”: 300,  
“initial\_charges”: 0,  
“charges\_per\_use”: 6,  
“turns\_per\_charge”: 0,  
“ammo”: “battery”,  
“revert\_to”: “null”,  
“use\_action”: {  
“type”: “transform”,  
“msg”: “You activate your %s”,  
“target”: “cddaxp\_goggles\_artnv\_on”,  
“active”: true,  
“need\_charges”: 6,  
“need\_charges\_msg”: “The %s’s batteries are dead.”  
},  
“covers” : [“EYES”],  
“warmth” : 10,  
“environmental\_protection” : 8,  
“encumbrance” : 30,  
“coverage” : 100,  
“material\_thickness” : 2  
},  
{  
“id”: “cddaxp\_goggles\_artnv\_on”,  
“type”: “TOOL\_ARMOR”,  
“category” : “clothing”,  
“symbol”: “[”,  
“color”: “dark\_gray”,  
“name”: “tactical night visor (on)”,  
“description”: “A Miltech battery-powered tactical visor that amplify ambient light, with ‘HUD’ for enhancing perception purposes. Use it to turn them on.”,  
“flags” : [“GNV\_EFFECT”, “FRAGILE”],  
“price”: 200000,  
“material”: [“plastic”, “aluminum”],  
“weight” : 1050,  
“volume”: 5,  
“bashing”: 0,  
“cutting”: 0,  
“to\_hit” : -3,  
“max\_charges”: 300,  
“initial\_charges”: 0,  
“charges\_per\_use”: 0,  
“turns\_per\_charge”: 5,  
“ammo”: “battery”,  
“artifact\_data” : {  
“effects\_worn”: [“AEP\_PER\_UP”]  
},  
“revert\_to”: “cddaxp\_goggles\_artnv”,  
“use\_action”: {  
“type”: “auto\_transform”,  
“msg”: “Your %s deactivates.”,  
“target”: “cddaxp\_goggles\_artnv”  
},  
“covers” : [“EYES”],  
“warmth” : 25,  
“environmental\_protection” : 8,  
“encumbrance” : 15,  
“coverage” : 100,  
“material\_thickness” : 2  
}

Well, I have found that this armor-tool works, but only if it is layered in the first OR in the last position in the body clothes list (using “+” and “s” function, in game).

If it is between other clothes, “effects\_worn”: [“AEP\_PER\_UP”] vanish! And this effect is also interactive (I can nullify/restart my ACTIVE battery-artifact, relayering it…).

Is this intended or I’m milking in a bad way in-game functions?

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [November 29, 2015, 7:08pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/2 "2015-11-29T19:08:02Z")

</div>

Hmm. That bodes unwell. Take a look at arcana mod and you’ll see 2 items that are meant to have artifact effects when toggled on, and additionally two more have always-on won effects.

I’m not sure I fully understand the nature of this artifact layering issue.

---

<div class="post-metadata">

**Author:** ![Marte](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/marte/32/1224_2.png) [@Marte](https://discourse.cataclysmdda.org/u/Marte)\
**Post date:** [November 29, 2015, 7:29pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/3 "2015-11-29T19:29:45Z")

</div>

In fact, the issue is totally strange (not perfectly reproducibile…), but I have the feeling is something about interaction… I’ve made another try and the visor works even changing his layer… Then I’ve put on a Jedi cloak and ZAP! For no reason the artifact effect shut off! 😃

But I really need to make a test in a fresh world. May be the actual is corrupted…

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [November 29, 2015, 7:43pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/4 "2015-11-29T19:43:04Z")

</div>

Very odd. So it’s reshuffling layers, not activating the item, that causes the oddity? o.O

EDIT: Or the opposite. This makes a negative amount of sense.

---

<div class="post-metadata">

**Author:** ![Marte](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/marte/32/1224_2.png) [@Marte](https://discourse.cataclysmdda.org/u/Marte)\
**Post date:** [November 30, 2015, 1:45pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/5 "2015-11-30T13:45:34Z")

</div>

No problems under 0.C-3981 (or maybe I’m not enough smart to trigger again the issue, under the new experimental… 😉 ).

Someone has made a nice “mumbo-jumbo” silently, in the shadows… Keep up the good work! 🙂

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [November 30, 2015, 4:15pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/6 "2015-11-30T16:15:00Z")

</div>

[quote=“Marte, post:5, topic:11003”]No problems under 0.C-3981 (or maybe I’m not enough smart to trigger again the issue, under the new experimental… 😉 ).

Someone has made a nice “mumbo-jumbo” silently, in the shadows… Keep up the good work! :)[/quote]

Enjoy it while it lasts, as I suspect you’ll find new and exciting things to rage at the instant you hit the crafting key.

EDIT: And shortly after this, it was discovered the issue I was hinting at occurs under much narrower (pun intended) circumstances than I initially suspected. o3o

---

<div class="post-metadata">

**Author:** ![Marte](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/marte/32/1224_2.png) [@Marte](https://discourse.cataclysmdda.org/u/Marte)\
**Post date:** [November 30, 2015, 8:01pm UTC](https://discourse.cataclysmdda.org/t/strange-issue-with-artifact-data/11003/7 "2015-11-30T20:01:33Z")

</div>

> [@Random\_dragon](#):
>
> Enjoy it while it lasts, as I suspect you’ll find new and exciting things to rage at the instant you hit the crafting key.

Never underestimate a good “mumbo-jumbo”… 😉
