MasterDevX / XCoder

Compress / Decompress Brawl Stars SC files on Windows / Linux / Android!
80 stars 26 forks source link

Doesn't work with newest BS update #10

Closed ElDavoo closed 4 years ago

ElDavoo commented 4 years ago

Trying to decompile loading_tex.sc from latest Brawl Stars update.

Traceback (most recent call last): File "./SC-Decode.py", line 175, in decompileSC(folder + file) File "./SC-Decode.py", line 76, in decompileSC if data[0] != 93: IndexError: index out of range

With Python 3.7

MasterDevX commented 4 years ago

Looks like your loading_tex.sc is corrupted, I've just checked and the newest loading screen decompiles just fine. You can see that script fails when checking the first byte of a file (data[0]) and says "index out of range", what means this byte is unavailable. So yeah, most likely you're trying to decompile damaged file and it even has 0 bytes size. You can see decompilation succeeded on my screenshot. Знімок екрана з 2020-01-24 18-50-20

ElDavoo commented 4 years ago

Yes, you're right. I feel so noob because I didn't check such a basic thing. Sorry for the problem :)

Il ven 24 gen 2020, 18:00 MasterDevX notifications@github.com ha scritto:

Looks like your loading_tex.sc is corrupted, I've just checked and the newest loading screen decompiles just fine. You can see that script fails when checking the first byte of a file (data[0]) and says "index out of range", what means this byte is unavailable. So yeah, most likely you're trying to decompile damaged file and it even has 0 bytes size. You can see decompilation succeeded on my screenshot. [image: Знімок екрана з 2020-01-24 18-50-20] https://user-images.githubusercontent.com/32103950/73087746-a548e800-3edb-11ea-8df0-9f1608fa8304.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MasterDevX/XCoder/issues/10?email_source=notifications&email_token=ABYBHYCAHFII37IARHEHJ2LQ7MNDVA5CNFSM4KK3QTJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3NUWI#issuecomment-578214489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBHYH6H3TUFYH4FYMTY6DQ7MNDVANCNFSM4KK3QTJQ .

MasterDevX commented 4 years ago

@ElDavoo No problem, feel free to report any troubles you're facing ✌