Hakanaou / deepLuna

Text extractor/injector for Tsukihime Remake
BSD 2-Clause "Simplified" License
33 stars 8 forks source link

New Function #2

Closed HigherOrderLogic closed 3 years ago

HigherOrderLogic commented 3 years ago

Can you make a function to repack it into nsp file or make a new patch for the script or something like that?

ghost commented 3 years ago

To make a patch easily you can use any emulator, as they support layeredFS. Just click with RMB on the game icon: image And pick Open mods directory, create new folder called whatever you like (for example deepLuna) an in this folder you create another folder named romfs. Then you insert there modified script_text.mrg. This is how it should looks like. Ignore jaX folders, they are for font changes. image If you modified your Switch to have CFW, it probably supports layeredFS so making patch is this easy too, but method depends on CFW I think. As the most people prefer to play VNs on their computers, I described method for emulators.

I think this info should be in readme too.

HigherOrderLogic commented 3 years ago

To make a patch easily you can use any emulator, as they support layeredFS. Just click with RMB on the game icon: image And pick Open mods directory, create new folder called whatever you like (for example deepLuna) an in this folder you create another folder named romfs. Then you insert there modified script_text.mrg. This is how it should looks like. Ignore jaX folders, they are for font changes. image If you modified your Switch to have CFW, it probably supports layeredFS so making patch is this easy too, but method depends on CFW I think. As the most people prefer to play VNs on their computers, I described method for emulators.

I think this info should be in readme too.

That's what I did on my first attempt, but the text is still Japanese, what could have I done wrong?

ghost commented 3 years ago

Make sure you inserted translated file, not JP one and renamed it to script_text.mrg. And keep in mind that prologue (one time only scene at the beginning) is movie, so the script_text.mrg cannot change it.

Hakanaou commented 3 years ago

@HigherOrderLogic : Unfortunately, I won't be adding an option to repack everything, since this is completely out of scope for a unique Python script such as deepLuna. @CloverMoonTL showed a very simple way to do extract and reinject the main resources using the emulator itself. Otherwise, you have tools such as hactool that are able to do the same thing (I put the link in the readme file). Moreover, deepLuna is already patching the file containing the text of the game, which is script_text.mrg. For that, once you finish translating, simply click on "Insert" and the game will patch the file.