Author Topic: Inventory weight bug  (Read 3825 times)

Persaphone

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #15 on: January 15, 2006, 07:59:14 pm »
I\'m having the same weight problem. My character Ayalie can carry up to 81 units but at around 40-44 I can\'t pick up anymore.  This just started today. When I tried dropping a few items to pick up another item it didn\'t work, and then wouldn\'t let me pick back up the items I had just droped.

I have never carried or used a container.
« Last Edit: January 15, 2006, 08:00:02 pm by Persaphone »

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #16 on: January 15, 2006, 08:02:29 pm »
Ok, because we have a few new characters getting this, I think we have a glitched calculation.  I\'ll be looking into this today.

::  PlaneShift Team Programmer  ::

shorty13

  • Hydlaa Notable
  • *
  • Posts: 580
  • Skiing > All
    • View Profile
(No subject)
« Reply #17 on: January 15, 2006, 10:05:40 pm »
mean while...eat an apple...it fixes it.
There are two types of people in this world: The Pinky and the Brain.
Which one are you?

Moocha

  • Traveller
  • *
  • Posts: 18
    • View Profile
(No subject)
« Reply #18 on: January 15, 2006, 10:21:48 pm »
Thanks for being on the ball, DaveG. Your hard work is highly appreciated - trust me on this! :)

Araye

  • Hydlaa Citizen
  • *
  • Posts: 277
    • View Profile
    • The Enlightened
(No subject)
« Reply #19 on: January 15, 2006, 10:39:24 pm »
you can test this bug by going to an npc that sells things, like potions which I use a lot of, and trying to buy a bunch.  at some point, well below your weight limit, it will literally tell you \"your inventory is full\" and you can\'t buy anymore.  Nor can you pick anything up.

Araye
« Last Edit: January 15, 2006, 10:40:19 pm by Araye »

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #20 on: January 15, 2006, 10:44:58 pm »
I just finished removing an old weight management function that may have been conflicting with the new stuff.  If any weird weight things happen after the time of this post, please post here.  (that includes the same thing happening again as well as new junk)
« Last Edit: January 15, 2006, 10:45:46 pm by DaveG »

::  PlaneShift Team Programmer  ::

Bleegoingus

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #21 on: January 15, 2006, 11:14:09 pm »
.. not sure if it helps, but i did notice after logging off then on, it let you pick up a few more things before it told you you couldn\'t.

Not since this post though, I am looting away to see if it happens. I\'ll let you know.

-- EDIT - It is still happening. I am currently 106/130 weight, and it will not let me pick up a 6 weight item :(
« Last Edit: January 15, 2006, 11:16:20 pm by Bleegoingus »

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #22 on: January 15, 2006, 11:32:10 pm »
Ok, I need to know EXACTLY what you\'re doing to get this.

::  PlaneShift Team Programmer  ::

Moocha

  • Traveller
  • *
  • Posts: 18
    • View Profile
(No subject)
« Reply #23 on: January 16, 2006, 12:09:02 am »
Still happening here too (assuming a non-bugged inventory, since a new character is also affected).
Current inventory: 97.50 / 195.0
Current capacity: 148.00 / 750.00
Items in inventory are Samadin\'s standard spare gear and stuff picked up while sweeping the dungeon, partly from loot, partly cleaning up whatever some litterers left behind).
Killed 1 Clacker, loot: 1 Leg, 1 Meat.
Trying to loot => You looted a Clacker Leg, but can\'t hold anymore; You looted a Clacker Meat, but can\'t hold anymore. The two items get dropped onto the floor.
All stats displayed as 100% (I waited for a few minutes, while writing this).
Trying to pick them up either via UI or via /target and /pickup results in You can\'t carry anymore Clacker leg, etc.
Casted one Life Infusion (remember, the character\'s health had been  displayed as 100%, and I waited for approximately 200 seconds, which should have brought it up to 100% no matter what, so the spell should\'ve been a nop).
Result => Items can now be picked up, and killing the Clacker again lets one loot whatever it has. Steuben was right on the first count...

Edit: Please feel free to log into the character / duplicate its data into a new one (just /tell me beforehand in-game so I can log off).

Edit 2: Killing the next clacker spawned in the very same spot results in the no space left warning. Health still at 100%. Life infusion => can pick up.
« Last Edit: January 16, 2006, 12:12:37 am by Moocha »

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #24 on: January 16, 2006, 12:19:45 am »
Life Infusion o.O

WTH?...  Why would that do anything?...
Ok, now I\'m thinking this is due to stats problems.

Edited to add:
Another possibility is that healing yourself with a spell or food causes RecalculateStats() to be called for your character, which calls CalculateStats() for your inventory, which calls ReassessInventoryDimensions(), which corrects everything.  Which would imply that something somewhere didn\'t call SubtractDimensionsFromInventory() or shouldn\'t have called AddDimensionsToInventory().  (or, it could just be the FUBARed stats)

I\'ve added a message to output the reason for the failed attempt to add the item to the inventory.  After it starts showing up, please do this again and tell me what it says.

Edited to add yet more:
Does this only happen after looting?
« Last Edit: January 16, 2006, 12:59:58 am by DaveG »

::  PlaneShift Team Programmer  ::

Moocha

  • Traveller
  • *
  • Posts: 18
    • View Profile
(No subject)
« Reply #25 on: January 16, 2006, 01:08:22 am »
Quote
Originally posted by DaveG
Edited to add yet more:
Does this only happen after looting?
I\'m currently killing Tefus to fill it up faster, to see if your debug output appears. Araye mentioned it happens on buying too, a few posts back (http://planeshift.oodlz.com/wbboard/thread.php?boardid=33&threadid=21572&page=1#20).

Moocha

  • Traveller
  • *
  • Posts: 18
    • View Profile
(No subject)
« Reply #26 on: January 16, 2006, 01:43:58 am »
No debug output yet (the server wasn\'t restarted - I assume it\'ll need to so the modifications kick in...)
Edit: Was just restarted. Will reproduce as soon as it\'s back up.

I\'m not sure it\'s the stats recalculation that triggers the allowing to pick up behavior, since I did this:
1. Kill Tefusang, loot 1 skin + 1 tooth, both drop to the ground.
2. Yell at morons who try to interfere and keep picking up the dropped items.
3. Wait till another spawns, attack it on Defensive, clear target, let it hit me down to 50-ish % health, then (while it was still hitting me) try to pick up items from the ground. Still denied.
4. Yell at morons some more.
5. Kill Tefu, try to pick up items. Still denied.
6. Cast one Life Infusion, bringing health up a few points. Can now pick up.
7. Kill a few more Tefus, confirm that the character can still pick up loot.
8. Once it denied the pickup again, use one health potion, confirm that one can pick up again.

Lather, rinse, repeat.
« Last Edit: January 16, 2006, 01:55:03 am by Moocha »

shorty13

  • Hydlaa Notable
  • *
  • Posts: 580
  • Skiing > All
    • View Profile
(No subject)
« Reply #27 on: January 16, 2006, 01:56:44 am »
food works too.
There are two types of people in this world: The Pinky and the Brain.
Which one are you?

Moocha

  • Traveller
  • *
  • Posts: 18
    • View Profile
(No subject)
« Reply #28 on: January 16, 2006, 02:00:53 am »
After the restart I was able to drop a few items around and pick them up immediately again (normally once the limit kicked in it was impossible to pick up items that had been dropped a few seconds before).
Killed a Tefu.
You looted a Tefusang skin.
The Tefusang Tooth will be too much for you to carry
You looted a Tefusang Tooth, but can\'t hold anymore
You start casting Life Infusion
You transfer healing energy by your touch.
Your wounds were healed a bit (hah, 100% Health)
Samadin Cerillo picked up (garbage, supposed to be the Tooth)


*edit*

Just noticed the following - it\'s not strictly health-related. Instead of casting Life Infusion or eating something, it lets you pick up items even after casting Defensive Wind.

Edit 2: Waiting until the DefWind effect ceases (\"The defensive wind stops blowing\") works too - after that message one can pick up items.
Killing a monster causing loot to be dropped with \"too much to carry\", then waiting for the next spawn and killing it with magic so the mana and mental stamina stats change does not do the trick, no matter how quickly one tries to pick them up after killing the monster.

Edit 3: Note that no matter what you do it does not seem possible to exceed the real maximum weigth. The reason message one gets when trying to pick up excessive weight is the same as above - The (item_name) will be too much for you to carry

Edit 4: Thank you for taking the time to work on this. Hope you will find it! Good luck and tracy debuggers :).

------------------------------

(Reply instead of edit to make sure the thread is flagged as new)

We don\'t do that around here ;) Bumping threads can be done by editing your post as well. Please avoid posting two or more successive posts before others have replied, since it doesn\'t make people read your thread any faster, and serves only to raise your Deleted Posts count. Thanks :) --Karyuu

I was under the impression that an edit doesn\'t perform a bump. Whoops.
« Last Edit: January 16, 2006, 02:29:49 am by Moocha »

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #29 on: January 16, 2006, 02:25:09 am »
Well, it seems to just be your carried weight isn\'t calculated right.  I\'ll keep digging through the code.  Moocha, thanks for your help.  Not much else you can do now.  I\'ll find it eventually...  :/

::  PlaneShift Team Programmer  ::