TTGAMES.BMS hash prime not the correct value

Doubts, help and support about QuickBMS and other game research tools
pinpointcoder
Posts: 1
Joined: Wed Oct 12, 2022 6:08 am

TTGAMES.BMS hash prime not the correct value

Post by pinpointcoder »

This is more of a question than a problem, as I'm writing my own Python script to extract, and dreaming one day to repack, the TT games .DAT files.

However, I was looking at the code and it seems that, while it works perfectly, the CRC_FNV_PRIME is the wrong value. According to http://www.isthe.com/chongo/tech/comp/fnv/, the value is 16777619, but the hex value 0x199933 is 1677619.

I'm sure this has been addressed and/or answered, but I couldn't find anywhere it was. It's a very interesting piece of the puzzle.