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!
|