Skip to content

Conversation

@p0358
Copy link

@p0358 p0358 commented Dec 9, 2021

Everything seems to be okay now, but I didn't have an opportunity to test it with UnCSO2 GUI to ensure. Yes, basically all uint32 in the entry header needed to be changed to uint64 plus padding adjusted and it just works then xD Credits for header reversal to @mrsteyk

I also did a tiny change/test around decrypting small files

@p0358
Copy link
Author

p0358 commented Dec 9, 2021

C:\projects\libuncso2\tests\tfo\nexon\test_pkgfile.cpp(43): FAILED:
  REQUIRE( GetDataHash(fileData, fileDataLen) == tfo::PackageFileHashes[iCurIndex] )
with expansion:
  "cab6520af0e54b17b46a9ae45611c339e64e50e06f341dd834464acc9689af15"
  ==
  "42d3b7b74b8feb7f6801930ba58aef6bb85fa2d8a465cffef36c906566cbeeb4"

It seems that the checksums hardcoded into the tests were incorrect, the top checksum that the new build computed is equal to what I compute from my dumped files that were extracted with the original game engine itself. I'm updating the tests to correct that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant