Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing items from inventory / missing items from items.txt #100

Open
xSL0W opened this issue Apr 11, 2021 · 0 comments
Open

missing items from inventory / missing items from items.txt #100

xSL0W opened this issue Apr 11, 2021 · 0 comments
Labels
Bug Game: CS:GO Counter-Strike: Global Offensive

Comments

@xSL0W
Copy link

xSL0W commented Apr 11, 2021

Describe the bug
Im using shopcore for a big module that creates 1000 items, a WS made for shopcore. Basically you buy skins from !shop.
The plugin starts registering items into shop OnPluginStart, only 1 time per server restart.
Some time ago a few players reported that their items are missing from their inventories. Some of the items dissapear immediately after buying. It happened to me too, a while ago. I've dig into the source code and found a file, called items.txt
I dont understand its purpose 100% but it looks like a disk-stored local db for the registered items, here is my file ( https://hatebin.com/aoyviwlnrv )
There are many items missing, many skins and stuff from this file.
I've looked into my mysql database and there are 1628 items registered here, I think its fine here.

To Reproduce
Steps to reproduce the behavior:

  • Not sure how the items dissapear, its happens rarely and i couldn't find a pattern.

Expected behavior

  • Skins to be saved into the inventory & items to appear in items.txt

Screenshots

  • No screenshots

Server (please complete the following information):

  • OS: debian10
  • Sourcemod version 1.10.0.6501
  • Version : plugin: 3.0E2

Additional context
Here is how i register items into shop. https://drive.google.com/file/d/1C760Rz28Zi_PklSqT5NTIgIADIuDfaTV/view?usp=sharing
Am I doing anything wrong?
Do I need to use forward public void Shop_Started() ? I can get rid of the timers, since that code is bad.

@TiBarification TiBarification added Bug Game: CS:GO Counter-Strike: Global Offensive labels Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Game: CS:GO Counter-Strike: Global Offensive
Development

No branches or pull requests

2 participants