[BUG] Glitchy player item inventory scrollbar

Discussion in 'Bugs' started by Jarmo, Oct 7, 2013.

  1. Jarmo

    Jarmo Snow Griffin

    The scrollbar in the player item inventory window is glitchy. It often stops working for period of a few seconds (random length) when you repeatedly click on the scrollbar end arrows or the scrollbar body above or below the scrollbar position indicator. The end result is that especially the shop UI is pretty frustrating to use. Even dragging the indicator sometimes stops working.

    My normal method of selling my extra stuff is to go to a shop, select one item category at a time from my inventory and keep clicking the scrollbar down arrow (or the scrollbar itself below the indicator) to find any extra items to sell, e.g. a fourth copy of a racial skill. The glitchy scrollbar makes this process more painful that it has to be.

    The glitch invariably shows up a few times while going through my entire inventory one category at a time. I repeat this selling process every few MP/SP matches so I get the problem quite a lot.

    I do have quite a lot of stuff in my inventory, over a thousand items at a guess. I don't know if this affects the scrollbar functionality. My player name is the same as my forum nick if you need to look at my inventory.

    If you don't see this bug at first just keep clicking the scrollbar up and down arrows. It will happen soon enough. I have seen this on multiple PCs and browsers.
    For some reason, the shop inventory scrollbar does not seem to suffer from this problem. I can click it up and down for as long as I can stand it with no hiccups.
     
  2. OneMoreNameless

    OneMoreNameless Goblin Champion

    I've had this occasionally happen to me as well - though only when the (by now many) item graphics are still loading in after recently starting the game.
     
  3. Jarmo

    Jarmo Snow Griffin

    This happens to me no matter how long I've been playing and even if all the item graphics have long since loaded.
     
  4. Jarmo

    Jarmo Snow Griffin

    Still glitching, still rather annoying. It feels quite the drag when the UI fights against you every time you play with your paper doll accoutrements.
     
  5. Jarmo

    Jarmo Snow Griffin

    Blue Manchu, could you please comment on this bug? Have you had time to look into it? Have you been able to reproduce it? Is there any hope of getting this fixed? It's a constant impediment to the full enjoyment of the game.

    Maybe there's something special in the player inventory handling that makes the scrollbar work sporadically? The shop inventory scrollbar and all other scrollbars I've seen in Card Hunter work perfectly. Maybe the scrollbar position indicator location/size math is wonky? Or is it a Flash thing beyond your control? Memory handling problems with massive inventories?

    All you other players, if you happen to read this, have you seen the same problem, described in detail in the first post? Or does your player inventory scrollbar always work perfectly? I always get this bug if I select an item category and start scrolling down with the down button or by clicking the scrollbar below the position indicator, if not when scrolling through the whole first item category, then for sure after repeating the process for three-four categories. I often get in the first scrollthrough. I've seen this in Chrome and Firefox and several PCs, desktop and laptop, so it doesn't seem to be system-dependent.
     
  6. Jon

    Jon Blue Manchu Staff Member

    As a first guess, it might be that the player inventory has some filters applied to it that are causing the scrolling to be slow.

    Could you try the following? Open the game console with F1 then type "stat". This should bring up a display of your frame rate in the top left corner of the screen. I'd be interested to see if this takes a hit when you see the problem.

    You can type "stat" again to turn this display off.
     
  7. Farbs

    Farbs Blue Manchu Staff Member

    It might also be interesting to check out our memory usage. If you are already running your machine close to capacity then scrolling through a large item collection could cause some thrashing, which can be very slow. Closing other browser tabs that are running heavy flash content can help a lot there.
     
  8. Jarmo

    Jarmo Snow Griffin

    Thanks for the replies, Jon and Farbs!

    Filters: These have an effect, the glitch appears much more often and sooner with an item type filter applied than with "All Items" selected. The sort buttons don't seem to have as much of an effect. The glitch can be seen even with all filter/sort settings at default values, though. If the inventory is repeatedly scrolled as described in my earlier posts sooner or later it will stop moving and often clicking or dragging some other element than which was being clicked is required to get it moving again.

    Stat: The frame rate drops from the usual 60 to even single digits when I quickly scroll the inventory (still working fine), but as soon as the glitch appears (movement stops) the fps becomes 60 again (nothing to update...) and stays at 60.

    Memory: My gaming laptop has 8GB of RAM. The stat tool lists MEM as 250.000-270.000 while I intensively use the inventory scrolling and MAX currently as 353.871. Windows Task Manager shows FlashPlayerPlugin process using about 304,000 K and Firefox as 160,000 - 170,000 K (Firefox is the only application running and only two browser tabs, the game and this forum). Total physical memory usage is 2.09 GB, available physical memory is 6,022 MB, cached 1,867 MB and free 4,254 MB. I'd say it's not the amount of memory.

    If there was a "sell excess inventory" button this glitch wouldn't be much bother as there would be no need to manually handle the inventory so much. Currently I run into this a couple dozen times every day (in the one to two daily selling sessions I perform).
     
  9. Jon

    Jon Blue Manchu Staff Member

    What would "sell excess" actually do? i.e. how would it know what you wanted to sell or not?
     
  10. Jarmo

    Jarmo Snow Griffin

    There's a detailed suggestion about the sell excess items button in this thread. The basic idea is to sell what you cannot possibly use based on the maximum amount of item type slots. There are two divine weapon slots on a priest so the maximum of them you can ever use in your party is six copies. Anything over that you can safely sell.

    This is how I handle my hoard and I suspect many others do the same. I keep every item but nothing over the maximum usable amount and I keep no treasure. This means I'm continually browsing through my inventory (filtered by type to have only the one maximum number to keep in mind at one time) and selling e.g. all arcane items I have over 12 copies of. This is why the scrollbar bug is so bothersome, it's in my face all the time.
     
  11. Jarmo

    Jarmo Snow Griffin

    Still tormented by this bug. It's especially annoying when I want to sell my extras at the end of a game session. I'm then often at a rush to get it done and leave and having to wrangle the unresponsive UI every time is really eating at my nerves. Blue Manchu, could you please do something about this?

    I suspect the scrollbar-related math is wonky because the position indicator seems to stop at the same place every time and must be coaxed by clicking or dragging somewhere else or re-sorting to get it beyond the tricky position. Also, selling items especially by ctrl-clicking seems to easily trip the scrolling up. That is, I'm scrolling through a category, say Arcane skills, stop, sell a skill or two, try to resume scrolling by clicking the scrollbar down arrow or the scrollbar itself under the position indicator -> nothing happens. This might be related to the sorting/rearranging of the remaining items.

    I would really really appreciate it if this bug was addressed. It has now been almost two months since it was reported and improvement is still not in sight. It's a part of the basic UI functionality of the game, it absolutely should work reliably. Having to fight against the UI every single game session is maddening.
     
  12. Jarmo

    Jarmo Snow Griffin

    I finally figured out what the problem with the player inventory scrollbar is. When you scroll downwards enough, at some point the active area of the scrollbar body and the up/down arrows shrinks to 1/3, at the extreme right side of them. You can see this by moving the mouse over them, the scrollbar slightly changes colour when you are over the active area. I don't know what makes the active area shrink (or a mask come over it). When this happens, you can click all you want on the left side of the scrollbar or the buttons and it won't scroll. This bug was subtle enough that it took two months to notice what was actually happening.
     
  13. Jon

    Jon Blue Manchu Staff Member

    I think I see what your problem is. When you have multiple copies of the same item, the item stack can overlap the scroll bar, making it impossible to click on part of the scrollbar (e.g. the scroll button). I'm going to fix this by reordering the display hierarchy so that the items all sort behind the scrollbar. As a bonus, I'm also going to brighten up the highlighting on the scrollbar buttons.
     
    Jarmo likes this.
  14. Jarmo

    Jarmo Snow Griffin

    Whew, am I ever so glad you found the cause and that this bug is finally nearing extinction. And great about the improved highlighting, that will make it easier and more pleasant to use even when you don't have the sounds on.
     
  15. Jon

    Jon Blue Manchu Staff Member

    Just a note: on further investigation, I found that our item bitmaps were being incorrectly sized, so they were overlapping the scrollbar when they shouldn't have. I've fixed this and think it should address your issue.
     
  16. Jarmo

    Jarmo Snow Griffin

    Thanks for the fix and the info, appreciate it!

    I tried the new build and it's amazing what a difference a well-working inventory scrollbar makes. It feels like where before I was on crutches, now I can run! I can soar! Wheee!
     
  17. Phaselock

    Phaselock Bugblatter

    For your future reference, a screenshot would have helped. I tried recreating many times on test but could never get reproduce. :(
     
  18. Jarmo

    Jarmo Snow Griffin

    Ok, good point. Didn't think to include it probably because the functionality is so commonplace as to be very hard to actually perceive even when purposely studied. I appreciate your efforts! It's good to know people were trying to help.
     

Share This Page