I am programming a web based pokesav in PHP, and I would like to know how to calculate the checksum of 5th gen .PKM files. I am referring to the checksum that is located at hexadecimal offset 0x06 that is 2 bytes long. I have already attempted to use the 4th generation checksum calculation method, but it produces incorrect results. This is supposed to already be public knowledge, since there are already dozens of different programs that deal with 5th gen .PKM files. So, I would like to avoid re-researching something such as this. Thank you in advance for assistance with this matter.