ps3xport icon indicating copy to clipboard operation
ps3xport copied to clipboard

Dump command error [Windows]

Open Joseph-S1 opened this issue 10 years ago • 19 comments

When using the dump command on Windows the binary returns“Error making directories” and creates an empty folder where the freshly decrypted .dat files should be placed.

Joseph-S1 avatar Jan 02 '15 02:01 Joseph-S1

try in C:\ , it work for me

RickyVonc avatar Jan 02 '15 09:01 RickyVonc

Thanks, that did work. Kakaroto should definitely add that you can only Dump to C:\ in his post. (I'm not sure if this is a bug, or just not mentioned...)

Joseph-S1 avatar Jan 02 '15 14:01 Joseph-S1

This is probably a bug and not a feature. By design, it should work for any path. mkdir_recursive() in tools.c:457 and archive_dump() in archive.c:748 (leading to this issue on fail) are designed for UNIX operating systems. Why it's working on C:\ root directory? No idea, I'm not experienced in Windows-specific programming - but it's a cool find!

tolga9009 avatar Jan 02 '15 16:01 tolga9009

How about the CreateBackup command? It creates the backup but the files created are corrupted... I can't tell whether or not it is the packaging of the backup .dat files or the unreliable Dump corrupting the files from the beginning...

Joseph-S1 avatar Jan 02 '15 16:01 Joseph-S1

Good thing it works for C: at least! I have no idea why it doesn't work for other paths. I hope someone can fix it and send me the patches :)

kakaroto avatar Jan 03 '15 15:01 kakaroto

Weird huh? There is also something going on with the CreateBackup command... Data is finding itself put in other archives! I will have to investigat e this further...

Joseph-S1 avatar Jan 03 '15 16:01 Joseph-S1

Not sure what you mean by that, but please do investigate further and open issues as you see fit. Unfortunately, I don't have time (or motivation) to be maintaining ps3xport, I just released it as is (3 years old code) without any recent testing so anyone is free to look over the code and fix stuff and I'll be happy to merge any pull requests that come my way.

kakaroto avatar Jan 03 '15 16:01 kakaroto

By the way, @homeedog, make sure you pull the changes from version 0.2 which had a fix for data corruption when using ExtractFile, maybe that's why you had corrupted files ?

kakaroto avatar Jan 03 '15 16:01 kakaroto

You've done more than enough m8. You've given an old OFW user hope! In all seriousness I will investigate further and get back with any new info.

Joseph-S1 avatar Jan 03 '15 16:01 Joseph-S1

I did get 0.2 win binary. I'm also thinking up a way to actually delete files from backups since it seems easier to do than fix the createbackup. by fixing either one you could essentially perform the same tasks by just deleting the root directory on a backup and add a new one in using Add/Add protected... But thanks for the tool and the work put in and enjoy retirement!

Joseph-S1 avatar Jan 03 '15 16:01 Joseph-S1

I can get most everything working by just dumping to C:\ (or external D:). So really, just always work with the root of the drive, and you should be good to go! I'm finding this is a very useful tool. Thanks again kakaroto! :)

christorrella avatar Jan 03 '15 20:01 christorrella

Can you build correctly off C:/? That's my biggest issue right now...

Joseph-S1 avatar Jan 03 '15 20:01 Joseph-S1

I can extract a folder, a file, and re-install a folder and file all from C. I don't know about dumping. On Jan 3, 2015 3:46 PM, "homeedog" [email protected] wrote:

Can you build correctly off C:/? That's my biggest issue right now...

Reply to this email directly or view it on GitHub https://github.com/kakaroto/ps3xport/issues/5#issuecomment-68608945.

christorrella avatar Jan 03 '15 20:01 christorrella

I would like to dump my backup to C:, which works. Then edit (delete &add files) and use CreateBackup to repackage them... But create backup always skrews up my backup during restore and I can see that the file sizes are totally off...

Joseph-S1 avatar Jan 03 '15 20:01 Joseph-S1

Yeah no, composing a backup is broken. I don't even understand how to add the right folders. I just tried installing a backup with a modified file structure after using AddProtected - with no dice. I'll try again. On Jan 3, 2015 3:50 PM, "homeedog" [email protected] wrote:

I would like to dump my backup to C:, which works. Then edit (delete &add files) and use CreateBackup to repackage them... But create backup always skrews up my backup during restore and I can see that the file sizes are totally off...

Reply to this email directly or view it on GitHub https://github.com/kakaroto/ps3xport/issues/5#issuecomment-68609095.

christorrella avatar Jan 03 '15 20:01 christorrella

Another weird occurrence I just ran into; I got an error while trying to create a fresh backup from the PS3 itself: "The backup operation could not be completed. (some error code)". I tried it again, changing nothing, and it worked... I'm now backing up again. Weird O.o

christorrella avatar Jan 03 '15 21:01 christorrella

I tried AddProtected, and successfully added the directory/file, but I tried to extractfile the filrs that I added and got some jumbled mess. I think that not maintaining continuity in the archive and index folder structure (i.e. you have a backup with two folders, folders 1 and 2, and then adding another folder called 1 after; "1,2,1" is not a good way to go.) Whenever you add a new folder, the folder gets added to the end of the index. This might be confusin to the PS3/ps3xport app. I'll continue screwing around with it, but I cannot code in C (or whatever language this is made in) for my life! Hopefully somebody else can fix these glitches.

christorrella avatar Jan 03 '15 23:01 christorrella

I don't know what the rule is about double-posting here, but... I've successfully extracted, edited, and re-archived a backup of mine, and I tested the indexes of the archive2.dat and archive.dat files (and both match size.) But when I go to restore the backup on the PS3, I get an error saying "this backup was created on a different system," and then the system can't even put the generic data back on the hard drive (Error 80010037), and I'm forced to re-format the entire PS3. Something is going wrong parsing(?) the data that's put back into the backup archives/indexes when I re-compile. I really hope somebody pulls this under their wing, because I sure as heck don't know much about coding something this advanced. Maybe it's time I learned? Update: I didn't set the PSID. That's probably the issue. Whoops. I never got a warning about that.

christorrella avatar Jan 04 '15 05:01 christorrella

I know I got the “Error making directories” when trying to use G:/ as a directory Otherwise great job KaKaRoTo on your release. I fully understand about life and not having time for all this console stuff, Will use C:/ or try D:/

windrider42 avatar Jan 04 '15 06:01 windrider42