I can't seem to get any GDA column hash to match the CRC32 I'm seeing in the toolset or in the GUI scripts.
The wiki even contradicts itself between the GDA entry:
"Generated with the CRC32 hash algorithm used on the lowercase of the string (so it is case independent)" and the 2DA entry: "Column names are case sensitive. This is because of the CRC32 algorithm
used to generate the hash key. Changing the case of a column name after
it is in use will break the game. White space before and after a column
name will be removed before hashing".
I've tried using zlib's crc32 function and the cksum utility to see if I can reproduce the hash values, but so far nothing...
Let's take the column name "Label". Supposedly it's CRC32 is 3521861138 decimal according to the the _2DA ActionScript class and when I look at the GDA in the toolset.
I've tried appending NUL bytes after each letter, NUL at the end, two NULs at the end etc. Upper case, lower case, and so on.
I'm probably missing something obvious, but so far I'm not sure what it is.
Modifié par FollowTheGourd, 08 janvier 2010 - 01:33 .





Retour en haut






