Please someone tell me it’s possible to get my .lua file from an .apk file. I don’t know what happened, I guess text wrangler got overwhelmed so it shut down and now it shows my main.lua file being 0 kb.
Sorry to be the bearer of bad news, but it’s not possible to get the Lua file from an APK.
There’s only byte-code in the APK…no source.
Good news! ingemar may be right but at least in my situation I was able to get a previous version without the app file.
I pressed and held my power button to force it to shut down. What’s supposed to happen is that after it restarts, recovered files can be found in the trash bin (using mac). But to no avail in my case. I found other documents there though, but not my main.lua file.
When I opened my main.lua file, it looks like it just became wiped clean. So the file title was still there, but it had 0 kb of data in it. So I eventually figured that during the crash, it somehow got overwritten with an empty document.
To my relief, I found that programs like Microsoft Word save previous versions in case you overwrite important documents and save. For textWrangler, after opening the blank document, it’s under “Save --> Compare against previous version”. It showed every save I had done and I simply copied and saved the version from before the crash.
I don’t know about other programs, but it’s worth a shot if you find yourself in this situation. Main word to search is “version”.
Don’t be like me! If you haven’t backed up your file in over a week, BACK IT UP NOW!
Great to hear you got your file back!
Yep. Backups are good. That’s why I have weekly file-by-file backups + hourly backups to Time Machine *and* hourly backups to the cloud… *and* a backup of the backups for off-site storage ( I know… I’m paranoid :P )
Yep. For any software project you need a VCS. I use Git too!
…and if you’re on a Mac use SourceTree to manage your git or mercurial sources.
( however a CVS doesn’t replace a good backup routine )
BACKUP BACKUP BACKUP.
Dropbox, Google Drive, Copy.com, do something that has your files off-site somewhere!
Sorry to be the bearer of bad news, but it’s not possible to get the Lua file from an APK.
There’s only byte-code in the APK…no source.
Good news! ingemar may be right but at least in my situation I was able to get a previous version without the app file.
I pressed and held my power button to force it to shut down. What’s supposed to happen is that after it restarts, recovered files can be found in the trash bin (using mac). But to no avail in my case. I found other documents there though, but not my main.lua file.
When I opened my main.lua file, it looks like it just became wiped clean. So the file title was still there, but it had 0 kb of data in it. So I eventually figured that during the crash, it somehow got overwritten with an empty document.
To my relief, I found that programs like Microsoft Word save previous versions in case you overwrite important documents and save. For textWrangler, after opening the blank document, it’s under “Save --> Compare against previous version”. It showed every save I had done and I simply copied and saved the version from before the crash.
I don’t know about other programs, but it’s worth a shot if you find yourself in this situation. Main word to search is “version”.
Don’t be like me! If you haven’t backed up your file in over a week, BACK IT UP NOW!
Great to hear you got your file back!
Yep. Backups are good. That’s why I have weekly file-by-file backups + hourly backups to Time Machine *and* hourly backups to the cloud… *and* a backup of the backups for off-site storage ( I know… I’m paranoid :P )
Yep. For any software project you need a VCS. I use Git too!
…and if you’re on a Mac use SourceTree to manage your git or mercurial sources.
( however a CVS doesn’t replace a good backup routine )
BACKUP BACKUP BACKUP.
Dropbox, Google Drive, Copy.com, do something that has your files off-site somewhere!