PlaneShift

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category
  • Assigned To
    Tristan Cragnolini
  • Operating System
  • Severity Medium
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: PlaneShift
Opened by Arerano Areramau - 07.12.2008
Last edited by aurelynt - 22.03.2009

FS#2579 - Items "vanish" when moved to an invalid slot

Using the old inventory (or one of the Modded inventories) makes items which are about to be equipped to the “Head slot” vanish.

More specifically: Moving an item to an invalid slot makes it “vanish” for the client.
Looking into the Database, the items gets “location_in_parent=-85”.

In my oppinion this is a BUG. The server should deny moving items to “invalid slots” rather than giving it some “inaccessible parent id”.
There’s no way for “clients” to reaccess those items.

To reproduce: use the old inventory.xml (which has <widget name=”head” factory=”pawsSlot” tooltip=”Head”> instead of <widget name=”helm” factory=”pawsSlot” tooltip=”Helm”>).

The task depends upon
ID Project Summary Priority Severity Assigned To Progress
2588 PlaneShift  FS#2588 - Helmets disappearing  High
100%
Closed by  aurelynt
22.03.2009 19:31
Reason for closing:  
Additional comments about closing:  

Verified fix.
Working.

Caarrie commented on 09.12.2008 21:41

kougaro made the following patch http://pastebin.ca/1281015 this should fix this issue for the time being by not allowing clients with invalid slot names to connect to the server.

Tristan Cragnolini commented on 12.12.2008 08:25

http://pastebin.ca/1283394 Updated the link, i forgot a bunch of semi-colons while writing this :)

Arerano Areramau commented on 19.12.2008 20:55

Both links open an empty paste for me "general pastebin - no posts to display".

Tristan Cragnolini commented on 22.12.2008 10:13

Verified, it works.

Project Manager
Lanarel commented on 07.02.2009 12:49

Kougaro, can you put the patch on codereview and find someone to commit it? :)

Tristan Cragnolini commented on 18.02.2009 09:01

New Patch Fix both client side and server side.
Client side, ensure that the client won't load if the slots are not correct
Server side, the function in charge was assuming that by default you can put the item in the slot, resulting in aberrant behaviour for out of range values.

Tristan Cragnolini commented on 07.03.2009 21:11

Setting ready to test, since this was commited (a slightly modified version) in r3057

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing