Hello hlcoders, I'm trying to extract scenes.image from a mod, and I have a problem.

The scene file names are stored as CRC hashes in the file. Because hash is one-direction thing, I have to parse scene names from maps' entity lumps and hash them.

But I have a problem. In scenes.image, the hashes (or not hashes, in source code they're called crcFilename) increment from file to file, from somewhere near 0x00000000 to somewhere near 0xffffffff. It doesn't really look like a CRC hash, because CRC is completely random and randomly changes if even a single bit was modified. When I hash scene names in maps, they are completely different.

And it doesn't appear that the hash is stored in the binary scene itself. It isn't the scene's CRC either.

Please help if you know the format. Thanks in advance.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to