TiltedEvolution icon indicating copy to clipboard operation
TiltedEvolution copied to clipboard

more then selected % gold loss on death

Open French-Asgeir opened this issue 3 years ago • 10 comments

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

  1. Setup you server gold loss factor to 5 %
  2. Start the game.
  3. connect to server.
  4. Accumulate 5000 golds .
  5. Buys stuff until only there is 1000 golds left.
  6. Procede to die and check your balance.
  7. 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

French-Asgeir avatar Jul 17 '22 18:07 French-Asgeir

You pay fines on death.

Dragonissa avatar Jul 17 '22 21:07 Dragonissa

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 ?

MatiasRepettoZecchi avatar Jul 17 '22 21:07 MatiasRepettoZecchi

Alright I got the screenshot for you :

(I'm on 5 % loss like before by the way)

  1. I started with 1673 golds Capture1
  2. I buyed for 672 gold an elven armor which mean I now have 1001 golds Capture2
  3. I killed myself against guard and now have 925 golds Capture3

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.

French-Asgeir avatar Jul 17 '22 22:07 French-Asgeir

You attacked a guard and had a fine, how much was it?

Dragonissa avatar Jul 17 '22 23:07 Dragonissa

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.

French-Asgeir avatar Jul 17 '22 23:07 French-Asgeir

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.

French-Asgeir avatar Jul 17 '22 23:07 French-Asgeir

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

ToeKneeRED avatar Jul 18 '22 05:07 ToeKneeRED

well there is something wrong here :

  • before dying to a giant Capture4

  • after dying to a giant Capture5

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

French-Asgeir avatar Jul 18 '22 21:07 French-Asgeir

may be a problem with the way that the total amount of gold is obtained from the player later used in the operation.

MatiasRepettoZecchi avatar Jul 19 '22 14:07 MatiasRepettoZecchi

The most likely cause of this problem is that the gold count that the server keeps of the player is incorrect.

RobbeBryssinck avatar Jul 23 '22 18:07 RobbeBryssinck

Stale issue. Closing for now.

Dragonissa avatar May 20 '24 20:05 Dragonissa