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,485 261
Sylestia Pet Data
Category Total Yesterday
Pets 9,093,380 1,881
Generated 741,250 48
Captured 1,278,850 98
Bred 7,073,134 1,735
Statistics updated daily at midnight
Join Today!
Forum Index > Bug Reporting > Generator blues
Page 1  
Author Thread Post
Eainai
Level 75
Trickster
Joined: 6/26/2018
Threads: 10
Posts: 298
Posted: 6/13/2021 at 10:46 PM Post #1
I found this bug while playing around in the generator. I found a color that I really liked, copied it, but I accidentally copied the hashtag as well as the rest of the hex code, and this happened:
All of the images for the generator are now egglings

After trying to replicate the bug, it works on every species when you put a # into the hex code generator. I've tried pretty much every single character and none others that I have found replicate this bug so far. I've tried the ascii characters that correspond to the factors of #'s number (# is 35, so I tried (1), (5), and (7)) plus pretty much every single multiple of #. #'s ascii number is exactly half of F's, which might be what caused the confusion (after all, F is the largest number in the hexadecimal system.), but I don't know how that, in particular, would work.

Dusted off a lot of my skills to find what was the problem with this, and I still have no idea :/, and now my nerd side is hungry for the solution to this, as much as my Sylestia side is annoyed at this bug.
Krinadon
Level 75
Shadow of the Moon
Site Administrator
Joined: 12/17/2012
Threads: 1,242
Posts: 15,406
Posted: 6/14/2021 at 2:38 PM Post #2
Hm. So I'm not really able to break anything as you've described. Even if I just put in gibberish:



Obviously, that isn't a valid color and then the code just pretends I set it to pure white. However, I can just simply change the color from there and everything is back to normal. I am unable to reproduce the result where you are ending up with a blank hex box.

Is the page breaking at that point forcing a full reload? Or can you just fix the entry and continue designing?
Eainai
Level 75
Trickster
Joined: 6/26/2018
Threads: 10
Posts: 298
Posted: 6/14/2021 at 2:45 PM Post #3
While there's a # in any of the hex boxes, I'm not able to edit any of the other colors, but by removing it, I can keep on editing. I only ended up with a blank hex box about 25% of the time when putting in a #, and only in the eye color slot. The other times, it would just show up as whatever was in the box beforehand. I don't know how putting in a hashtag would make all of the previews show up as egglings, though.
Krinadon
Level 75
Shadow of the Moon
Site Administrator
Joined: 12/17/2012
Threads: 1,242
Posts: 15,406
Posted: 6/14/2021 at 3:15 PM Post #4
It's because of how URL parameters work. It wasn't filtering out the '#' and was then eventually passing that along into the URL for the image. And when the browser would interpret that, it breaks the URL variable parsing and I guess thinks everything after the # is like an anchor and no longer URL variables. So then the image parsing part of the code just defaults to all the default values which is pure white hexes and maturity = 0. So you end up with a white Eggling.

I went ahead and edited the script file to filter out non alphanumerical characters. So now if you try and submit a color that's "#FFFFF", or any special characters, it will just reject it and default that color input to "FFFFFF".
 
This Page loaded in 0.010 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.