Welcome to Gaia! :: View User's Journal | Gaia Journals

 
 

View User's Journal

Lanzer's Journal
Inventory Debug Marches On
Thanks to the many Gaians that helped me with the issue, I can now reproduce the bug. The problem now is to comb through the frontend code, which will take more time to debug as I suck at old school Javascript.

Strider is continuously whiny, but doing surprisingly good for his 2nd day after surgery.

Want to get this bug over with so I can jump into writing the Gaia Mobile PRD. whee

[3:40AM]
After a long struggle and throwing around 3 dozen debug logs I finally found a major bug that messes the inventory arranger! Though this fix only address the issue where "nothing happens when moving items out of temp storage". There is still a backend bug that mess up the order of items when arranging. I'll keep testing to find a fix for that. whee

[1PM]
The backend's stacking feature has some fundamental flaws. It takes a page full of items then stacks them. Problem here is that if a stack of items happen to exist between two pages, then the stacking is messed up. Same thing if you move a stack of item from the middle of the page to the end of the page. Same problem is if you have a stack of 100 items, then set "items per page" to 25, and you'll get 4 pages of one single item with a stack # of 25. Some serious changes need to be made on the ground level so that pagination will respect the fact that we're stacking items. Oh yes, I need to sleep. To be continued after a nap...

PSA of the day:
Remember that Javascript doesn't handle associative arrays like PHP! Declare an object instead to save yourself a whole bunch of headaches!






User Comments: [10]
Sagebomb
Community Member





Sun Jan 22, 2017 @ 08:36am


Understandable strider aint too happy. Hope you take a few good breaks to give him lots of attention ^_^


Esdella Vie
Community Member





Sun Jan 22, 2017 @ 11:48am


Glad you're making some headway, but don't forget to sleep!

lol even the captcha is in on it, it was 'dance all night'


Yumitoko II
Community Member





Sun Jan 22, 2017 @ 12:06pm


I'm glad you've managed to find a major bug, thank you for being persistent about fixing the site. biggrin


Knight Yoshi
Community Member





Sun Jan 22, 2017 @ 01:14pm


Or use a Map instead of an Object. Maps have key/value pairs.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map


True Karma
Community Member





Sun Jan 22, 2017 @ 03:12pm


I wish I was further in my Javascript class to have that PSA make sense haha but good to know and one problem down is great n.n one step at a time and you will get this all!

Good luck!


Hydro
Community Member





Sun Jan 22, 2017 @ 05:03pm


I really appreciate your updates, Lanzer! I'm a fairly new coder, I mainly worked with basic JavaScript for the past two years, funny enough. Good luck with the Mobile PRD!


Dlen Isolde
Community Member





Sun Jan 22, 2017 @ 07:53pm


I still find myself going back to the The Really Old Inventory Arranger to do most of my arranging as I can be very precise and move groups easily or if I only want to move only one of a multiple of an item, no problem there either.

The new arranger is nice and ok for miner moving. But I have never had trouble with the old one. And it doesn't mix stuff up after moving them.

In fact sometimes I use a combo of both arranger. I do mass moving with the old arranger. Once large groups of items are together in on place I can go to the new arranger and go to tabs to do minor rearranging quicker. By this time the items are usually on the same page and don't need to be put into temp storage and moved. T

Btw, I was wondering if we could have a separate Kin Storage?

Like we have a house storage separate from the regular storage. I would love to have a place to put my extra kin without them getting lost in the massive amount of items I have in the regular storage. Especially if I want to do a quick storage of my main Kin so I can craft stuff that uses kin without losing my best kin.

That reminds me on a side note. Crafting with kin shouldn't take the FIRST in your inventory. It really needs to take the ones you have towards the LAST. Just an extra precaution so you don't accidentally lose them while crafting.


Elymnesis
Community Member





Sun Jan 22, 2017 @ 10:02pm


Hey, I know some of these words!


Platonix
Community Member





Mon Jan 23, 2017 @ 12:15am


Honestly, the dividing 100 items into 4 pages of 25 isn't even a bug, it's just expected behavior...but it'd certainly be neat if you could put together something more convenient for us while also making it glitch less! heart Code On, For Everlasting Peace! emotion_yatta


Chocobo Princess
Global Moderator





Mon Jan 23, 2017 @ 01:45am


THAT'S IT, THAT'S MY BUG~! YOU FOUND IT! crying

I am not trained in coding at all, but the behaviour described is exactly why I can't use the inventory arranger. 3nodding It assigns numbers to the items on the whole page, but if I move something from that page, it doesn't retain the order of the items following the one I moved. Yes, this is the thing. blaugh

Thank you for your hard work on this. I hope you can find a good solution to this problem.


User Comments: [10]
 
 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum