Ok, I might be dumb but i cannot figure out how to map pokemon to their portraits. We know how to output the portraits, but all of the data in face_graphic.bin has around 10,000+ files of junk that just appear to be the same backgrounds (for the portraits) repeated over and over again, I was thinking if I could figure out how to get the portraits for X pokemon, then i could just output the non-junk files, but I can't find anything super obvious in any of the .bin files.
Someone posted what looks like what i'm wanting here: https://projectpokemon.org/forums/showthread.php?p=211133#post211133 , but i'm not sure what files were used to create the data in the pastebin