Skip to content

Instantly share code, notes, and snippets.

@dogtopus
Created January 5, 2024 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogtopus/d1f8177dc9db27a41c403cce78b7760b to your computer and use it in GitHub Desktop.
Save dogtopus/d1f8177dc9db27a41c403cce78b7760b to your computer and use it in GitHub Desktop.
Random notes about M&D cards and their format

M&D Card System (梦龙刷卡机) Notes

Barcode format legend

Format:
0: Thin bar
1: Thick bar
A: Short form of prologue sequence (see each format for the exact pattern)
Z: Short form of epilogue sequence (see each format for the exact pattern)
N: ID number
P: Parity bit (calculated from ID number)

Parameters:
0: Thin bar (exact dimension represented as (black, white))
1: Thick bar (exact dimension represented as (black, white))
A: Prologue sequence
Z: Epilogue sequence

l: length of the entire barcode (including white paddings)
w: width of barcode
p: left padding length

Roco Kingdom Badge

Barcode format

Parameters: 1 = (1.4mm, 0.6mm), 0 = (0.6mm, 1.4mm), A = '1', Z = '00'

Format: ANNNNNNNNNPZ

ID number ranges

001-300: Mons
301-360: Items (single use)
361-372: Random mons of a specific rarity (single use)
373-511: Unused (scan them will trigger an error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment