Framework
Framework copied to clipboard
Weight of virtual inventory duplication
Expected behavior
Player is to go into clothing shop and browse for what player wants.
Actual behavior
Player's virtual inventory starts to multiply itself.
Steps to reproduce the behaviour
- You need a backpack.
- Press Y to memorize the current weight you can carry (Player Menu)
- Go into clothing shop.
- Exit clothing shop and look at player menu again to check virtual weight.
Errors do not occur via RPT.
Mission version: 5.0
Launcher version: 1.5.139565 Game version: 1.66.139586 Branch: Main
Still needs to be confirmed.
This is an issue I believe, yes.
@XtGDevelopmentTeam You can always confirm yourself.
I have already confirmed it hence why i posted this in the issues. Just wanted to know if anyone has a hotfix for it. Its saving old player virtual space and applying the new space when you view new clothing. I guess a check will be alright.
You wrote: Still needs to be confirmed. @XtGDevelopmentTeam
Yeah by a developer
For now i just added "life_maxWeight = 0;" to places where it loads or checks for the old backpack instead of touching survival file, Its messy but it works, players will need to drop their backpacks and pick them backup to reset the proper virtual inventory value. But it will stop the duplication glitch at least for now.
After testing this in v5.0, I can confirm it happens. However it only happens for 1 second, until the uiSleep ends and the cycle repeats...
This happens because every survival cycle, your backpack is checked. If you don't have one then max weight is reset.. If you do have one then it checks to see if you have the same backpack you did on the last cycle, if not then it updates your carry weight. This cycle occurs once every second. I do not think this is a problem.
If this is a problem for you, then you could add the following code above line 41 of fn_p_updateMenu.sqf
life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight") + round(FETCH_CONFIG2(getNumber,"CfgVehicles",_bp,"maximumload") / 4);