Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2015, 02:14 PM
noudess
Discordant
 
Join Date: Sep 2012
Location: Upstate NY
Posts: 274
Default $client->NukeItem() crash

Using $client->NukeItem() from a quest where the item being nuked resides in the client's bank crashes client every time.

I have tested only on Titanium client.
Reply With Quote
  #2  
Old 03-02-2015, 06:10 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

The client doesn't like its bank slots being directly manipulated..or, at least the way that we do it.

Pretty sure it's expecting a bank->cursor or cursor->bank action.


(You can see some of the hack code in resync function that I attempted to use some time ago...)
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 03-02-2015, 09:44 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

You are better off checking if the item is in a valid slot before deleting it. Like Uleat said anything that is deleted from the bank.. just auto-crashes the client.

I would use... this function it is nice for removing items from valid inventory slots as long as you use it correctly
Quote:
$client->DeleteItemInInventory(slot, count, 1);
Deleting items from cursor / cursor bag is also a bit glitchy as well fyi (doesnt crash though)
Reply With Quote
  #4  
Old 03-02-2015, 10:39 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I changed the behavior of 'HasItem' recently to ignore buffered cursor items for that exact reason...

If an item was found beyond the ItemInstQueue::front(), MainCursor was still returned and any item on the visible cursor would be deleted :/

The client ignores the 'Limbo' range for most checks, including lore, so that update should help with cursor-related glitches.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #5  
Old 03-03-2015, 10:06 AM
noudess
Discordant
 
Join Date: Sep 2012
Location: Upstate NY
Posts: 274
Default

The code I am writing need to clear some items from anywhere before allowing a certain turn in. I ended up doing a Collectitems(itemid,1) for all non worn/inv slots and then if has_item turns up more, I tell the player they need to destroy those items before they are allowed to turn in.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:30 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3