BUG:Deleting item from bag

Old bugs stored here for reference.
Locked
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

BUG:Deleting item from bag

Post by Ememjr » Fri May 10, 2019 3:21 am

this bug was reported by Gangrenous, on discord

just noticed if you delete an item from within a bag, the item still shows in the bag description. You can fix it by dragging another item into the bag, but still an issue that needs fixing.
It does not do it if you move an item out of the bag, only if you destroy the item from within the bag

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: BUG:Deleting item from bag

Post by Ememjr » Fri May 10, 2019 3:36 am

looked into this, the destroy command does not seem to be sending a SendBagUpdate() command to update the bag info
whereas move and add inventory does

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: BUG:Deleting item from bag

Post by Ememjr » Fri May 10, 2019 4:06 am

this has been fixed and commited , added code to the destroy command to update the bag

Code: Select all

int32 bag_id = item->details.inv_slot_id; // this lined added for detroy item not updateing bag list
                database.DeleteItem(client->GetCharacterID(), item, 0);
                client->GetPlayer()->item_list.DestroyItem(index);
                EQ2Packet* outapp = client->GetPlayer()->SendInventoryUpdate(client->GetVersion());
                client->QueuePacket(outapp);

                outapp = client->GetPlayer()->SendBagUpdate(bag_id, client->GetVersion());// this lined added for detroy item not updateing bag list

                if (outapp)// this lined added for detroy item not updateing bag list
                    client->QueuePacket(outapp);// this lined added for detroy item not updateing bag list
this will b in commands.cpp
void Commands::Command_Inventory

committed to SVN Rev # 2827

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: BUG:Deleting item from bag

Post by Gangrenous » Fri May 10, 2019 8:19 pm

Did you push your change? I am only seeing up to Revision 2824
Resident Dirty Hippy

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: BUG:Deleting item from bag

Post by Gangrenous » Fri May 10, 2019 8:22 pm

Capture.PNG
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: BUG:Deleting item from bag

Post by Jabantiz » Fri May 10, 2019 9:11 pm

Dev svn syncs with public svn every mon (maybe sun night)

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: BUG:Deleting item from bag

Post by Gangrenous » Sat May 11, 2019 4:06 am

That, I did not know.
Resident Dirty Hippy

Locked

Who is online

Users browsing this forum: No registered users and 1 guest