[VERY RARE] Some dropped items by players get bugged

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: [VERY RARE] Some dropped items by players get bugged

Post by janiii »

so.. is there a testing scenario how this bug with non-pickable items can be reproduced and tested?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: [VERY RARE] Some dropped items by players get bugged

Post by JIV »

isnt it client bug like item is already deleted wit item auto destroy?
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: [VERY RARE] Some dropped items by players get bugged

Post by denser »

no, JIV, when i hot-on config to save items to db, save it, and restart server - you can login and pick it up. so item stays on ground..may be geo bug? i use geo all the time..
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: [VERY RARE] Some dropped items by players get bugged

Post by JIV »

possible, i dont see geo check there.
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: [VERY RARE] Some dropped items by players get bugged

Post by Pere »

denser wrote:no, JIV, when i hot-on config to save items to db, save it, and restart server - you can login and pick it up. so item stays on ground..may be geo bug? i use geo all the time..
JIV wrote:possible, i dont see geo check there.
Lol, I already told you what happens :evil:
No geo bug!

2 possibilities:
- Item is not saved in L2World._allObjects (during drop it isn't saved, because it should be from the beginning. To add a security check there fixed the problem for me). When this happens, players can click it and nothing happens.
- Item's location is ItemLocation.INVENTORY instead ItemLocation.NONE. On L2CharacterAI.onPickup() (or something like that), the item's location is checked before picking up the item. If it is not NONE, the function returns (I've fixed that checking if the item is in the character's knownlist and if so, setting the item's location to VOID. If it was really inside an inventory like its location said, it wouldn't be in the picker's knownlist). When this happens, players who click on it don't receive the ACTIONFAILED packet and to move again have to restart or target theirselves.

I repeat, on my server this is "fixed", doesn't happen anymore (and I've posted a patch for the second case in the first post), but the way to fix that isn't correct. We should know why the dropped items sometimes are not in L2World's allObjects list or their location isn't set to VOID.

EDIT: Nice one JIV!! This sync can be our salvation :mrgreen: (http://www.l2jserver.com/trac/changeset/4093)
Bones tardes amics meus tots!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [VERY RARE] Some dropped items by players get bugged

Post by _DS_ »

Such way (with knownlist check) is highly not recommended - all those checks are done on purpose.

I suspect dupe attempts from players.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: [VERY RARE] Some dropped items by players get bugged

Post by Pere »

That's why I posted this, my fix is only temporal...
Bones tardes amics meus tots!
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: [VERY RARE] Some dropped items by players get bugged

Post by JIV »

dont think so that 4093 fix it (if there was bug),, also that geocheck should be added cause right now you can drop anywhere in 150 range
Post Reply