Hexing .pet files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Adding digits or subtracting digits...  You want a colour for a ball which has more
digits (such as colour number 145 instead of 4) or fewer digits (such as colour number
75 instead of 159)?  Okay, this is possible too:

This relates to eye colours, but the same principle applies to any number which needs
more or fewer digits: 

Adding digits to make a higher eye-colour number in a pet: 
----------------------------------------------------------- 

These are just examples, of course, your own pet's data will be different. And you will remember to
have a backup of the pet before you start, won't you?  

Wally's original eyes are number 5:  

00009328 3420 3020 3120 3220 3520 3020 310A 3234 4 0 1 2 5 0 1.24    
00009344 3420 3520 3020 3020 3820 3132 202D 3120 4 5 0 0 8 12 -1    
00009360 2D31 0A32 3434 2035 2030 2030 2038 2031 -1.244 5 0 0 8 1    
00009376 3220 2D31 202D 310A 3935 2032 3434 2030 2 -1 -1.95 244 0   

I want them to be 65.  

So I add a 6 in front of each eye's outline colour 5:  

00009328 3420 3020 3120 3220 3520 3020 310A 3234 4 0 1 2 5 0 1.24    
00009344 3420 3635 2030 2030 2038 2031 3220 2D31 4 65 0 0 8 12 -1    
00009360 202D 310A 3234 3420 3635 2030 2030 2038 -1.244 65 0 0 8    
00009376 2031 3220 2D31 202D 310A 3935 2032 3434 12 -1 -1.95 244    

Now, down in Paint Ballz this particular pet happens to have a couple of numbers 6 that I
can remove from the end of long numbers:  

00010192 3120 3631 200A 3331 2036 3220 0A5B 5061 1 61 .31 62 .[Pa    
00010208 696E 7420 4261 6C6C 7A5D 0A31 3620 3530 int Ballz].16 50    
00010224 2030 2030 2E39 3537 3832 3620 302E 3238 0 0.957826 0.28    
00010240 3733 3438 2037 3520 2D31 2030 202D 3120 7348 75 -1 0 -1    
00010256 2D31 202D 3120 310A 3137 2035 3020 3020 -1 -1 1.17 50 0    
00010272 302E 3935 3738 3236 2030 2E32 3837 3334 0.957826 0.28734    

So I just remove a 6 from 0.957826 and another from the next 0.957826: 

00010192 3120 3631 200A 3331 2036 3220 0A5B 5061 1 61 .31 62 .[Pa    
00010208 696E 7420 4261 6C6C 7A5D 0A31 3620 3530 int Ballz].16 50    
00010224 2030 2030 2E39 3537 3832 2030 2E32 3837 0 0.95782 0.287    
00010240 3334 3820 3735 202D 3120 3020 2D31 202D 348 75 -1 0 -1 -    
00010256 3120 2D31 2031 0A31 3720 3530 2030 2030 1 -1 1.17 50 0 0    
00010272 2E39 3537 3832 2030 2E32 3837 3334 3820 .95782 0.287348    

And eureka, Wally has brown eyes instead of purple. 

That was particularly easy because Wally had a pair of numbers 6 that could be removed
from the Paint Ballz, but you just need to remove any number from the tail-end of a long Paint
Ball number and then adjust the sizes of other parts of the long numbers so as to make the
checksum the same. 

Removing digits to make a lower eye-colour number 
------------------------------------------------ 

Witchy's original eyes are number 187:  

00012960 3020 3820 3020 360A 3335 2032 3434 2030 0 8 0 6.35 244 0    
00012976 2032 2030 2038 2030 2035 0A32 3434 2031 2 0 8 0 5.244 1    
00012992 3837 2030 2030 2033 2039 202D 3120 2D31 87 0 0 3 9 -1 -1    
00013008 0A32 3434 2031 3837 2030 2030 2033 2039 .244 187 0 0 3 9    
00013024 202D 3120 2D31 0A33 3520 2D31 2030 2030 -1 -1.35 -1 0 0    

I want them to be number 2. The first stage was to remove the 1 from each iris outline:  

00012976 2032 2030 2038 2030 2035 0A32 3434 2038 2 0 8 0 5.244 8    
00012992 3720 3020 3020 3320 3920 2D31 202D 310A 7 0 0 3 9 -1 -1.    
00013008 3234 3420 3837 2030 2030 2033 2039 202D 244 87 0 0 3 9 -    
00013024 3120 2D31 0A33 3520 2D31 2030 2030 202D 1 -1.35 -1 0 0 -    

Then scrolling down to paint ballz, where Witchy had this:  

00013840 200A 3331 2036 3220 0A5B 5061 696E 7420 .31 62 .[Paint    
00013856 4261 6C6C 7A5D 0A31 2037 3520 2D30 2E36 Ballz].1 75 -0.6    
00013872 3736 3731 3620 302E 3239 3030 3231 2030 76716 0.290021 0    
00013888 2E36 3736 3731 3620 3335 202D 3120 3220 .676716 35 -1 2    

I changed it so that two of those numbers have an extra 1 on the end (hex 31):  

00013840 200A 3331 2036 3220 0A5B 5061 696E 7420 .31 62 .[Paint    
00013856 4261 6C6C 7A5D 0A31 2037 3520 2D30 2E36 Ballz].1 75 -0.6    
00013872 3736 3731 3631 2030 2E32 3930 3032 3131 767161 0.2900211    
00013888 2030 2E36 3736 3731 3620 3335 202D 3120 0.676716 35 -1    

Right, now I want to remove the 8 from 87 on each iris outline:  

00012976 2032 2030 2038 2030 2035 0A32 3434 2037 2 0 8 0 5.244 7    
00012992 2030 2030 2033 2039 202D 3120 2D31 0A32 0 0 3 9 -1 -1.2    
00013008 3434 2037 2030 2030 2033 2039 202D 3120 44 7 0 0 3 9 -1    

and I want to change the 7 (hex 37) to a 2 (hex 32):  

00012976 2032 2030 2038 2030 2035 0A32 3434 2032 2 0 8 0 5.244 2    
00012992 2030 2030 2033 2039 202D 3120 2D31 0A32 0 0 3 9 -1 -1.2    
00013008 3434 2032 2030 2030 2033 2039 202D 3120 44 2 0 0 3 9 -1    

And finally I make up for the two removed numbers 8 and for the reduction
of 7 to 2 in Paint Ballz, where I add an 8 two two of the long numbers and then
I change two numbers 1 to 6. Where the Paint ballz section did look like this:  

00013840 3631 200A 3331 2036 3220 0A5B 5061 696E 61 .31 62 .[Pain    
00013856 7420 4261 6C6C 7A5D 0A31 2037 3520 2D30 t Ballz].1 75 -0    
00013872 2E36 3736 3731 3620 302E 3239 3030 3231 .676716 0.290021    
00013888 2030 2E36 3736 3731 3620 3335 202D 3120 0.676716 35 -1    
00013904 3220 2D31 2037 2030 2030 0A33 2034 3520 2 -1 7 0 0.3 45    
00013920 3020 2D30 2E36 2030 2E38 2031 3520 2D31 0 -0.6 0.8 15 -1    
00013936 2033 202D 3120 3520 3020 300A 3132 2036 3 -1 5 0 0.12 6    
00013952 3520 302E 3637 3637 3136 2030 2E36 3736 5 0.676716 0.676    
00013968 3731 3620 302E 3239 3030 3231 2031 3520 716 0.290021 15    

I now have this:  

00013840 3331 2036 3220 0A5B 5061 696E 7420 4261 31 62 .[Paint Ba    
00013856 6C6C 7A5D 0A31 2037 3520 2D30 2E36 3736 llz].1 75 -0.676    
00013872 3731 3631 2030 2E32 3930 3032 3131 2030 7161 0.2900211 0    
00013888 2E36 3736 3736 3638 2033 3520 2D31 2032 .6767668 35 -1 2    
00013904 202D 3120 3720 3020 300A 3320 3435 2030 -1 7 0 0.3 45 0    
00013920 202D 302E 3620 302E 3820 3135 202D 3120 -0.6 0.8 15 -1    
00013936 3320 2D31 2035 2030 2030 0A31 3220 3635 3 -1 5 0 0.12 65    
00013952 2030 2E36 3736 3736 3638 2030 2E36 3736 0.6767668 0.676    
00013968 3731 3620 302E 3239 3030 3231 2031 3520 716 0.290021 15    

I check that the checksum and size of file are the same, and eureka! A pet with green eyes instead of red. 
 
 

Enjoy!
Carolyn Horn