Forgot Password?
Advanced Search
Join our Discord Follow our Facebook page Follow our Instagram page View Official Sylestia Merchandise
Active Players on Sylestia
Category Total Yesterday
Players 1,484 287
Sylestia Pet Data
Category Total Yesterday
Pets 9,091,499 951
Generated 741,202 51
Captured 1,278,752 104
Bred 7,071,399 796
Statistics updated daily at midnight
Join Today!
Forum Index > Bug Reporting > Magical Pies
Page 1  
Author Thread Post
UntitledPrince
Level 75
Master Sylestiologist
Joined: 9/23/2021
Threads: 161
Posts: 2,227
Posted: 4/21/2023 at 1:32 AM Post #1
Tradable magical pies are currently being used from the inventory before non-tradable ones.
Wistirio
Level 75
Lucky Fox
Joined: 10/18/2018
Threads: 55
Posts: 2,094
Posted: 4/21/2023 at 10:46 AM Post #2
Is it possible you had the non-tradable higher in your inventory than the tradeable ones?
UntitledPrince
Level 75
Master Sylestiologist
Joined: 9/23/2021
Threads: 161
Posts: 2,227
Posted: 4/22/2023 at 1:03 AM Post #3
I did not know that made a difference haha. I just thought the non-tradable ones were used first by default, but I guess that's just the way I normally have them organised. Thanks! (:
Krinadon
Level 75
Shadow of the Moon
Site Administrator
Joined: 12/17/2012
Threads: 1,242
Posts: 15,406
Posted: 4/24/2023 at 12:22 PM Post #4
So, newer features (which really isn't much in regards to item consumption at this time) use a global function that cleanly reduces stacks/uses items. However, older features, such as the pet profile page, does it manually directly in the page.

The newer method builds an array of all valid items and then sorts them putting Not Tradeable ones first - making sure that they are always consumed first. However, in older features, it's just kind of random depending on however it was coded at the time I wrote the code lol. For using philters, I think it just literally grabs it from the database table and whichever row happens to be pulled first is the one that's used.

Unfortunately, the code specifically for philters is very convoluted. I don't really want to touch it in an attempt to change this at this time; it most likely will cause unforeseen consequences. Whenever pet profiles/using philters is overhauled, this will be updated though.
Edited By Krinadon on 4/24/2023 at 12:22 PM.
UntitledPrince
Level 75
Master Sylestiologist
Joined: 9/23/2021
Threads: 161
Posts: 2,227
Posted: 4/25/2023 at 12:04 AM Post #5
Ahhhh okay that makes sense. Thanks for taking the time to explain how the code works. I'm still pretty early on in my computer science degree but I love to hear how stuff works behind the scenes (:
 
This Page loaded in 0.009 seconds.
Terms of Service | Privacy Policy | Contact Us | Credits | Job Opportunities
Join our Discord Follow our Facebook page Follow our Instagram page Visit Official Merchandise Shop
© Copyright 2011-2026 Sylestia Games LLC.
All names and logos associated with Sylestia are Trademarks of Sylestia Games LLC.
All other trademarks are the property of their respective owners.
For questions, comments, or concerns please email at Support@Sylestia.com.