Framework icon indicating copy to clipboard operation
Framework copied to clipboard

Weight of virtual inventory duplication

Open TzuyuHook opened this issue 8 years ago • 7 comments
trafficstars

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

  1. You need a backpack.
  2. Press Y to memorize the current weight you can carry (Player Menu)
  3. Go into clothing shop.
  4. 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

TzuyuHook avatar Feb 27 '17 17:02 TzuyuHook

Still needs to be confirmed.

TzuyuHook avatar Mar 12 '17 02:03 TzuyuHook

This is an issue I believe, yes.

@XtGDevelopmentTeam You can always confirm yourself.

TMschar avatar Mar 20 '17 08:03 TMschar

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.

TzuyuHook avatar Mar 22 '17 08:03 TzuyuHook

You wrote: Still needs to be confirmed. @XtGDevelopmentTeam

TMschar avatar Mar 22 '17 09:03 TMschar

Yeah by a developer

TzuyuHook avatar Mar 31 '17 10:03 TzuyuHook

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.

TzuyuHook avatar Mar 31 '17 11:03 TzuyuHook

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);

J4Wx avatar Apr 18 '17 00:04 J4Wx