Difference between revisions of "Piñata Vision barcode/Card type example"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(Add notes on possible card type bits for obfuscation set F)
m (Categorize)
 
Line 337: Line 337:
 
</pre>
 
</pre>
 
|}
 
|}
 +
 +
[[Category:Pinata Vision barcode]]

Latest revision as of 08:42, 5 February 2011

Visual comparison

To find the card type bits, one approach might be to compare a particular set of cards, by type, and see which bits differ between the different card types.

For example, for the E...0 obfuscation, if you visually glance at the bytes, you can notice similarities between the same card types:

E........B.....0 Vision_Single_Blackariants
E........B.....0 Vision_Single_GoodVariants
E........7.....0 Vision_Single_Learn/Perform Trick
E........E.....0 Vision_Single_Placetag
E........A.....0 Vision_Single_SparseCallback
E........8.....0 Vision_Single_View_Appear_Cutscene
E........0.....0 Vision_Single_View_Mate_Cutscene
E........E.....0 Vision_Single_ViewTaginJournal

So, that byte in the middle that's the same for each type of card, but differs between different types, is probably part of the card type field.

There might be another bit or two, and a script would spot the similarities that aren't as obvious at first glance.

Bit comparison

Obfuscation sets 6 and F contain the most number of different card types, so either is a good place to start for specifically identifying the card type bits.

Obfuscation set F

Set F's bits 56, 58, 60, and 61 differ between different types but not among the same types. Bit 46 also differs between different types, but also differs among Good types and among Black types.

Type Bits 61 60 58 56 Bit 46 Bit 28 Bit 25 Other bits
Appear 0011 1 0 1 Bit 6 = 1
Mate 0011 1 0 1 Bit 6 = 0
Black 1010 0 or 1 0 or 1 0 or 1
Good 1010 0 or 1 0 or 1 0 or 1
Weather 1011 0 0 1
UnlockArt 1100 0 0 1
Journal 1100 1 0 1
PlaceTag 1101 1 0 or 1 0
Learn Primary 1101 0 0 1 Bit 30 = 0
Learn Secondary 1101 0 0 0 Bit 30 = 0
Perform Primary 1101 0 1 1 Bit 30 = 0
Perform Secondary 1101 0 0 1 Bit 30 = 1
TimeWarp 1101 0 1 1 Bits 4, 8, 9, 10, 11, 38, 39, 40, 44, 48 differ between TimeWarp and Learn/Perform