Skip to content

Fatal error for encryption of files above 32-bit maximums #78

@11akak

Description

@11akak

working test

testgame : 凍京NECRO(Tokyo NECRO JP version)

orginal cg.npk file:
name = cg.npk
size = 5.08 GB (5,465,273,904 バイト)
SHA256 = 32501b60f840872aac9413f6ded085518f490e06ab70518003afeb395d8855cc

working test with orginal cg.npk

Image

working


unpack orginal cg.npk with:
NPK3Tool.exe -ec sjis -ky 962C5F3A789C8437B71212A115D6CA9F9AE3FD210FF6AF70A8A8F8BBFE5E8AF5 -u "C:\Users\a\Downloads\MwareStuff\input\jp\cg.npk" "C:\Users\a\Downloads\MwareStuff\output\org"

Image

unpacked folder(C:\Users\a\Downloads\MwareStuff\output\org) size = 5.08 GB (5,464,076,696 バイト)

done


repack original unpacked folder with:
NPK3Tool.exe -ec sjis -vs 2 -mv 1 -ky 962C5F3A789C8437B71212A115D6CA9F9AE3FD210FF6AF70A8A8F8BBFE5E8AF5 -r "C:\Users\a\Downloads\MwareStuff\output\org" "C:\Users\a\Downloads\MwareStuff\output\cg.npk"

Image

repacked cg.npk file:
name = cg.npk
size = 5.09 GB (5,468,099,040 byte)
SHA256 = 9878a40f276d0f4484784643afef147a87c46bdb180c12cf730e85bf05d0816f

done


working test with repacked cg.npk

Image

not working


unpack repacked cg.npk with:
NPK3Tool.exe -ec sjis -ky 962C5F3A789C8437B71212A115D6CA9F9AE3FD210FF6AF70A8A8F8BBFE5E8AF5 -u "C:\Users\a\Downloads\MwareStuff\output\cg.npk" "C:\Users\a\Downloads\MwareStuff\output\repack"

Image

unpacked folder(C:\Users\a\Downloads\MwareStuff\output\repack) size = 3.99 GB (4,291,243,695 byte) #32bit max size is 4,294,967,296 byte


When I tried みにくいモジカの子(Minikui Mojika no Ko JP version), which has a file size lower than the 32-bit maximum, it worked fine.
So I'm not sure, but I think this issue was caused by something related to the 32-bit maximum during encryption

i will upload game file soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions