more then selected % gold loss on death
Description
The gold loss on death seems to be incorrect. I got from 311 gold to 51 after dying when the gold loss factor is 5%. More over after a few death it's seems to be possible to go 0 gold when starting gold was approx 1100.
| Related formIDs |
|---|
| none |
Steps to reproduce
- Setup you server gold loss factor to 5 %
- Start the game.
- connect to server.
- Accumulate 5000 golds .
- Buys stuff until only there is 1000 golds left.
- Procede to die and check your balance.
- You should lose way more than 50 gold
Reproduction rate
Please check just one of the following reproduction rates:
- [x] Consistent: I can reproduce this bug by following the steps to reproduce 100% of the time (every time)
- [ ] Occasional: I can reproduce this bug by following the steps to reproduce around 50% of the time
- [ ] Rare: I can reproduce this bug by following the steps to reproduce around 10% or less of the time
Expected result
Losing the correct amount of gold an death.
Evidence (optional)
you can only take my word for the amount lost but my server STServer.ini is just below :
[general] sLogLevel=info bConsole=true
[LiveServices] bAnnounceServer=false
[Gameplay] fGoldLossFactor=0.05 bEnableXpSync=true bEnablePvp=true bEnableGreetings=false uDifficulty=5
[ModPolicy] bAllowMO2=true bAllowSKSE=true bEnableModCheck=false
[GameServer] sPassword= sServerName=Dedicated Together Server bPremiumMode=true uPort=10578
You pay fines on death.
I was reviewing the code and there is no trivial bug with the gold loss system. How much gold exactly you loss?, It is constant or variable ?
Alright I got the screenshot for you :
(I'm on 5 % loss like before by the way)
- I started with 1673 golds
- I buyed for 672 gold an elven armor which mean I now have 1001 golds
- I killed myself against guard and now have 925 golds
1001*0,95=950,95 which mean my balance should have been 951 or 950 golds instead of 925 golds.
I also tested this when only dropping gold in a chest instead of buying stuff and in this scenario, it's seems to work fine tho.
You attacked a guard and had a fine, how much was it?
It's 40 by default, I just tested it, it's seems to take the 40 golds on death out of exactly 1000 golds without buying thing from vendor before. It's seems to pays the fine also which I suppose is a correct behavior but don't make me pay the 5% on death then.
edit : I didn't have any other fine before hitting him nor when dying before testing it for the screen.
I discovered the issue by falling initially, I only tested it this way because it was easier but it seems to add another factor to the mix. Guard or not it doesn't seems to add up.
I will redo the test by dying from falling if needed.
40 * 0.95 = 38 1001 - 38 = 963 963 - 38 = 925 This may be a coincidence but the fine being subtracted might be the one being affected by the gold loss factor?
EDIT: The fine is multiplied by the gold lost factor and subtracted from the player's gold in addition to the fine after the first death on a save. The issue persists through deaths. Ex: 40 gold fine, 10% gold loss factor, player has 1000 gold, no previous deaths on save (both tests below with these values): Death 1) Got the expected 860 gold left Death 2) 856 gold left, 10% gold lost factor of fine amount also seemingly subtracted one time in addition to the previously expected Death 3) 852 gold left, 10% gold lost factor of fine amount subtracted two times in addition to the previously expected
well there is something wrong here :
-
before dying to a giant
-
after dying to a giant
Still on "5%" gold loss per death with no bounty at the moment. There was a message telling me I was losing 361 each death.
*RIP Rognar
may be a problem with the way that the total amount of gold is obtained from the player later used in the operation.
The most likely cause of this problem is that the gold count that the server keeps of the player is incorrect.
Stale issue. Closing for now.