Jump to content

Kit count error

Not a Bug 1.1.1

Tbird412
Tbird412

Posted

I have noticed all the kits in our UI are showing 1 less than they should.  Kits I have 2 available are showing 1.  Kits that are only claimable once, are showing 0.  And kits I have already claimed (so should be zero remaining) are showing -1

 

Basically the math is all off by 1.  Any way to fix this?  Example below is a once per day supply signal kit.  I claimed it last night, it is still on cooldown for me.  But is showing -1 left when it should show zero left.

image.png

David

Posted

I will have a look at it, thanks for reporting.

  • Like 1
David

Posted

Changed Status from Pending to Work in Progress

David

Posted

Okey so, there i s no issue in code but there is explanation how  {kitUsesLeft} tag works. 

Uses left are calculated based on Max Uses of kits which you choose when you create kit and then minus number of uses by player. Number of uses are stored in oxide/data/Kits/player_data.json which means if you claimed certain kit as admin lets say during testing, claim was already counted and thats why its showing negative value for you. 
 

David

Posted

Changed Status from Work in Progress to Not a Bug

1.7m

Downloads

Total number of downloads.

7.2k

Customers

Total customers served.

108.2k

Files Sold

Total number of files sold.

2.2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.