WoW:TradeSkillLink: Difference between revisions

Fixed base Base64 example and description, it's a standard Base64 charset, not 60+ linear
(Add bitmap examples.)
(Fixed base Base64 example and description, it's a standard Base64 charset, not 60+ linear)
Line 34: Line 34:


If the recipe list portion of a tradeSkillLink is:
If the recipe list portion of a tradeSkillLink is:
  U<<<<<<<\<<<<<<<\<<<<<
  ZAAAAAAAgAAAAAAAgAAAAA


Then the recipe list bitset is:
Then the recipe list bitset is:
Line 41: Line 41:
This set indicates that four (4) specific recipes are available (note that there are 5 bits; there is no information on why there is an extra bit at this time). Also note that the bitset is unique for each tradeskill; a recipe denoted by bit N in one tradeskill is not the same as a recipe denoted by bit N in another tradeskill.
This set indicates that four (4) specific recipes are available (note that there are 5 bits; there is no information on why there is an extra bit at this time). Also note that the bitset is unique for each tradeskill; a recipe denoted by bit N in one tradeskill is not the same as a recipe denoted by bit N in another tradeskill.


The bitset is encoded into a type of Base64 on a range from character '<' (ASCII 60 or 0x3C) to '{' (ASCII 123 or 0x7B) inclusive. Being Base64, there are 6 bits per digit (similar to how hexadecimal has 4 bits per digit); this allows one to easily determine if a specific bit is set by looking only at a single digit in the string.
The bitset is encoded into standard Base64, using the characters A-Z, a-z, 0-9, +, and /. Being Base64, there are 6 bits per digit (similar to how hexadecimal has 4 bits per digit); this allows one to easily determine if a specific bit is set by looking only at a single digit in the string.


TODO: Document bitfield ordering, perhaps by looking at [http://www.wowinterface.com/downloads/info10316-TradeLinks.html Maldivia's TradeLinks addon]
TODO: Document bitfield ordering, perhaps by looking at [http://www.wowinterface.com/downloads/info10316-TradeLinks.html Maldivia's TradeLinks addon]


== Bit Maps ==
== Bit Maps ==
These provide bitmaps for 3.1 with all the in-game professions.
These provide bitmaps for 3.1 with all the in-game professions. (please verify these are based on standard Base64)


*Cooking
*Cooking
Anonymous user