Inventory Database Error

Post Reply
legionffxi
Posts: 70
Joined: Mon Sep 08, 2014 7:44 am

Inventory Database Error

Post by legionffxi » Sun Oct 26, 2014 4:14 pm

Because I am getting horribly sick of seeing this please see the attached screenshots regarding an inventory error I am seeing on some servers including the one we are working on setting up.

Any ideas would be very helpful, the items eventually go into your inventory if you toss an item from your inventory, my inventory currently testing is 33/80 so Unless its r/ex it should drop in with no issues.
Attachments
Inventory error 2.JPG
Inventory Error 1.JPG
Inventory Error 1.JPG (13.51 KiB) Viewed 4736 times
Database Error.JPG

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Inventory Database Error

Post by kjLotus » Sun Oct 26, 2014 5:08 pm

couldn't put it in the database because there's already an item in that slot

general outline: AddItem calls InsertItem which iterates over the container until it finds an empty slot, then puts the item in that slot and returns what slot it went in to
then, AddItem will write the values to the char_inventory table to save the item to the database, using the slot that InsertItem found. if either of those fail then the item is deleted and the adding is canceled.

at some point you have a disconnect between what the game server thinks your inventory is and what the database thinks your inventory is. how you arrived there I don't know, but possibilities include failing to load char_inventory on login, messed up database, some code that removes an item from the server's storage but not the database

Cyprus
Posts: 53
Joined: Sat Sep 06, 2014 10:54 pm

Re: Inventory Database Error

Post by Cyprus » Fri Oct 31, 2014 9:27 am

I am seeing this on my server also. Sometimes I will see items drop while killing mobs solo & it will say that I obtained them...but when I look for them in my inventory, they aren't there. At some point later on, they show up in my inventory...could be after tossing items as stated above but to be honest, I didn't test to confirm that.

I have seen same situations as the screenshots above...any fix for this yet?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Inventory Database Error

Post by kjLotus » Fri Oct 31, 2014 1:43 pm

not until i know how to reproduce it reliably

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Inventory Database Error

Post by TeoTwawki » Fri Oct 31, 2014 2:44 pm

Cyprus wrote:I am seeing this on my server also. Sometimes I will see items drop while killing mobs solo & it will say that I obtained them...but when I look for them in my inventory, they aren't there. At some point later on, they show up in my inventory...could be after tossing items as stated above but to be honest, I didn't test to confirm that.

I have seen same situations as the screenshots above...any fix for this yet?
I get what I call the "sort bug" a lot. I hit sort and then things that really were there will show up.

kjLotus wrote:not until i know how to reproduce it reliably
I've seen that db error message after crashes (caused by bad custom item reward script) and when adding items that don't exist yet by mistake to a chars inventory (seeing if we have X already by using @additem...Not such a good idea). Even though that resulted in no item on the char being added, the "slot" was somehow still in use. There was just garbage data in the table where that chars inventory was. Once deleted they went back to normal, and I just had to give the character a new pair of the taru RSE legs they lost in the process (that slot had been corrupted).

As for items not showing up when they are really there...Crank your test servers drop rates up in the conf and then walk into dyna with god mode and HULK SMASH half the zone in seconds. You'll see it happen a lot more then!
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

uwill99
Posts: 61
Joined: Tue Aug 12, 2014 11:28 pm

Re: Inventory Database Error

Post by uwill99 » Sun Aug 23, 2015 10:30 pm

This has been happening on my server ever since I load FFXI.AH.Broker/PriceGrabber. Is there a fix for it yet? For me it is only items that can be equipped that go into inventory - they appear after sorting inventory. Also - the only workaround I've found is to turn off auto sorting in game. Problem completely disappears after that.

Post Reply