Okay, I verified it's a CRC issue. I figured out how to find the palette in ANY PNG file (always preceded by the same code, it seems). And I found the palette's CRC. But I have no fucking clue how to translate it. So fuck it, I'm only sharing my GIF code from now on.