SPT Version
4.0
Project Type
Server
Expected Result
Transact with traders normally
Actual Result
If for some reason, most likely through a mod, a user is able to sell/buy an item with its currency not rounded off and the resulting currency is saved in the profile, the client continues with the transaction but is met with infinite loading, and further transactions are blocked. A restart of the client can be done, but transacting again results the same.
It was suggested that the server round off currencies to avoid this.
Steps To Reproduce
For demonstration purposes, we manually edit the profile.json
- Under
characters.pmc.Inventory.items, find an element with "_tpl": "5449016a4bdc2d6f028b456f", (roubles)
- Edit its
upd.StackObjectsCount to have a decimal value
- Go in game then buy from any trader
- Observe infinite loading
Server Log
spt20260317.log
BepinEx Log
N/A
Client Log
N/A
Player Profile
Line 592
69b9797ebb8b5a60b4271dc2.json
Screenshots
No response
SPT Version
4.0
Project Type
Server
Expected Result
Transact with traders normally
Actual Result
If for some reason, most likely through a mod, a user is able to sell/buy an item with its currency not rounded off and the resulting currency is saved in the profile, the client continues with the transaction but is met with infinite loading, and further transactions are blocked. A restart of the client can be done, but transacting again results the same.
It was suggested that the server round off currencies to avoid this.
Steps To Reproduce
For demonstration purposes, we manually edit the
profile.jsoncharacters.pmc.Inventory.items, find an element with"_tpl": "5449016a4bdc2d6f028b456f",(roubles)upd.StackObjectsCountto have a decimal valueServer Log
spt20260317.log
BepinEx Log
N/A
Client Log
N/A
Player Profile
Line 592
69b9797ebb8b5a60b4271dc2.json
Screenshots
No response