Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various changes following testing. Added support for files larger than 4GB. #7

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

miragedmuk
Copy link

@miragedmuk miragedmuk commented Sep 11, 2023

Rolled back my hibernation change of checking for "-52" - it fails on most saves I have tried but skipping an extra 112 bytes if the V9 check fails seems to do the trick.

Added ArkSaveGame.StoredDataOffsets - read in during readBinaryHeader()

As hinted by Alex, 1st field in StructCustomItemDataRef was 2 seperate bytes and not 1 short, 2nd byte represents index of stored data offset pairs.

Added new class to hold the cryo, offset position and data in bytes to speed up read using parallel loop. CryoStoreData

Re-worked readStoredBinaryObjects() to map and use memory based byte arrays when reading in cryo creature data and changed 2nd parameter passed to addObject from true to false.

miragedmuk and others added 3 commits September 11, 2023 22:49
… most saves I have tried but skipping an extra 112 bytes if the V9 check fails seems to do the trick.

Added ArkSaveGame.StoredDataOffsets - read in during readBinaryHeader()

As hinted by Alex, StructCustomItemDataRef was 2 bytes, 2nd byte represents index of stored data offset pairs.

Added new class to hold the cryo, offset position and data in bytes to speed up read using parallel loop. CryoStoreData

Re-worked readStoredBinaryObjects() to map and use memory based byte arrays when reading in cryo creature data.
@cadon cadon merged commit 7e0b4a2 into cadon:master Sep 12, 2023
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.

2 participants