oceanhorn switch

How to translate the files of a game
anhsamac
Posts: 11
Joined: Sun Jun 21, 2020 7:26 am

oceanhorn switch

Post by anhsamac »

Someone help me decode the text? I want to translate it into the language of my country
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: oceanhorn switch

Post by Delutto »

Code: Select all

get SIZE long
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
get NAME basename
string NAME + ".decomp.txt"
clog NAME OFFSET ZSIZE SIZE
anhsamac
Posts: 11
Joined: Sun Jun 21, 2020 7:26 am

Re: oceanhorn switch

Post by anhsamac »

Amazing! Thanks a lot Delutto!
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

Re: oceanhorn switch

Post by g3stapo »

anhsamac wrote:Someone help me decode the text? I want to translate it into the language of my country

can you share files? I want to decipher them
anhsamac
Posts: 11
Joined: Sun Jun 21, 2020 7:26 am

Re: oceanhorn switch

Post by anhsamac »

g3stapo wrote:
anhsamac wrote:Someone help me decode the text? I want to translate it into the language of my country

can you share files? I want to decipher them


I have attached it
g3stapo
Posts: 36
Joined: Thu Nov 21, 2019 2:24 pm

Re: oceanhorn switch

Post by g3stapo »

anhsamac wrote:
g3stapo wrote:
anhsamac wrote:Someone help me decode the text? I want to translate it into the language of my country

can you share files? I want to decipher them


I have attached it

no
game files
Zol77
Posts: 6
Joined: Sun Dec 27, 2020 6:52 pm

Re: oceanhorn switch

Post by Zol77 »

Hi, I have also succeeded to unpack the txt file. I have translated. But unfortunately I cannot compress back. Can you please help me?
gameside
Posts: 66
Joined: Sun Nov 08, 2020 1:07 pm

Re: oceanhorn switch

Post by gameside »

Zol77 wrote:Hi, I have also succeeded to unpack the txt file. I have translated. But unfortunately I cannot compress back. Can you please help me?

Hi, try Delutto script with reimport3, Maybe it works (file compressed with zlib)
Zol77
Posts: 6
Joined: Sun Dec 27, 2020 6:52 pm

Re: oceanhorn switch

Post by Zol77 »

gameside wrote:
Zol77 wrote:Hi, I have also succeeded to unpack the txt file. I have translated. But unfortunately I cannot compress back. Can you please help me?

Hi, try Delutto script with reimport3, Maybe it works (file compressed with zlib)


Hi,
I tried it. It doesn't work. I want to solve it. Any other ideas maybe?
gameside
Posts: 66
Joined: Sun Nov 08, 2020 1:07 pm

Re: oceanhorn switch

Post by gameside »

Zol77 wrote:
gameside wrote:
Zol77 wrote:Hi, I have also succeeded to unpack the txt file. I have translated. But unfortunately I cannot compress back. Can you please help me?

Hi, try Delutto script with reimport3, Maybe it works (file compressed with zlib)


Hi,
I tried it. It doesn't work. I want to solve it. Any other ideas maybe?

You mean after reimport back game doesn't work anymore?
here, try these files in your game
first try file from folder 1 and if it's not worked try folder 2
There is little chance that these files work
Zol77
Posts: 6
Joined: Sun Dec 27, 2020 6:52 pm

Re: oceanhorn switch

Post by Zol77 »

Hi,
Please describe how you did these. I need to change the size. It cannot be larger than the original size.
Then maybe it will be good. I'm experimenting. Thanks.
Image
gameside
Posts: 66
Joined: Sun Nov 08, 2020 1:07 pm

Re: oceanhorn switch

Post by gameside »

Zol77 wrote:Hi,
Please describe how you did these. I need to change the size. It cannot be larger than the original size.
Then maybe it will be good. I'm experimenting. Thanks.
Image

I just compress Your text with zlib and then added uncompressed file size (4 byte) at start of it for for files in folder 1
and for folder 2 I also changed 78 DA from file from folder 1 to 78 01
Image
Im not sure if its work or not, its just a simple test, if you test it in game Tell the result here so that others can understand
and one other thing are you sure you tested reimport 3 for reimport your file? (-r -r -r)
Zol77
Posts: 6
Joined: Sun Dec 27, 2020 6:52 pm

Re: oceanhorn switch

Post by Zol77 »

Hi,
I tried it the reimport3, but doesn't work. I can't try it in the game, i get an error message while importing.
gameside
Posts: 66
Joined: Sun Nov 08, 2020 1:07 pm

Re: oceanhorn switch

Post by gameside »

Zol77 wrote:Hi,
I tried it the reimport3, but doesn't work. I can't try it in the game, i get an error message while importing.

You trying to import these file in what kind of archive?
for test edit your text and make its size less then 123,890 bytes and send it here
Zol77
Posts: 6
Joined: Sun Dec 27, 2020 6:52 pm

Re: oceanhorn switch

Post by Zol77 »

gameside wrote:
Zol77 wrote:Hi,
I tried it the reimport3, but doesn't work. I can't try it in the game, i get an error message while importing.

You trying to import these file in what kind of archive?
for test edit your text and make its size less then 123,890 bytes and send it here


Previously I have really exceeded the specified sizes. But not now. I have to put these in a data.sf file.
The size measurements:
eng.txt (40 142 bytes)
ENG-NX.txt (347 bytes)
Can you please compress them below this measures?
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: oceanhorn switch

Post by LinkOFF »

Made tool for decrypt/encrypt txt files. Not tested ingame.
Zol77
Posts: 6
Joined: Sun Dec 27, 2020 6:52 pm

Re: oceanhorn switch

Post by Zol77 »

LinkOFF wrote:Made tool for decrypt/encrypt txt files. Not tested ingame.


Thanks. It has been succeeded at last!
I could replace it with the french language and it works in hungarian also!
Thanks a lot on behalf of the hungarian gamers! :)
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: oceanhorn switch

Post by LinkOFF »

Zol77, thank you for testing. Upload source code: https://github.com/LinkOFF7/oceanhornTXT