Difference between revisions of "Piñata Vision barcode/Accessory bits"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(Sample of cards with accessories)
(Accessory flag and accessory data identified. Accessory items are 8 bits, but are not normalized PlaceTag IDs.)
Line 1: Line 1:
== Accessory data ==
+
[[Accessories]] can be found in the 1900-2000s range of the [[Piñata_Vision_barcode/ID_table|ID table]].  There appear to be less than 256 accessories in-game, and the [[Piñata_Vision_barcode/Encoded_data#Accessory|accessory data]] does in fact code the accessory items as 8-bit values.
[[Accessories]] can be found in the 1900-2000s range of the [[Piñata_Vision_barcode/ID_table|ID table]].  There appear to be less than 256 accessories in-game, so it's possible that information about what accessories a pinata is wearing is encoded as normalized 8-bit values within the [[Piñata Vision barcode]]. I.e., an accessory value of 22 added to an accessory base offset (e.g. 1905) could indicate that the scanned pinata will be wearing caterpillars (1927).  On the other hand, there may be no correlation between the PlaceTag IDs and the encoded accessory item values.
+
 
 +
There does not appear to be a relationship between the 8-bit accessory item value and that accessory's PlaceTag ID.
  
 
Another detail that apparently is encoded is the accessory color.  Various cards have scanned with green, orange, and white disco wigs.  It's uncertain if the color details are separate from the accessory value, or if there are different accessory values for different colors.
 
Another detail that apparently is encoded is the accessory color.  Various cards have scanned with green, orange, and white disco wigs.  It's uncertain if the color details are separate from the accessory value, or if there are different accessory values for different colors.
  
It's also uncertain if there's a cap to the number of accessories a pinata can wear -- 1 for each of the 10 accessory slots? (E.g., head, eyes, ...) -- or the number of accessories that can be encoded on a card.  The most seen so far on a (3-row) player-created card is 6 accessories.
+
The size of the accessory count field (3 bits) caps the number of encoded accessories to 7, although the most number of accessories seen encoded on a card so far has been 6.
 
 
=== Options for possible storage representations ===
 
 
 
Since no bits have been identified yet, it's uncertain how the data is encoded, or whether the accessory fields are optional, variable length, or fixed.
 
  
==== Accessory flag bit? ====
+
=== Accessory flag ===
  
Perhaps a (PlaceTag-specific) accessory flag bit indicates the optional presence of accessory data further within the data.  The accessory data may be preceeded by an accessory count, indicating a variable number of (8-bit?) accessory values follow:
+
An [[Piñata_Vision_barcode/Encoded_data#Accessory_flag|accessory flag]] indicates the optional presence of accessory data further within the data.  The accessory data starts off with an accessory count, indicating a variable number of 8-bit accessory item values follow:
 
{| border="1" class="pii_species_variants"
 
{| border="1" class="pii_species_variants"
 
|-
 
|-
!Accessory flag!!...!!Count!!Value 1!!Value 2!!...
+
!Accessory flag!!...!!Count!!Item 1!!Item 2!!...
 
|-
 
|-
 
|1||...||2||76||123||...
 
|1||...||2||76||123||...
 
|}
 
|}
  
==== Accessory count as flag? ====
+
==== Location of accessory flag ====
 +
 
 +
All of the Vision_Single Blackariant, GoodVariant, and PlaceTag cards have the accessory flag at offset 29.  The Banjo-Kazooie theme cards also appear to have their accessory flag at the same offset.
  
Possibly the accessory count value serves as an indication of whether (optional) accessory data exists.  I.e., accessory count of 0 indicates no accessory data is encoded on the card.
+
=== Accessory data ===
  
== Location of accessory bits ==
+
The optional [[Piñata_Vision_barcode/Encoded_data#Accessory|accessory data]] is variable length, starting off with an accessory count, followed by that number of 8-bit accessory item values.
  
After decoding use costs for [[Piñata_Vision_barcode/Obfuscation_set|obfuscation set]]s [[Piñata_Vision_barcode/Obfuscation_set/0|0]] and [[Piñata_Vision_barcode/Obfuscation_set/A|A]], it was observed that use costs weren't being read correctly for cards that also had accessories.  This makes it likely that the accessory data starts in row 1 (and the obfuscation of the use cost is apparently affected by non-zero accessory bits).
+
==== Location of accessory data ====
  
Identifying the accessory bits will help to understand where and how accessory data is encoded on the cardTo start, we can try searching for bits that match the count, or that may match values encoded for accessory 1.
+
The accessory data appears to somewhat closely follow the accessory flag, although it's not certain if the relative offset is fixed at 7 bitsThe optional accessory data does offset further trailing data, such as the name flag, and use cost.
  
== Decoding accessory count bits ==
+
==== Decoding accessory data ====
  
 
PlaceTag cards do appear to have an accessory count field in row 1.  This field appears to exist even if the item placed isn't a species.  (That's reasonable, since there appears to be a single format for PlaceTag cards, independent of what type of item is on the card.  I.e., we can turn a PlaceTag_Home card into a species just by changing the ID.)
 
PlaceTag cards do appear to have an accessory count field in row 1.  This field appears to exist even if the item placed isn't a species.  (That's reasonable, since there appears to be a single format for PlaceTag cards, independent of what type of item is on the card.  I.e., we can turn a PlaceTag_Home card into a species just by changing the ID.)
  
Further steps involve downloading additional (accessoried) cards from VivaPinata.com, both to test against (to verify that the reader accessory count decoding is accurate), and to use in the search for accessory item bits.
+
:''An easy way to spot accessoried pinatas at VivaPinata.com is to check how many barcode rows are on the card.  A player-created card with 3 rows definitely has 5 or more accessories.  A player-created non-wildcard non-variant card with 2 rows definitely has accessories.  (A normal pinata without accessories has a 1 row barcode.)''
  
:''An easy way to spot accessoried pinatas at VivaPinata.com is to check how many barcode rows are on the card.  A player-created card with 3 rows definitely has 5 or more accessories. A player-created non-wildcard non-variant card with 2 rows definitely has accessories(A normal pinata without accessories has a 1 row barcode.)''
+
{| class="collapsible collapsed"
 +
!Various accessory item values from known accessoried obfuscation set 0 cards
 +
|-
 +
|
 +
<pre>
 +
EaglairVariant1    00011000                    24        Yee-Haw Spurs
 +
MoojooRussia        01000110                    70 Squazzil Hat
 +
Twingersnap0D00FC0E1 00100111 01011000            39 88 Tussle Tricorn, Blackeye Patch
 +
ParryboPeru        01010011 01110000            83 112 Bling Earrings, Bling Nose-Ring
 +
MacaraccoonWildcard1 01100000 10000111            96 135 Von Ghoul Helmet, Non-Resident Scarf
 +
BunnycombPV        00111001 01000001 00101111  57  65  47 Beaded Wig, Big Jolly Lips, Butcha's
 +
DoenutPV            10100111 01010111 01111011  167  87 123 Tail Bow, Eighties Watch, Edo Wig
 +
SweetlePV          00101101 01010010 10010101  45  82 149 Clockwork Key, Halloween Bolts, Sweaty Wrist Band
 +
 
 +
VulchurroUSA        01011011 01111010            91 122 Cook Hat, Reading Glasses
 +
VulchurroVariant3  01111010 01011011          122  91 Reading Glasses, Cook Hat
 +
 
 +
3F5A88CD1408B374C1EA 00110001 01010000 01100111  49  80 103 Conga's Top Hat, Toff Monocle, Secret Agent Bowtie
 +
PengumC13B26F2140937 01010000 00110001 01100111  80  49 103 Conga's Top Hat, Secret Agent Bowtie, Toff Monocle
 +
</pre>
 +
|-
 +
|Notice how the two Vulchurros and the two Pengums are wearing the same accessories (although purchased in a different order, as shown by the item data, and the pinata's in-game Journal accessory details.
 +
|}
  
 
{| class="collapsible collapsed"
 
{| class="collapsible collapsed"

Revision as of 11:29, 2 March 2011

Accessories can be found in the 1900-2000s range of the ID table. There appear to be less than 256 accessories in-game, and the accessory data does in fact code the accessory items as 8-bit values.

There does not appear to be a relationship between the 8-bit accessory item value and that accessory's PlaceTag ID.

Another detail that apparently is encoded is the accessory color. Various cards have scanned with green, orange, and white disco wigs. It's uncertain if the color details are separate from the accessory value, or if there are different accessory values for different colors.

The size of the accessory count field (3 bits) caps the number of encoded accessories to 7, although the most number of accessories seen encoded on a card so far has been 6.

Accessory flag

An accessory flag indicates the optional presence of accessory data further within the data. The accessory data starts off with an accessory count, indicating a variable number of 8-bit accessory item values follow:

Accessory flag ... Count Item 1 Item 2 ...
1 ... 2 76 123 ...

Location of accessory flag

All of the Vision_Single Blackariant, GoodVariant, and PlaceTag cards have the accessory flag at offset 29. The Banjo-Kazooie theme cards also appear to have their accessory flag at the same offset.

Accessory data

The optional accessory data is variable length, starting off with an accessory count, followed by that number of 8-bit accessory item values.

Location of accessory data

The accessory data appears to somewhat closely follow the accessory flag, although it's not certain if the relative offset is fixed at 7 bits. The optional accessory data does offset further trailing data, such as the name flag, and use cost.

Decoding accessory data

PlaceTag cards do appear to have an accessory count field in row 1. This field appears to exist even if the item placed isn't a species. (That's reasonable, since there appears to be a single format for PlaceTag cards, independent of what type of item is on the card. I.e., we can turn a PlaceTag_Home card into a species just by changing the ID.)

An easy way to spot accessoried pinatas at VivaPinata.com is to check how many barcode rows are on the card. A player-created card with 3 rows definitely has 5 or more accessories. A player-created non-wildcard non-variant card with 2 rows definitely has accessories. (A normal pinata without accessories has a 1 row barcode.)

Sample of cards with accessories

This is an incomplete list of cards where scanned pinatas are wearing accessories. Most of the cards are official versions released by Rare before the launch of Trouble in Paradise. (Recognized by a SpeciesPV name, and a picture of 3 accessories on the front of the card.) A few of the cards are date-locked, while the remaining cards are player-created from VivaPinata.com.

In addition to having accessories, pinatas may be variants and/or wildcards, or even have pinata names (Rare-only) encoded in the data.

The order of the accessories must exactly match the Journal accessories list, seen when viewing the scanned pinata's information. (Likewise, the variant numbering is from the Journal, not the wiki.)

The more accurate data we can collect for cards from the same obfuscation set, the more likely we can decode the underlying accessory data, and start to read accessory details from future/other cards.

Card name Accessory count Accessory 1 Accessory 2 Accessory 3 Accessory 4 Accessory 5
3F5A88CD1408B374C1EA.jpg
Use cost: ?
3 Conga's Top Hat Toff Monocle Secret Agent Bowtie
B23F27AE1408B344E767.jpg
Use cost: 9500
WC trait: ?
5 Halo of Hardness Disco Shades Lucky Earrings Sheriff's Badge Ballet Shoes
Banjo-Banjo_Kazooie-PV.jpg
Use cost: 0
Name: Banjo
GoodVariant: ? (brown)
2 Shark Tooth Necklace Breegull Carrier
BunnycombPV.jpg
Use cost: 0
Name: Aaron
3 Beaded Wig Big Jolly Lips Butcha's
DoenutPV.jpg
Use cost: 0
Name: Louie
3 Tail Bow Eighties Watch Edo Wig
Eaglair-TiP-Variant1-PV.jpg
Use cost: 5800
Variant: ? (yellow)
1 Yee-Haw Spurs
Easter-04.12.2009-PV.jpg
Use cost: 0
Name: Eggmond
GoodVariant: 4 (peach)
WC trait: ? (6-ears)
1 Bonnet
Jinjo-Banjo_Kazooie-PV.jpg
Use cost: 0
Name: Jinjo
GoodVariant: ? (sick green)
0
Macaraccoon-TroubleInParadise-Wildcard1-PV.jpg
Use cost: 24000
WC trait: ? (large lumps on face)
2 Von Ghoul Helmet Non-Resident Scarf
Moojoo-TroubleInParadise-Russia-PV.jpg
Use cost: 3200
Variant: ? (yellow)
1 Squazzil Hat
Parrybo-TroubleInParadise-Peru-PV.jpg
Use cost: 5600
2 Bling Earrings Bling Nose-Ring
SweetlePV.jpg
Use cost: 0
Name: Brandon
3 Clockwork Key Halloween Bolts Sweaty Wrist Band
Vulchurro-TroubleInParadise-USA-PV.jpg
Use cost: 2800
Variant: ? (blue/purple/pink)
2 Cook Hat Reading Glasses
Vulchurro-TroubleInParadise-Variant3-PV.jpg
Use cost: 5300
Variant: ? (blue/purple/pink)
2 Reading Glasses Cook Hat
10-CrowlaPV.jpg
Use cost: 0
Name: Dark Heart
2 Non-Resident Scarf Gold Medal
BuzzengePV.jpg
Use cost: 0
Name: Henry
3 Fair Dinkum Hat Breegull Waders Breegull Carrier
ClucklesPV.jpg
Use cost: 0
Name: Faith
3 Nurse's Hat Stethoscope Breegull Carrier
DG-asian-YanSuey.jpg
Use cost: 17000
WC trait: ? (large tail fin)
3 Handlebar Mustache Crystal Broach Cook Hat
FF2F6CB11408B42D2B34.jpg ?
Lemmoning-TroubleInParadise-Russia-PV.jpg ?
Quackberry-TroubleInParadise-India-PV.jpg ?
RaisantPV.jpg
Use cost: 0
Name: Lexie
3 Safety Helmet Bling Nose-Ring Combat Boots
Robean-TroubleInParadise-Winter-DG-PV.jpg
Use cost: 10,000
Variant: blueish green
WC trait: feather whiskers
2 Santa Hat Pendant Earrings
BadgesiclePV.jpg
Use cost: 0
Name: Andrew
3 Doenut Stalker Toff Monocle Caterpillars
Bispotti-TroubleInParadise-Easter-DG-PV.jpg
Use cost: 7200
WC trait: ? (curled feelers)
Variant: 3 (pink)
3 Pendant Necklace Safari Hat Lucky Earrings
DG-asian-HaikuLing.jpg
Use cost: 2900
2 Pointed Hat Breegull Carrier
DG-asian-JadeGalasusu.jpg
Use cost: 7600
Variant: ? (green)
3 Edo Wig Pendant Necklace Bottles' Glasses
GoobaaPV.jpg
Use cost: 0
Name: Abigail
3 Furry Earmuffs Fur Boots Non-Resident Scarf
Hootyfruity-TroubleInParadise-Korea-PV.jpg ?
MousemallowPV.jpg
Use cost: 0
Name: Rose
3 Funky Tie Srudent's Hat Geek Glasses
Parrybo-TroubleInParadise-Congo-PV.jpg ?
Parrybo-TroubleInParadise-PV.jpg ?
Pengum-TroubleInParadise-TeamMember-14-PV.jpg
Use cost: 0
Name: Fiddy Pence
3 Headphones Strong 'n Mach (necklace) Breegull Turbo Trainers
Profitamole-TroubleInParadise-Canada-PV.jpg ?
Sarsgorilla-TroubleInParadise-Wildcard3-DG.jpg ?
Sgt._Johnson-Halo-PV.jpg ?
Sweetle-TroubleInParadise-Egypt-PV.jpg
Use cost: 0
Variant: orange
1 School Cap
Tusk-Killer_Instinct-PV.jpg ?
PonockyPV.jpg
Use cost: 0
Name: Gabriel
3 Romance Earrings Sweaty Head Band Soccer Boots
JuicygoosePV.jpg
Use cost: 0
Name: Abigail
3 Mermaid Necklace Bonnet Pearly Bracelet
PengumPV.jpg
Use cost: 0
Name: Garnet
0
TartridgePV.jpg ?
PudgeonPV.jpg
Use cost: 0
Name: Harry
3 Strong 'n Macho (necklace) Football Helmet Sweaty Wrist Band
CherrapinPV.jpg
Use cost: 0
Name: Nuno
0
WhirlmPV.jpg ?
VulchurroPV.jpg
Use cost: 0
Name: Holly
3 Fake Winner's Rosette Soupswill Cook Hat Bushy Moustache
NewtgatPV.jpg
Use cost: 0
Name: Liam
3 Princess Hat Pendant Earrings Turkish Slippers
LackatoadPV.jpg
Use cost: 0
Name: George
3 Bunnycomb Ears Pendant Necklace Ballet Shoes
MacaracoonPV.jpg
Use cost: 0
Name: Oliver
3 Baseball Cap Robber's Mask Prisoner Bracelet
ParmadilloPV.jpg
Use cost: 0
Name: Max
3 Combat Boots Safety Helmet Bushy Moustache
CustaceanPV.jpg
Use cost: 0
Name: Ben
0
BarkbarkPV.jpg
Use cost: 0
Name: Max
3 Sailor Hat Fake Fin Shark Tooth Necklace
FlapyakPV.jpg
Use cost: 0
Name: Faith
3 Tap Shoes Secret Agent Bowtie Eighties Watch
ReddhottPV.jpg
Use cost: 0
Name: Dylan
3 Big Jolly Lips Star Earrings Disco Shades
ShellybeanPV.jpg
Use cost: 0
Name: Joel
3 La Parisienne (hat) Caterpillars Romance Earrings
FudgehogPV.jpg
Use cost: 0
Name: Jay
3 Ballet Shoes Romantic Flower Harlequin Mask
CamelloPV.jpg
Use cost: 0
Name: Alain
0
MothdropPV.jpg ?
CocoadilePV.jpg
Use cost: 0
Name: Isobel
3 Flamenco Shoes Beaded Wig Disco Shades
SweetoothPV.jpg
Use cost: 0
Name: Kieran
3 Yee-haw Spurs Knight Helmet Rashberry Badge
SparrowmintPV.jpg
Use cost: 0
Name: David
3 Tussle Tricorn Blackeye Patch Battletoad Bracelets
ChewnicornPV.jpg
Use cost: 0
Name: Yulia
0
MoojooPV.jpg
Use cost: 0
Name: Michel
0
SyrupentPV.jpg ?
SherbatPV.jpg
Use cost: 0
Name: Lilly
3 Super Hero Belt Super Hero Mask Breegull Waders
PieenaPV.jpg
Use cost: 0
Name: Johnny
Varian: pink
0
PeckanmixPV.jpg
Use cost: 0
Name: Jnin
3 Yeoman's Helm Ballet Shoes Romantic Flower
CrowlaPV.jpg
Use cost: 0
Name: Lily
3 Baby's Bib Snow Shoes Squazzil Hat
RobeanPV.jpg ?
LickatoadPV.jpg
Use cost: 0
Name: Rudy
3 Bling Bangle Weather-Girl Wig Buck Teeth
KittyflossPV.jpg
Use cost: 0
Name: Alberto
0
SarsgorillaPV.jpg
Use cost: 0
Name: Filipo
0
CinnamonkeyPV.jpg
Use cost: 0
Name: Jan
0
FlutterscotchPV.jpg
Use cost: 0
Name: Keira
3 Soccer Boots Clockwork Key School Cap
TwingersnapPV.jpg
Use cost: 0
Name: Noah
3 Football Helmet Bling Nose-Ring Buck Teeth
LemmoningPV.jpg
Use cost: 0
Name: Alisha
3 Belly-SplashSpecials Dentures of the Night Fake Fin
BispottiPV.jpg
Use cost: 0
Name: Amelia
3 Ash Slippers Hula Necklace Lupus Ears
GeckiePV.jpg ?
RashberryPV.jpg
Use cost: 0
Name: Kieran
3 Leafos Medalion Caesar's Hat Battletoad Bracelets
SmelbaPV.jpg ?
SquazzilPV.jpg
Use cost: 0
Name: Toby
3 Combat Boots Conkerific Helmet Barkbark Tags
ArocknidPV.jpg
Use cost: 0
Name: Lucas
3 Tail Bow Bonnet Flamenco Shoes
BuzzlegumPV.jpg
Use cost: 0
Name: Charles
3 Juno Helmet Astro-Walkers Rashberry Badge
CandaryPV.jpg
Use cost: 0
Name: Sienna
3 Disco Shades Leafos Medalion Yee-haw Boots
JameleonPV.jpg
Use cost: 0
Name: Louie
3 Sweaty Head Band Sweaty Wrist Band Breegull Turbo Trainers
HoghurtPV.jpg
Use cost: 0
Name: Gavin
0
SmorepionPV.jpg ?
QuackberryPV.jpg
Use cost: 0
Name: Oliver
3 Vela Wig Pendant Necklace Astro-Walkers
JeliPV.jpg
Use cost: 0
Name: Manfred
0