Rudokhvist/BoosterCreator

Suggestion for handling "Not enough gems to create booster" error

Opened this issue · 1 comments

I've had this error happen a few times when I've had plenty of gems in my inventory and it currently causes an extra 8 hour delay. The root of the problem is a Steam bug that is also encountered when manually creating boosters. The frequency is not great, but occasionally after making 1 booster, the page refresh will erroneously read "0 Gems" and you have to refresh the page to continue making boosters. I reported this to Valve long ago and apparently it's very low priority or difficult to reproduce and pin down the cause.

I would suggest adding an additional check after the "if (gooAmount < bi.Price)" to see if the value is 0. If that's the case, then refresh the page once and reread the gem values. If it's still 0, exit with error as usual, otherwise continue with the attempt to make the booster.

Thank you for report, I'll think what can be done about it.