|
Post by Kalium on Jul 10, 2023 10:31:52 GMT -5
Well, I've combed all over and I can't find anything, but I'm sure this must be doable. How can I edit a breedfile (not a pet) to give it a set favourite flavour? I know it's going to involve a hex editor, I'm ok with that, just want to know how. All I can find is getting faves from pet files.
I've got an idea for a hex of a herbivorous species and would love to have them prefer the plant flavour to make them a little more realistic.
|
|
|
Post by Kalium on Jul 18, 2023 11:40:52 GMT -5
I may have figured it out! Or at least got a poodle to eat carrots:
It's a little hard to test because of the lack of tasty plant-flavour items in the game. I think the seeds are edible but she didn't show any interest in those even when her fullness was 0, instead going for the fish and bone treats I put out instead. But when I grew some carrots she happily ate those, even knocked them out of the carry case when she wasn't hungry. Anyway as far as I can tell from her .pet file she does have plants as her preferred flavour.
I worked from ButterflyChaser's post on how to change the default favourite colour for poodles, figuring the flavour byte must be close by. After a few crashes I think this is it:
Red is the colour byte from ButterflyChaser's post. Blue is what I believe to be the flavour. In an unmodded poodle this will be 00 for chicken, here I set it to 1B (hex 27) for plants.
I hope this is helpful if anyone else is looking to do the same.
|
|
|
Post by Kalium on Jul 19, 2023 14:27:23 GMT -5
Tested on gyiyg's growable clover (from here, thankyou for making this, it'll be perfect for grazing herbivores!) and she loved it, meanwhile she entirely snubbed chicken. I got her to eat a chicken treat only when there was nothing else out and she had her fullness on 0.
I don't know how much about flavour preferences is already known so apologies if this is common knowledge but here is what I have found so far:
- Universal preferences (i.e. all petz adopted from the file will have that preference) seem to be listed in the hex editor in the format 6A (flavour or colour value) 8 D. There's other stuff that sometimes matches but this seems to be the constant. I've found this to be true for the universal preferences for poodles, bulldogs, chihuahuas, alleys, B+W, oshies, persians and chinchies, so I feel reasonably confident saying if you see that format that's what it is and you can change it.
- ..mostly anyway. There's a sequence in the poodle file between the pink and chicken preferences with that format and a value of 1, and I have no idea what it refers to.
- I've found some of what might be optional flavour preferences in the format 6A (value) 8B, but I'm not so conclusive on that. I just noticed it looked similar.
- I've no idea what distinguishes colour and flavour preferences in the code, but I'm not sure any breed other than the poodle has a hardcoded favourite colour?
So it's mostly fuzzy stuff from me staring at hex editors for too long but should be enough to get some more customisation going.
|
|