I'm trying to create a QR code that encodes specific information for a system to print trading cards. The format I'm using is structured like this: LOT00:V000W0D1B0J0S000000. This code is supposed to communicate the LOT number (LOT00), Version (V000), card type (W0), card validity (D1), text line type (B0), card result (J0), and the text for the first line (S followed by the text). However, I'm having trouble with the setup when I try to add a second line with a different line type.
For instance, I thought this encoding would work: LOT00:V000W0D1B0J0S000000B1S111111. This should theoretically register the first line (S000000) with a line type of 0 (B0J0S000000) and the second line (S111111) as line type 1 (B1S111111). But instead, both lines are being assigned line type 1. It seems to be defaulting to the last line type specified.
Is there someone who can help figure out how to properly assign different line types to each line in the QR code? Just to clarify, these trading cards are similar to Pokémon types, where the line type would indicate attributes like an attack or support type.
3 Answers
Honestly, the QR code specs can be tricky, especially with custom data. I’d recommend checking if the format you’re using has specific rules about multiple line types. Keep us posted; I'm interested to see what solution you find!
It sounds like you're encoding text in a QR code, but the structure you're using might need a line terminator. You mention that the system doesn't separate the lines correctly, which suggests it might not recognize how to differentiate them. Maybe try adding a line terminator or rethinking where the elements like J0 should go in your string. Also, make sure your documentation has all the details on line breaking for your QR code setup!
I'm not a QR expert, but could it be an issue with how the properties are ordered? Sometimes those small adjustments can change how the system interprets the data. You may need to ensure that each line is clearly marked with its properties in your setup.
Thanks for the tip! Ordering can definitely be key here. I'll try rearranging the properties in my string to see if that fixes the type assignment issue.

That makes sense! I can see how not having a clear line terminator could cause confusion. It might help to explore whether you need to define a new start for each line type.