# "assignment does not update value"

**URL:** <https://discourse.cataclysmdda.org/t/assignment-does-not-update-value/12652>\
**Category:** The Toolbox\
**Created:** [October 1, 2016, 3:58pm UTC](https://discourse.cataclysmdda.org/t/assignment-does-not-update-value/12652 "2016-10-01T15:58:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danv](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Danv](https://discourse.cataclysmdda.org/u/Danv)\
**Post date:** [October 1, 2016, 3:58pm UTC](https://discourse.cataclysmdda.org/t/assignment-does-not-update-value/12652/1 "2016-10-01T15:58:00Z")

</div>

got this error after modding encumbrance of some armor pieces (set it to 0)  
is something changed in a code or i doing something wrong? it never happened before when i change encumbrance like this

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [October 1, 2016, 4:09pm UTC](https://discourse.cataclysmdda.org/t/assignment-does-not-update-value/12652/2 "2016-10-01T16:09:47Z")

</div>

It’s a warning that you are overwriting a field with its default value.  
Just remove the whole line.

---

<div class="post-metadata">

**Author:** ![Danv](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Danv](https://discourse.cataclysmdda.org/u/Danv)\
**Post date:** [October 1, 2016, 4:23pm UTC](https://discourse.cataclysmdda.org/t/assignment-does-not-update-value/12652/3 "2016-10-01T16:23:51Z")

</div>

oh, many thanks, now it’s works

maybe stupid question - but is such thing really necessary? you know - forcing to remove lines without changes  
i guess if you want to save some bytes in json… but ability to see all values of item, even if some of them same as default kinda more convenient IMO

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [October 1, 2016, 6:42pm UTC](https://discourse.cataclysmdda.org/t/assignment-does-not-update-value/12652/4 "2016-10-01T18:42:13Z")

</div>

It helps avoid hard to read contributions full of redundant entries. Instead of having to tell people to remove redundancy when they PR and wait for them to fix things, the game just tells them not to do it when they are testing own changes.

It isn’t enforced for mods. If you want to make some local changes, it’s better to turn them into a mod - that way you can copy it to new versions of the game without having to locate and change things every time.
