Check your pet's favorite color/flavor from their .pet file!
Apr 8, 2022 15:44:51 GMT -5
Ratqueen, shaina @ kizmet, and 11 more like this
Post by Bunni on Apr 8, 2022 15:44:51 GMT -5
How To Check Your Petz' Favorite Colors/Flavors From Their .Pet File!
A Tutorial by Bunni
There has been an exciting new development shared in the Petz Community via the Petz Hacking & Modding Discord! Reflet @ Yabiko has discovered a sprite descriptor structure inside each pet file that defines the pet's affinity/preferences for certain adjectives. Now that might sound a little technical, but have no fear, I'm going to simplify this tutorial as much as possible so everyone can easily and successfully discover their petz' favorite color(s) and flavor(s) on their own! All you need is a hex editor program.
Step One
Open the .pet file of the pet whose favorite color(s)/flavor(s) you'd like to check in a hex editor.
For this tutorial, I'm going to be checking my pup Mirrors' favorite color(s)/flavor(s).
Step Two
Go to Edit > Find and search for the text (not hex) magic. Press next 4 times so that you are brought to the 4th time that magic is written in the .pet file.
Step Three
Now you should be looking at something similar to the image below. See that box of FFs that I highlighted in red? You'll want to locate that in the pet file. If all of the FF's aren't lined up in a little box like that, then you will need to resize your screen (or change the viewing settings) so that you are viewing the data in more or less columns until you see it line up into a box. For me, the FF's all line up like that when I am viewing the bytes in 17 columns. I have highlighting this for you in yellow. 00 to 16 is actually 17 columns. Don't be fooled by the 16, because 00 is the first column.
So once you have all the FF's line up into a neat little box like so, you can get the values you need to determine your pet's favorite color and flavor right beneath it! Highlighted in green is the value for the pet's favorite color(s) and highlighted in blue is the pet's favorite flavor(s).
So let's write it down:
Favorite Color: 30 00 00 00
Favorite Flavor: 06 00 00 00
Step Four
Now let's do a quick conversion of these from hex to binary.
Because all the bytes after 30 are 00, we don't have to worry about them.
So, for the favorite color, convert the hex 30 into binary. You can use this website if you'd like.
Here you can see that the value in binary is 00110000.
Binary is like "on" and "off" switches. A zero is off, while a one is on.
You need to count backwards (so from right to left) to see which switches here are "on" for the petz favorite color. Two switches are on (there are two 1's) so that means Mirrors has two favorite colors! Let's find out what they are:
Note that you need to start your counting with zero and go up! So 0, 1, 2, 3... and again, you're counting from right to left. You can see that I've done this below the binary using light grey numbers.
The 4 and 5 are the ones turned on! So those two are her favorite colors.
Here's the chart to find out which number is which color:
Mirrors' favorite colors are yellow and blue! Awesome!!
Now let's go back and find out her favorite flavor(s).
Favorite Flavor: 06 00 00 00
So again, all the bytes after 06 are 00 so we don't have to worry about them.
Let's convert 06 to binary:
Note that flavors 1 and 2 are turned on! Let's see what those are:
Mirrors' favorite flavors are beef and fish/olives! Woohoo!!
Finished
Mirrors must really enjoy eating out of the P.F. Magic Blue Dog Food Bowl (it's beef flavored!)
One Last Thing...
Remember how Mirrors' favorite flavor was 06 00 00 00 and I said that you didn't need to worry about the 00's after the 06 because all of them were 00's? Well, you may come across pet files that have those bytes in use. For example, my little pig Oinkly has a huge value for her favorite flavor(s).
Favorite Color: 20 00 00 00
Favorite Flavor: 00 1B 00 08
All four bytes are being used for the favorite flavor. Anytime 2+ bytes are being used, in either the favorite color or favorite flavor value, you will need first rearrange the bytes into little endian format. To do this, you essentially just write the bytes backwards. Don't flip the two digits, just write the paired digits (bytes) backwards.
So 00 1B 00 08 becomes 08 00 1B 00.
Now that you've rearranged it, you can input it into the hex to binary converter.
Wow! Oinkly has 5 different favorite flavors... and spoiler alert: they're weird ones!
(I guess that's pigz for ya?)
Her favorite flavors are 8, 9, 11, 12, and 27. I'll let you go up to the chart to see what those are! xD
By the way, that flavor chart (and the color one) are from gyiyg 's post about how to change internal toy adjectives here (such a great resource and read!) and also this spreadsheet here. You can confirm the flavor and color of each P.F. Magic toy using that spreadsheet.
Conclusion
I hope that this tutorial will help you easily and successfully find out your petz' favorite colors and flavors. I tried my best to simplify everything as much as possible so that anyone here in the community would be able to do it for themselves! If you'd like to learn more about this discovery, or get into the technicalities of it all, I highly recommend joining the Petz Hacking & Modding Discord. There's always lots of research and new discoveries going on in there!
Also, I think it would be fantastic to use this thread to gather more information on Petz' favorite colors and flavors. If you had success following this tutorial, please share your results below. It can be fun to crowd-source information like this so we can look for similarities/differences/patterns in the data. So share your results, ask questions, and/or comment away! ^^
Again, a huge thanks to Reflet for discovering all of this + sharing it with the community!
[ Updates ]
Thor's Pet Checker Program
Thor wrote a program that allows you to quickly check all of your petz' favorite colors/flavors!
Download it here: github.com/kyokichi/PetzChecker/releases
Toyz Color & Flavor Table
Now that you've discovered your petz' faves, you may be interested in knowing the color/flavor of each toy in the game! I created an easy-to-read table below using info from Reflet's spreadsheet found here.
A Tutorial by Bunni
There has been an exciting new development shared in the Petz Community via the Petz Hacking & Modding Discord! Reflet @ Yabiko has discovered a sprite descriptor structure inside each pet file that defines the pet's affinity/preferences for certain adjectives. Now that might sound a little technical, but have no fear, I'm going to simplify this tutorial as much as possible so everyone can easily and successfully discover their petz' favorite color(s) and flavor(s) on their own! All you need is a hex editor program.
Step One
Open the .pet file of the pet whose favorite color(s)/flavor(s) you'd like to check in a hex editor.
For this tutorial, I'm going to be checking my pup Mirrors' favorite color(s)/flavor(s).
Step Two
Go to Edit > Find and search for the text (not hex) magic. Press next 4 times so that you are brought to the 4th time that magic is written in the .pet file.
Step Three
Now you should be looking at something similar to the image below. See that box of FFs that I highlighted in red? You'll want to locate that in the pet file. If all of the FF's aren't lined up in a little box like that, then you will need to resize your screen (or change the viewing settings) so that you are viewing the data in more or less columns until you see it line up into a box. For me, the FF's all line up like that when I am viewing the bytes in 17 columns. I have highlighting this for you in yellow. 00 to 16 is actually 17 columns. Don't be fooled by the 16, because 00 is the first column.
So once you have all the FF's line up into a neat little box like so, you can get the values you need to determine your pet's favorite color and flavor right beneath it! Highlighted in green is the value for the pet's favorite color(s) and highlighted in blue is the pet's favorite flavor(s).
So let's write it down:
Favorite Color: 30 00 00 00
Favorite Flavor: 06 00 00 00
Step Four
Now let's do a quick conversion of these from hex to binary.
Because all the bytes after 30 are 00, we don't have to worry about them.
So, for the favorite color, convert the hex 30 into binary. You can use this website if you'd like.
Here you can see that the value in binary is 00110000.
Binary is like "on" and "off" switches. A zero is off, while a one is on.
You need to count backwards (so from right to left) to see which switches here are "on" for the petz favorite color. Two switches are on (there are two 1's) so that means Mirrors has two favorite colors! Let's find out what they are:
Note that you need to start your counting with zero and go up! So 0, 1, 2, 3... and again, you're counting from right to left. You can see that I've done this below the binary using light grey numbers.
The 4 and 5 are the ones turned on! So those two are her favorite colors.
Here's the chart to find out which number is which color:
0 | white |
1 | black |
2 | red |
3 | green |
4 | yellow |
5 | blue |
6 | purple |
7 | pink |
8 | orange |
9 | brown |
10 | grey |
11 | clear/glossy |
Mirrors' favorite colors are yellow and blue! Awesome!!
Now let's go back and find out her favorite flavor(s).
Favorite Flavor: 06 00 00 00
So again, all the bytes after 06 are 00 so we don't have to worry about them.
Let's convert 06 to binary:
Note that flavors 1 and 2 are turned on! Let's see what those are:
0 | chicken (chicken treats, healthy treats) |
1 | beef (dog food, beef treats, etc.) |
2 | fish/olives (fish treat, olive treat, green food bowl) |
3 | turkey/leftovers |
4 | creamy things/hot cocoa (milk bottle, hearts, stars, and striped mugs) |
5 | sweets (cotton candy, candy hearts, and popcorn treats) |
6 | catnip |
7 | cheese |
8 | colorful smooth things (easter eggs, circus balls, toy car, cat dancer base, etc.) |
9 | bouncy balls and squeaky chew toys (most non-circus balls, leprechaun) |
10 | soft fuzzy things (pillows, cat dancer puff, wool chew doll, yarn ball, etc.) |
11 | bone (bone, fish bone) |
12 | wood and cardboard (brushes, picture frames, sticks, surprise box,etc.) |
13 | metallic/shiny things (jingle ball, music box, doubloons, gemstones) |
14 | water (water bowls) |
15 | sandy (seashells, hermit crab, coconut, arrowhead, fossil, etc.) |
16 | unused? |
17 | bad (hair ball, flea spray) |
18-22 | unused? |
23 | chemicals (paint, perfume, bug barn, etc.) |
24 | garbage (coal, message bottles) |
25 | unused? |
26 | outside of the flea spray bottle |
27 | plants (seeds, jack o lantern) |
Mirrors' favorite flavors are beef and fish/olives! Woohoo!!
Finished
Mirrors must really enjoy eating out of the P.F. Magic Blue Dog Food Bowl (it's beef flavored!)
One Last Thing...
Remember how Mirrors' favorite flavor was 06 00 00 00 and I said that you didn't need to worry about the 00's after the 06 because all of them were 00's? Well, you may come across pet files that have those bytes in use. For example, my little pig Oinkly has a huge value for her favorite flavor(s).
Favorite Color: 20 00 00 00
Favorite Flavor: 00 1B 00 08
All four bytes are being used for the favorite flavor. Anytime 2+ bytes are being used, in either the favorite color or favorite flavor value, you will need first rearrange the bytes into little endian format. To do this, you essentially just write the bytes backwards. Don't flip the two digits, just write the paired digits (bytes) backwards.
So 00 1B 00 08 becomes 08 00 1B 00.
Now that you've rearranged it, you can input it into the hex to binary converter.
Wow! Oinkly has 5 different favorite flavors... and spoiler alert: they're weird ones!
(I guess that's pigz for ya?)
Her favorite flavors are 8, 9, 11, 12, and 27. I'll let you go up to the chart to see what those are! xD
By the way, that flavor chart (and the color one) are from gyiyg 's post about how to change internal toy adjectives here (such a great resource and read!) and also this spreadsheet here. You can confirm the flavor and color of each P.F. Magic toy using that spreadsheet.
Conclusion
I hope that this tutorial will help you easily and successfully find out your petz' favorite colors and flavors. I tried my best to simplify everything as much as possible so that anyone here in the community would be able to do it for themselves! If you'd like to learn more about this discovery, or get into the technicalities of it all, I highly recommend joining the Petz Hacking & Modding Discord. There's always lots of research and new discoveries going on in there!
Also, I think it would be fantastic to use this thread to gather more information on Petz' favorite colors and flavors. If you had success following this tutorial, please share your results below. It can be fun to crowd-source information like this so we can look for similarities/differences/patterns in the data. So share your results, ask questions, and/or comment away! ^^
Again, a huge thanks to Reflet for discovering all of this + sharing it with the community!
[ Updates ]
Thor's Pet Checker Program
Thor wrote a program that allows you to quickly check all of your petz' favorite colors/flavors!
Download it here: github.com/kyokichi/PetzChecker/releases
Toyz Color & Flavor Table
Now that you've discovered your petz' faves, you may be interested in knowing the color/flavor of each toy in the game! I created an easy-to-read table below using info from Reflet's spreadsheet found here.
Toy | Color | Flavor |
---|---|---|
Toy Car | Red | Smooth (8) |
Auto-Rolling Ball | Green | Balls/Squeaky (9) |
Beach Ball | White | Smooth (8) |
Red/Yellow Ball | Blue | Smooth (8) |
Striped Ball | Red | Smooth (8) |
Coconut | Brown | Sandy (15) |
Duo Ball | Purple | Balls/Squeaky (9) |
Hair Ball | Brown | Bad (17) |
Jingle Ball | White | Metallic/Shiny (13) |
Star Ball | Yellow | Balls/Squeaky (9) |
Soccer Ball | White | Balls/Squeaky (9) |
Pirate Skull | White | Chemicals (23) |
Tennis Ball | Yellow | Balls/Squeaky (9) |
Yarn Ball | Red | Soft/Fuzzy (10) |
Bug Barn | Yellow | Chemicals (23) |
Jack O'Lantern | Orange | Plants (27) |
Wicker Basket | Brown | Wood/Cardboard (12) |
Flowers | Yellow & Orange | Soft/Fuzzy (10) |
Fish Bone | White | Bone (11) |
Bone | White | Bone (11) |
Gray Food Bowl | Gray | Beef (1) |
Blue Food Bowl | Blue | Beef (1) |
Red Food Bowl | Red | Turkey/Leftovers (3) |
Green Food Bowl | Green | Fish/Olives (2) |
Flowers | Green | Wood/Cardboard (12) |
Catnip Plant | Green | Catnip (6) |
Leftovers | Red | Turkey/Leftovers (3) |
White Water Bowl | White | Water (14) |
Brown Water Bowl | Brown | Water (14) |
Hearts Mug | Gray | Creamy (4) |
Stars Mug | Blue | Creamy (4) |
Striped Mug | Green | Creamy (4) |
Feeder | Gray | Beef (1) |
Blue Brush | Blue | Wood/Cardboard (12) |
Wood Brush | Blue | Wood/Cardboard (12) |
Chewy Sneaker | Green | Soft/Fuzzy (10) |
Leprechaun | Green | Balls/Squeaky (9) |
Wool Chew Doll | White | Soft/Fuzzy (10) |
Cuckoo Clock | Brown | Wood/Cardboard (12) |
Art Deco Clock | Brown | Wood/Cardboard (12) |
School Clock | Orange | Wood/Cardboard (12) |
Hermit Crab | White | Sandy (15) |
Cat Dancer | Yellow | Smooth (8) |
Cat Dancer | Blue | Soft/Fuzzy (10) |
Cheese | Yellow | Cheese (7) |
Cheese | Yellow | Cheese (7) |
Music Box | White | Metallic/Shiny (13) |
Milk Bottle | White | Creamy (4) |
Paint Can | Orange | Chemicals (23) |
Paint Can | Orange | Chemicals (23) |
Blue Frame | Blue | Wood/Cardboard (12) |
Brown Frame | Brown | Wood/Cardboard (12) |
Green Frame | Green | Wood/Cardboard (12) |
Red Frame | Red | Wood/Cardboard (12) |
Yellow Frame | Yellow | Wood/Cardboard (12) |
Blue Pillow | Blue | Soft/Fuzzy (10) |
Red Pillow | Red | Soft/Fuzzy (10) |
Satin Pillow | Blue | Soft/Fuzzy (10) |
Round Pillow | Red | Soft/Fuzzy (10) |
Tasselled Pillow | Red | Soft/Fuzzy (10) |
White Pillow | White | Soft/Fuzzy (10) |
Burlap Post | Brown | Wood/Cardboard (12) |
Wool Post | White | Soft/Fuzzy (10) |
Surprise | White | Wood/Cardboard (12) |
Surprise | White | Wood/Cardboard (12) |
DoubloonA | White | Metallic/Shiny (13) |
DoubloonB | White | Metallic/Shiny (13) |
DoubloonC | White | Metallic/Shiny (13) |
Green Shell | White | Sandy (15) |
Diamond | White | Metallic/Shiny (13) |
Purple Shell | White | Sandy (15) |
Red Shell | White | Sandy (15) |
White Shell | White | Sandy (15) |
Flea Bottle | Gray | Bad (17) |
Flea Bottle | White | Flea (26) |
Spray Bottle | Blue | Water (14) |
Spray Bottle | Blue | Water (14) |
Potion | Pink | Chemicals (23) |
Perfume | Pink | Chemicals (23) |
Driftwood | Brown | Wood/Cardboard (12) |
Stick | Brown | Wood/Cardboard (12) |
Exotic Seeds I | Brown | Plants (27) |
Exotic Seeds II | Brown | Plants (27) |
Carrot Seeds | Brown | Plants (27) |
Carnation Seeds | Brown | Plants (27) |
Daisy Seeds | Brown | Plants (27) |
Rose Seeds | Brown | Plants (27) |
Tulip Seeds | Brown | Plants (27) |
Violet Seeds | Brown | Plants (27) |
Exotic Seeds I | Green | Plants (27) |
Exotic Seeds II | Green | Plants (27) |
Carrot Seeds | Green | Plants (27) |
Carnation Seeds | Green | Plants (27) |
Daisy Seeds | Green | Plants (27) |
Rose Seeds | Green | Plants (27) |
Tulip Seeds | Green | Plants (27) |
Violet Seeds | Green | Plants (27) |
Beef Treat | Brown | Beef (1) |
Chicken Treat | Brown | Chicken (0) |
Cotton Candy | Pink | Sweet (5) |
Fish Treat | Yellow | Fish/Olives (2) |
Candy Hearts | Brown | Sweet (5) |
Healthy Treat | Brown | Healthy (28) |
Bone Treat | White | Beef (1) |
Olive Treat | Green | Fish/Olives (2) |
Popcorn Treat | White | Sweet (5) |
Beef Treat | Brown | Beef (1) |
Chicken Treat | Brown | Chicken (0) |
Cotton Candy | Pink | Sweet (5) |
Fish Treat | Yellow | Fish/Olives (2) |
Candy Hearts | White, Yellow, or Pink | Sweet (5) |
Healthy Treat | Brown | Chicken (0) |
Bone Treat | White | Beef (1) |
Olive Treat | Green | Fish/Olives (2) |
Popcorn Treat | White | Sweet (5) |
Surprise | Clear | Water (14) |
Green Disk | Green | Smooth (8) |
Yellow Disk | Yellow | Smooth (8) |
Boomerang | Red | Wood/Cardboard (12) |
Plane | Blue | Smooth (8) |
Tug Toy | Red | Balls/Squeaky (9) |
Watering Can | Gray | Metallic/Shiny (13) |
Catz Plush | Orange | Soft/Fuzzy (10) |
Dogz Plush | Brown | Soft/Fuzzy (10) |
Gold Hoop | Yellow | Smooth (8) |
Silver Hoop | Yellow | Smooth (8) |
Short Stool | Yellow | Wood/Cardboard (12) |
Tall Stool | Yellow | Wood/Cardboard (12) |
Ornament Box | Red, Green, or Gray | Smooth (8) |
Xmas Light Box | Red, Green, Yellow, or Blue | Smooth (8) |
Xmas Tree | Green | Wood/Cardboard (12) |
Coal Bag | Brown | Soft/Fuzzy (10) |
Coal Bag | Black | Garbage (24) |
Sled | Brown | Wood/Cardboard (12) |
Ornament Box | Blue | Wood/Cardboard (12) |
Xmas Light Box | Green | Wood/Cardboard (12) |
Snowballz | White | Water (14) |
Goldfish Bowl | Clear | |
Goldfish Bowl | Yellow | |
Fish Food | Green | |
Fossil | White | Sandy (15) |
Arrowhead | White | Sandy (15) |
Longhorn Skull | White | Sandy (15) |
Rattlesnake Tail | White | Sandy (15) |
Flea Circus | Yellow | Smooth (8) |
Blue Balloon | Blue | Smooth (8) |
Green Balloon | Green | Smooth (8) |
Red Balloon | Red | Smooth (8) |
Confetti Ball | Clear | Smooth (8) |
Circus Cannon | Black | Metallic/Shiny (13) |
Treasure Chest | Brown | Wood/Cardboard (12) |
Beetle | Black | |
Blue Butterfly | Black | |
Red Butterfly | Black | |
Mosquito | Black | |
Marble Vase | Gray | Metallic/Shiny (13) |
Brown Bottle | Brown | Garbage (24) |
Clear Bottle | Clear | Garbage (24) |
Green Bottle | Green | Garbage (24) |
Flute | Yellow | Metallic/Shiny (13) |
Blue Carpet | Blue | |
Green Carpet | Blue | |
Desert Tortoise | Brown | Wood/Cardboard (12) |
Medicine | ||
Parrot Plush | Blue | Soft/Fuzzy (10) |
Pirate Flag | Black | Wood/Cardboard (12) |
Tumbleweedz | Brown | Wood/Cardboard (12) |
Emerald | Green | Metallic/Shiny (13) |
Ruby | Red | Metallic/Shiny (13) |
Sapphire | Blue | Metallic/Shiny (13) |
Blue Feather | Blue | Soft/Fuzzy (10) |
Red Feather | Red | Soft/Fuzzy (10) |
Purple Feather | Black | Soft/Fuzzy (10) |
ScarabA | Yellow | Metallic/Shiny (13) |
ScarabB | Yellow | Metallic/Shiny (13) |
Snow Globe | White | Metallic/Shiny (13) |
Skateboard | Brown | Wood/Cardboard (12) |
Dogbed | Brown | Soft/Fuzzy (10) |
Vaccum | White | Sandy (15) |
Easter Basket | White | Smooth (8) |
Easter Egg | White | Smooth (8) |
Surprise | Blue | Smooth (8) |
Genie Lamp | Yellow | Metallic/Shiny (13) |
Snake Basket | Brown | Wood/Cardboard (12) |