# Stack Mod Visual Issue with Weight

**URL:** <https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [May 1, 2018, 2:27am UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275 "2018-05-01T02:27:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3c87641](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3c87641](https://forums.unrealengine.com/u/anonymous_user_6f3c87641)\
**Post date:** [May 1, 2018, 2:27am UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275/1 "2018-05-01T02:27:03Z")

</div>

Hello, been trying to figure out how to my Configurable Stack Mod, where the weight visual value doesn’t match the ini settings. For example if I make Metal Ingots weight to 0.5 in the ini setting, in-game it shows the default 0.001 but my character’s overall weight is 0.5. Meaning that the ini setting is working just not showing on the item itself.

---

<div class="post-metadata">

**Author:** ![fullbanner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fullbanner](https://forums.unrealengine.com/u/fullbanner)\
**Post date:** [May 1, 2018, 4:52am UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275/2 "2018-05-01T04:52:25Z")

</div>

> [@anonymous\_user\_6f3c87641](#):
>
> Hello, been trying to figure out how to my Configurable Stack Mod, where the weight visual value doesn’t match the ini settings. For example if I make Metal Ingots weight to 0.5 in the ini setting, in-game it shows the default 0.001 but my character’s overall weight is 0.5. Meaning that the ini setting is working just not showing on the item itself.

Can you show us the code you are using to set the item weight ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3c87641](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3c87641](https://forums.unrealengine.com/u/anonymous_user_6f3c87641)\
**Post date:** [May 1, 2018, 6:14am UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275/3 "2018-05-01T06:14:45Z")

</div>

> [@fullbanner](#):
>
> Can you show us the code you are using to set the item weight ?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/7/687d19d241051f17cfeecd873bc73fe9169d00c8.jpeg)

---

<div class="post-metadata">

**Author:** ![fullbanner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fullbanner](https://forums.unrealengine.com/u/fullbanner)\
**Post date:** [May 1, 2018, 7:53am UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275/4 "2018-05-01T07:53:12Z")

</div>

> [@idlehands88](#):
>
> https://i.imgur.com/WxRkw9e.png

There are a couple problems with your code, first you never know what the parent is doing with those events, you may be removing critical funcionality from the item by not calling the parent.  
The second problem i see is, i don’t know if you’re aware, but those 2 events are called more than once, everytime you add the item to an inventory, or move inventory, or split stacks.  
This will cause your ini file to be read and reread, over and over, causing stress to the server and lag to the players.  
So to fix your problem, reusing the code you provided, and by following the Ark Devkit update

```auto

 v257
 
This version has major functional additions useful for Mods, including PrimalItem "CustomItemDatas" finally fully working, with save and load support
 
 

```

![variables.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/8/b38cc466f4054eafd7e76b17d5756a2b88f77d8b.png)

Do this, and your weight problem will disappear. Don’t forget to give credit where it’s due, my steam nickname “XHead”.  
Enjoy

Edit: Here are the variables i used for this code:  
 ![variables.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/8/b38cc466f4054eafd7e76b17d5756a2b88f77d8b.png)

And here is the copy-paste code, if you got any problem  
[copy-paste code.txt](https://forums.unrealengine.com/uploads/short-url/oiIvyi5UToxfzzFY9UfR9a6YBSd.txt) (59.8 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f3c87641](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f3c87641](https://forums.unrealengine.com/u/anonymous_user_6f3c87641)\
**Post date:** [May 1, 2018, 8:35am UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275/5 "2018-05-01T08:35:34Z")

</div>

THANK YOU SO MUCH, that is working nicely!

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/stack-mod-visual-issue-with-weight/110275/6 "2022-03-09T21:34:21Z")

</div>


