Just a quick update to my progress.
I've made a tool that extract all strings into a database/translation tool that is hooked up with the google translate API for easy translations, and i was planning on making a script that could extract the LINKDATA files form an xci and mod them (so anybody can use).
Unfortunately i cannot for the life of me get the mod to work with layeredFS like Falo did.
excel.exe
this tool converts and translates *.dat text files to *.txt and back into *.dat
it uses *.csv files and CommonWords.txt in a "Translation" subfolder to translate stuff while converting.
Note: it uses the "FILE_*Number*" to identify some text types, because for example FILE_00010_Items.dat has 2 text columns instead of 1!
linkdata.exe
this tool unpacks DQB2 LINKDATA.BIN/LINKDATA.IDX files and if used via commandline/batch like this:
Code:
linkdata.exe inject MenuText\FILE_00010_Items.dat 10 LINKDATA.IDX
is able to append/inject a translated file into LINKDATA.BIN at the end of the file
the final translated mod is therefor a little bit bigger then the original LINKDATA.BIN (916 MB) extra on the sd card.
As a bare-bones test, I've made a very light modifications, with Falo's tools above, to the "new game" menu and the first dialog in the game, to check if i can get it to load.
Game loads and plays fine, but no translations. Unsure wether it ignores my mod, since i presume it would break the game - or at least have missing text - if my LINKDATA files was bugged...
I've tried with atmosphere (kosmos) layeredFS and SX OS layeredFS.
(i can confirm that layeredFS works with other titles with both these methods on my switch).
I've placed the LINKDATA.BIN and LINKDATA.IDX in the title folder for the game, like so:
Code:
010050000705E000
└ romfs
└ LINKDATA.BIN
└ LINKDATA.IDX
If anyone has
any ideas on what i can try to make sure that the layeredFS files are loading, or how i can check for errors, please let me know
Ideas i have not tried yet:
- compress game file before injecting into LINKDATA.BIN
- replace translated file on original position of LINKDATA.BIN
- repack a xci with the modded files (unsure how to do this - does not seem like there is any tools available for this, that uses the romfs+exefs structure)
btw, i know an english translation is officially coming, but i kinda got hooked on learning how to mod a game and do hex editing, and i kinda enjoy it
so just rolling with this for now as a kinda hobby / learning experience.