WayForward Game .text, .loctext and .ltb files

How to translate the files of a game
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

WayForward Game .text, .loctext and .ltb files

Post by makc_ar »

Game: Shantae and the Pirate's Curse http://store.steampowered.com/app/345820
Last edited by makc_ar on Fri Dec 16, 2016 10:51 pm, edited 1 time in total.
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: WayForward Game .text files (header STXT)

Post by swuforce »

There are many unknown values, but i hope it work.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: WayForward Game .text files (header STXT)

Post by makc_ar »

Yea, works!

Image
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: WayForward Game .text files (header STXT)

Post by makc_ar »

Hi swuforce! Support to Shantae Risky's Revenge .loctext and .ltb files?
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: WayForward Game .text, .loctext and .ltb files

Post by swuforce »

Try this tool.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: WayForward Game .text, .loctext and .ltb files

Post by makc_ar »

Thanks a lot swuforce!
Dima Bilan
Posts: 25
Joined: Tue Jul 26, 2016 12:07 am

Re: WayForward Game .text, .loctext and .ltb files

Post by Dima Bilan »

Swuforce, and can you make a tool for .ltb Shantae Half-Genie Hero?
owney_deres
Posts: 1
Joined: Sun Jul 09, 2017 9:58 pm

Re: WayForward Game .text, .loctext and .ltb files

Post by owney_deres »

Swuforce, and can you make a tool for .ltb Shantae Half-Genie Hero?


+1
Courtroom
Posts: 2
Joined: Fri Aug 11, 2017 5:54 pm

Re: WayForward Game .text, .loctext and .ltb files

Post by Courtroom »

To anyone who is interested in HGH, that game uses .ltb files, so Risky's Revenge TextTool should be OK.

And it works for localization.ltb in localization.pak (It's menu/interface stuff, the new file's size can't be too different from original, otherwise the game crashes). The problem is shantae_dialog.ltb in shantae_common.pak. That file has ridiculous ammount of text (because it contains all dialogue lines for every official language). When I exported that file into .txt and then immediately imported back into .ltb, the new file had 64 more bytes than original, so the game couldn't read that .ltb properly and crashes. So maybe either the exporter or importer breakes the file.

So, sorry to bother you, swuforce, but is it possible to fix that problem?
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: WayForward Game .text, .loctext and .ltb files

Post by swuforce »

As far as i know it works, just you need to "editing .pak file with a hex editor".
Contact with robotnick.
Courtroom
Posts: 2
Joined: Fri Aug 11, 2017 5:54 pm

Re: WayForward Game .text, .loctext and .ltb files

Post by Courtroom »

Nevermind that, I just figured out exactly how to fix it. It just requires fixing shantae_dialog.ltb with hex editor in a specific way. Maybe I'll make a tool someday, but here's step-by-step tutorial for now.
(Will EDIT this post if I find mistakes). EDITED 23.08.17
1) The NEW .ltb needs to have 1 866 688 bytes (64 more bytes than OLD .ltb). Making .txt have 854 901 bytes before importing should do it in most cases.
2) Open both the OLD .ltb and NEW .ltb in hex editor.
3) In NEW, replace "40" in 000020 and 000030 with "00".
4) Copy bytes from OLD's 1A1000-1A2CD8 (last bytes: "00 00 00 00 98") and paste it into NEW's 1A1000-1A2D18. Notice that these blocks of bytes have different size (After that NEW will be 64 bytes shorter).
5) Copy bytes from OLD's 1C7700-1C7748 (last bytes: "00 00 00 00 48") and paste it into NEW's 1C7700-1C7748.

After that shantae_dialog.ltb from Risky's Revenge Text Tools should be fixed. These blocks of bytes are after all dialogue lines, if you watch the .txt's size everything should be OK.
kavid
Posts: 16
Joined: Tue Jun 13, 2017 7:12 am

Re: WayForward Game .text, .loctext and .ltb files

Post by kavid »

swuforce wrote:As far as i know it works, just you need to "editing .pak file with a hex editor".
Contact with robotnick.


this Shantae Half-Genie Hero for wiiu 'files

can you support it?
Zexia
Posts: 5
Joined: Mon Mar 16, 2020 2:31 am

Re: WayForward Game .text, .loctext and .ltb files

Post by Zexia »

Hi there! Does anyone still have a link to shantaeandthepiratescurse_texttool? The one by swuforce?