# GameAbilitySystem Attribute Replicated Error, About BaseValueChanged And Infinite duration GameplayEffect

**URL:** <https://forums.unrealengine.com/t/gameabilitysystem-attribute-replicated-error-about-basevaluechanged-and-infinite-duration-gameplayeffect/2019920>\
**Category:** Programming & Scripting\
**Tags:** Gameplay-Attributes, unreal-engine, Gameplay-Ability-System, CPP, question\
**Created:** [September 14, 2024, 1:26am UTC](https://forums.unrealengine.com/t/gameabilitysystem-attribute-replicated-error-about-basevaluechanged-and-infinite-duration-gameplayeffect/2019920 "2024-09-14T01:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vigilw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vigilw](https://forums.unrealengine.com/u/vigilw)\
**Post date:** [September 14, 2024, 1:26am UTC](https://forums.unrealengine.com/t/gameabilitysystem-attribute-replicated-error-about-basevaluechanged-and-infinite-duration-gameplayeffect/2019920/1 "2024-09-14T01:26:03Z")

</div>

when i changed some Attribute BaseValue in server after apply duration is Infinite Gameplay Effect after remove this GameplayEffect Server BaseValue is right but The client value returns to the default value before modifying BaseValue

---

<div class="post-metadata">

**Author:** ![vigilw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vigilw](https://forums.unrealengine.com/u/vigilw)\
**Post date:** [September 14, 2024, 1:29am UTC](https://forums.unrealengine.com/t/gameabilitysystem-attribute-replicated-error-about-basevaluechanged-and-infinite-duration-gameplayeffect/2019920/2 "2024-09-14T01:29:16Z")

</div>

example :  
Step 1 : Server BaseValue : 100 Client BaseValue :100

Step2 : change Base Value Server BaseValue : 90 Client BaseValue : 90

Step3: Apply Duration Infinite Gameplay Effect :

Server BaseValue : 90 Client BaseValue : 90

Server CurrentValue : 81 Client CurrentValue : 90(Error Value)

Step4: Remove Step3 GameplayEffect:

Server BaseValue : 90 Client BaseValue : 90

Server CurrentValue : 90 Client CurrentValue : 100( Error Value)

---

<div class="post-metadata">

**Author:** ![vigilw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vigilw](https://forums.unrealengine.com/u/vigilw)\
**Post date:** [September 14, 2024, 7:59am UTC](https://forums.unrealengine.com/t/gameabilitysystem-attribute-replicated-error-about-basevaluechanged-and-infinite-duration-gameplayeffect/2019920/3 "2024-09-14T07:59:03Z")

</div>

hi forks i down this this key is client replicated function general Usually named OnRep\_FunctionName if you change BaseValue you should call Asc-\>SetBaseAttributeValueFromReplication() in Replicate function.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 14, 2024, 7:59am UTC](https://forums.unrealengine.com/t/gameabilitysystem-attribute-replicated-error-about-basevaluechanged-and-infinite-duration-gameplayeffect/2019920/4 "2024-10-14T07:59:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
