-
Notifications
You must be signed in to change notification settings - Fork 95
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
Bug: Bot Does Not Restock AH Back to MaxItems Until a Server Restart or Config Reload #126
Comments
Same issue here. |
I have this issue with different symptoms. No bin error, but every time a bot auction is purchased by a player or a bot auction expires, the following is logged: "AHBot: Item {} doesn't exist, perhaps bought already?". It appears the script can't access the item properties of removed auctions, so the running auction counters never get decreased after the initial population. Once the bot reaches maximum auction size count, it doesn't restock as the counter never lowers. It's not a problem on a fresh server start as the counts are loaded direct from db on initialization. |
I had the same issue, i fixed it by adjusting the percentages of item colors in the It's been a while since I've dealt with this..But i think this happens, if the max amount of allowed items of a color is larger than the available items * DuplicatesCount . For example if we have 10 different blue items the bot can choose from and the duplicatesCount is 5 (in total 50 stacks). And the maximum amount of blue item stacks in the ah is 100, the bot tries to populate more blue items until it reaches 100, but he can't because there are no more items and the duplicateCount is reached. Possible that you need other values, because i'm also running the changes from #113 |
Is there a way to disable/revert the "duplicates count" bug then? I have duplicate checking disabled and the module is still bricked. |
I think I found the problem. Comment out line 190 from the
Basically, what happens is after an item is bought then creation of this
Since that code doesn't happen the total number of auctions for that quality of item doesn't decrease so you keep the same amount of auctions for that quality of item even though auctions have ended for it. On the other side of this, the overall total amount of auctions does decrease in the code and since all the different quality of auctions stay at the same amount it can't find one to add any auctions to. Thus, it never adds any new auctions. Been running this for 3 days now on my test server and it is working fine. |
@LannyE tried your soultion but for me didnt work. My overall auctions still decreasing in time. |
Current Behaviour
With the current commit it appears that the Bot will not restock items as auctions expire and gradually over time the auction house will be at 0 total items without a server restart or config reload. Once you restart/reload the server the bot restocks the auction house back to between the
minitems
andmaxitems
database settings.I decided to make this its own issue as this was discussed and confirmed in another issue #122 that wasn't exactly about this issue.
As show in the linked issue this is the errors I received when the bot was trying to restock items.
My auction house
maxitems
is rather large sitting at 13000 items but I have tested it at 1000 and had the same results. I have noticed this issue for about three months. It used to work fine.Expected Behaviour
When auctions expire at the next check or "tick" the bot should add more auctions to get the auction house total auctions back up to between the
minitems
andmaxitems
database settings.Steps to reproduce the problem
minitems
andmaxitems
in the databasemaxitems
setting.Extra Notes
I tested an old commit 139bea2 on one of my test instances and the auction house does restock and keeps the total number of auctions between the
minitems
andmaxitems
database settings as expected. I chose that commit because I started noticing this issue way back in September.AC rev. hash/commit
AzerothCore rev. df03a80ee75b+ 2024-12-06 22:49:01 -0700 (master branch) (Win64, RelWithDebInfo, Static)
Operating system
Windows
Custom changes or Modules
mod-ah-bot
mod-gain-honor-guard
mod-individual-xp
mod-pvp-titles
mod-solo-lfg
mod-transmog
mod-weekend-xp
The text was updated successfully, but these errors were encountered: