Page 1 of 1
PCG Checksum Formula anyone?
Posted: Wed May 15, 2013 6:10 pm
by uhura
I'm doing some updates on my Setlist Editor
ONKSOR and wanna use the opportunity to correct the checksum. At the moment you can only reload single setlists into Kronos, not the whole file, because i don't know the formula to calculate a new checksum. Perhaps Michel can help me (if it's not a secret).
Thanks
Re: PCG Checksum Formula anyone?
Posted: Wed May 15, 2013 6:46 pm
by cynkh
The checksum for PCG is calculated by simply adding the contents of a chunk modulo 256. Just initialize a variable to 0 and keep adding each byte in the chunk to it with a %256, Mod 256 or whichever programming/scripting language you're using (e.g.: a += chunk
% 256;).
Hope this helps. Cheers!
uhura wrote:I'm doing some updates on my Setlist Editor ONKSOR and wanna use the opportunity to correct the checksum. At the moment you can only reload single setlists into Kronos, not the whole file, because i don't know the formula to calculate a new checksum. Perhaps Michel can help me (if it's not a secret).
Thanks