Post subject: Recovering data from a corrupted tasproj file
Active player (261)
Joined: 12/13/2016
Posts: 352
I screwed up today and had a power failure on my laptop while working on BizHawk resulting in my movie getting corrupted. I only started working on this project a few days ago, and it wouldn't be terribly difficult for me to restart from scratch, but I think it might be possible to recover the data. Opening the file in Notepad++ and comparing to other TASproj files, it appears that the data is simply truncated halfway through the file. Since most of the data corresponds to the "GreenZone" file, and it appears that all of the "InputLog" data is still present, I am hoping that there might be some way to get the input file back. If not, oh well, but just wondering if anyone has any ideas. For what it's worth, I'm unable to "open archive" using 7zip, in case anyone suggests that.
Site Admin, Skilled player (1251)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Upload it somewhere.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Active player (261)
Joined: 12/13/2016
Posts: 352
Spikestuff
They/Them
Editor, Publisher, Expert player (2633)
Joined: 10/12/2011
Posts: 6437
Location: The land down under.
I was able to recover your input and your branches, however I didn't look into recovering the GreenZone, because it's broken. Download Link Edit/Side Note: ThunderAxe's recovery isn't complete and doesn't load in TAStudio. (Infact doesn't load for me at all without TAStudio) It's more of a zip/rezip job without any attempt at recovering the movie to load up in TAStudio/standalone. Second Edit: Use feos'. His is a complete recovery including the GreenZones.
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Something better for yourself and also others.
Editor, Reviewer, Skilled player (1354)
Joined: 9/12/2016
Posts: 1646
Location: Italy
Done, it was a piece of cake. Download the recovered file: https://filebin.net/xw8djzb0y35vrmz8/Tales_of_Phantasia_Hard__Japan__REPARED.tasproj Make sure to often make backups from now on, and use the latest version of BizHawk, because it doesn't crash!
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Site Admin, Skilled player (1251)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
https://yadi.sk/d/dtrqrOhm3FoMCG It died in the middle of saving branch 7, so it got lost, as it had no input log. All the rest is probably there.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Active player (261)
Joined: 12/13/2016
Posts: 352
Thank you so much! It looks like all (EDIT: or most) of the branch data is there too! I really appreciated your help on this! Just curious, what did you guys do in order to repair the file? I'm always looking to learn stuff like this for use in the future, if you wouldn't mind sharing.
Site Admin, Skilled player (1251)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Sure.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Active player (261)
Joined: 12/13/2016
Posts: 352
Hmmm, maybe I need to update 7-zip? It doesn't work for me lol.
Spikestuff
They/Them
Editor, Publisher, Expert player (2633)
Joined: 10/12/2011
Posts: 6437
Location: The land down under.
Well, if you can extract the .tasproj file out into a folder and rezip it back to a tasproj file. It's not an issue with an "outdated" 7zip. feos' method was to check what shouldn't exist. Which was CoreData7 and Header7. And deleted the two and tested it again. And Voilà it works. My method's longer (and doesn't preserve GreenZone), so I won't be explaining it.
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Something better for yourself and also others.
Editor, Reviewer, Skilled player (1354)
Joined: 9/12/2016
Posts: 1646
Location: Italy
ruadath wrote:
Just curious, what did you guys do in order to repair the file? I'm always looking to learn stuff like this for use in the future, if you wouldn't mind sharing.
I just googled "repair zip" and clicked on the first result. I installed that program and used on your damaged .tasproj, then I opened the resulting file with 7zip and checked the integrity of Input Log.txt. But seriously, do more backups and go to BizHawk 1.12.0 now.
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Site Admin, Skilled player (1251)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
ThunderAxe31 wrote:
do more backups
Translation: Enable Config->Backup per file save. Then save it manually after every important action. You'll get a backup of every version of the file you manually saved. Autosave excluded.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Editor, Player (175)
Joined: 4/7/2015
Posts: 331
Location: Porto Alegre, RS, Brazil
ThunderAxe31 wrote:
But seriously, do more backups
Also change to 600 for example to save each 10 minutes, but keep in mind that if your tasproj is big the backups will be big too, so I recommend cleaning a little the backup folder each time you end your work in the day.
Games are basically math with a visual representation of this math, that's why I make the scripts, to re-see games as math. My things: YouTube, GitHub, Pastebin, Twitter
Site Admin, Skilled player (1251)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
brunovalads wrote:
if your tasproj is big the backups will be big too
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Active player (261)
Joined: 12/13/2016
Posts: 352
feos wrote:
Autosave as Bk2
OMGScoots