Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Decompress and decrypt files

Featured Replies

  • Author
  • Localization

BySc, posted Sun Jun 23, 2019 2:13 pm (48988)


I have a file encrypted when I use this code works without probleam,

Code:
goto 4
get size asize
savepos offset
encryption rc4 KEY

get NAME basename
string NAME = ".png"
log NAME offset size


but some of files compressed and ecrypted when I try decompress and decrypt with this code I am getting error.

Error:
Code:
Error: impossible to write 0xefdffd20 bytes (total 0xefdffd20)
       Check your disk space or the script is wrong

Last script line before the error or that produced the error:
  129 log NAME offset size


Decompression code
Code:
    comtype zlib_compress
   get SIZE asize
   clog test 0 SIZE SIZE

export.bms

encryption_scan.bms

  • Author
  • Localization

aluigi, posted Sun Jun 23, 2019 3:13 pm (48990)


For sure a mistake is using SIZE equal to the whole file and an OFFSET which is not zero.
Solution
math SIZE - OFFSET
  • Author
  • Localization

BySc, posted Sun Jun 23, 2019 8:44 pm (48997)


Thank you but i changed script because with asize not work correctly. I cant share sample file for decompression I guess.

For decryption works with this
Code:
goto 4
get size long
savepos offset
encryption rc4 KEY
get NAME basename
string NAME = ".png"
log NAME offset size


with other file must decompress and decrypt and I am getting error " Can't read byte"
Code:
  goto 4
   get size long
   savepos offset
   #math SIZE - OFFSET
   comtype zlib_compress
   clog test OFFSET SIZE SIZE   
  • Author
  • Localization

aluigi, posted Thu Sep 26, 2019 2:02 am (50891)


Better to share file and name of the game.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.