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
308 stars 56 forks source link

BG4 archives use wrong name & hash when saving #295

Open SomeKitten opened 1 year ago

SomeKitten commented 1 year ago

Game Name: Mario & Luigi - Superstar Saga + Bowser's Minions / Mario & Luigi: Bowser's Inside Story + Bowser Jr.'s Journey / (likely Paper Jam and Dream Team too, but I haven't tested those) Console: 3DS Format extension(s): .dat Type: BG4 archive (plugin_alpha_dream)

Bug details: BG4 archives add a leading slash to the names of files when being saved. This also affects the name hashes making none of the files inside load at all.

Proposed Solution: Remove the leading forward slash on file names when saving the archive. I will make a PR if I can get Kuriimu2 to build on my PC.

Sample files (if possible): Working: https://drive.google.com/file/d/1sXAzkPXiitsFk18iMtTNs1vHbRuPkl-P/view?usp=sharing Broken (after Kuriimu2 save): https://drive.google.com/file/d/1RNIqOuc_NmTJ8-f8xzEO3oN3VFSY31hn/view?usp=sharing