jeanbmar / sc-compression

A Node.js module to decompress and compress game assets from Supercell games
42 stars 10 forks source link

I can't decode some .sc files #21

Open nihatxp opened 1 year ago

nihatxp commented 1 year ago

-ui_tex.sc -loading_tex.sc

I am getting the same error in both files

enter a filepath or a directory:./ui_tex.sc decompressing ./ui_tex.sc... OOM OOM node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "abort(OOM). Build with -s ASSERTIONS=1 for more info.".] { code: 'ERR_UNHANDLED_REJECTION' }

jeanbmar commented 1 year ago

Could you please share a file that doesn't decode properly?

nihatxp commented 1 year ago

Could you please share a file that doesn't decode properly?

file.zip

nihatxp commented 1 year ago

Could you please share a file that doesn't decode properly?

file.zip

did you solve this problem

jeanbmar commented 1 year ago

I had a look and there's a format difference for sure. It's like the LZMA header is omitted. Unfortunately I won't have time to reverse it in the near future, so any help is welcome!

Decencies commented 1 year ago

I had a look and there's a format difference for sure. It's like the LZMA header is omitted. Unfortunately I won't have time to reverse it in the near future, so any help is welcome!

I'll take a look myself, thank you for reminding me!