FanTranslatorsInternational / Kuriimu2

Kuriimu is a general purpose game translation project manager and toolkit for authors of fan translations and game mods.
GNU General Public License v3.0
311 stars 56 forks source link

Tales of Innocence R - L7C repack? #136

Closed pnvnd closed 3 years ago

pnvnd commented 3 years ago

Awesome tool! I was able to extract the files in toidata_release.l7c with the Bandai Namco plugin. Is there any feature coming or instructions on how to repack these file? I tried modifying and replacing one of the files, then saved it but it's giving me an error on my Vita. Am I doing something wrong? It loads, then crashes like these screenshots:

image image

IcySon55 commented 3 years ago

What is the storage medium of your ux0: on your Vita?

pnvnd commented 3 years ago

My ux0: is an official Sony PSVita 8GB memory card: image

I'm also using a PSTV if that matters. image

IcySon55 commented 3 years ago

That error message looked familiar. I'm not 100% sure about it, but that's probably the error I used to get when using my defective 64GB Vita memory card. The failure rate of the official memory cards are kind of high, especially with the 64GB cards, it was nearly 50%.

pnvnd commented 3 years ago

Thanks! I'll try again with another memory card and will report back here.

Fis-Ura commented 3 years ago

image

onepiecefreak3 commented 3 years ago

I'm interested in pursuing this issue further. If there is a discord or a user group, where this can be further discussed in detail, without spamming this comment section here, just message me, or send me an invite. Just to mention it, I'm the main dev of Kuriimu2 and also the author of this plugin, so I'm not just any random guy ^^

pnvnd commented 3 years ago

Discord channel: https://discord.gg/tmDgBDNPpE

onepiecefreak3 commented 3 years ago

The issue is closed. Problem was missing re-chunking of replaced files into the proper chunk sizes, defined by the L7c header. The code currently assumes a max chunk size of 0x10000 bytes. Recompressing a file into chunks of that max size can take quite a while, so be patient while the application saves the file (especially if it is >1GB)