LolHacksRule wrote:ABClassic or other game? You have to make the game's APK debuggable, clone the APK decompiled on your computer, fake Android.mk, connect your device to your computer, call NDK-GDB (from Android SDK), use breakpoints on application functions that call for loading LUA files, load a level, you should hit the breakpoint, do x/4x and x/s on the given addresses and one should give you the encryption key. The current key works fine for me, I'll try that file (and script entirely) and see if there's a problem... UPDATE: That file works fine for decryption (just delete the 9 header bytes) and open as an archive, try updating OpenSSL or use the BMS script. You can decompile with "java -jar unluac.jar level766.lua > level766_decomp.lua".
BMS script is not work, I use OpenSSL. And, how to recompile levels to apk?
Not sure about LZMA repacking... Sorry. These files use LZMA compression I have no clue about, I tried to mess with them but got stuck at the loading screen... You can try reimport.bat if the filesize is smaller or if you want to risk it, use reimport2.bat on a bigger file.
LolHacksRule wrote:Not sure about LZMA repacking... Sorry. These files use LZMA compression I have no clue about, I tried to mess with them but got stuck at the loading screen... You can try reimport.bat if the filesize is smaller or if you want to risk it, use reimport2.bat on a bigger file.
I write a tool to un/repack, it must use lzma and encrypt.
The script is quite complex and it's an archive, not just a file->encrypt->file. Anyway the re-encryption happens when you replace the 0 argument of Encrypt with 1, example:
Late but upon adding the encryption key for Amazing Alex (m1sOWGxsS23AoseNsM5Lsp9S21YtMxks), I noticed the script skips its encrypted files. It is mostly noticeable there as that game doesn't use compression. Adding these mods at line 53 below fixes the script for those files as well as other related files.
#fixes for Nibblers elif TEST & "include " get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "ONTS" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "owersh" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "redits" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "aram" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit
#Fix for extraction of uncompiled lua files in AB elif TEST & "theme" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "heme" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "oNotW" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit
#fixes for AmazingAlex elif TEST & "xml" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "html" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & " created" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit elif TEST & "plist" get SIZE asize MEMORY_FILE log NAME 0 SIZE MEMORY_FILE cleanexit