Topic: [Let it be] Weird Weight penalty calculation  (Read 5240 times)


skyleaf

« on: July 21, 2021, 11:15:44 AM »
Before we start, this actually already happened before the weight conversation feature introduced (probably could trace back to 3.62 or earlier) and I think it is not really related to the latest update.

So here's the weird weight penalty I noticed: I got 4 pieces of armor, weighted 1.4kg, 2.3kg, 10.4kg and 13.6kg respectively.
If I wear the armors in the following sequence: 1.4 + 2.3 + 10.4 + 13.6, the total weight shown in the right panel is 27.9kg (btw this is wrong and should be 27.7kg?), and more importantly, the weight penalty would be 7%.

However, if I wear the armors in the following sequence: 13.6 + 10.4 + 2.3 + 1.4, the total weight remained unchanged (27.9kg) BUT the weight penalty is 8%

My character has a weight of 60kg. In-game photos attached and if save is needed, I can provide it anytime :)
« Last Edit: December 11, 2022, 12:45:13 PM by Sami »

Sami

  • UnReal World creator
  • Administrator
  • Member
  • *****
  • Posts: 1270
  • Total likes: 3177
  • UnReal World creator
    • View Profile
    • UnReal World
« Reply #1 on: September 07, 2021, 11:04:51 AM »
Yep, it's simply a bit weird and rounding also affects to results. I'll explain, but we hardly start adjusting this.
With single decimal precision 1.4 + 2.3 + 10.4 + 13.6 would be 27.7 but the actual item weights may have more decimals and the math is done with true floating numbers and rounding according to chosen decimal precision done only before showing the result.

In case of armours and clothes being worn you start to suffer from encumbrance penalty only after their total weight exceeds one tenth of character's weight. This is calculated one by one in the order of worn items appearing in the inventory so with different combinations the threshold is exceeded sooner, or later.
- Sami | UnReal World creator