Ori and the blind forest script tool

How to translate the files of a game
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Ori and the blind forest script tool

Post by shadow_lonely »

Rancher wrote:Using a hex editor or? What is your native language? I need to use Russian strings because non of the other languages contain the Cyrillic characters and I can't use a hex editor because of the character limitation. That's why I need someone to edit the script, it already has a source code, so I guess it wouldn't be so hard for someone experienced.


1B 00 00 00 57 68 65 6E 20 4E 61 72 75 20 65 6D 62 72 61 63 65 64 20 6D 79 20 6C 69 67 68 74

1A 00 00 00 43 75 61 6E 64 6F 20 4E 61 72 75 20 61 62 72 61 7A C3 B3 20 6D 69 20 6C 75 7A

27 00 00 00 E3 83 8A E3 83 AB E3 81 AF E3 81 BE E3 82 8B E3 81 A7 E6 88 91 E3 81 8C E5 AD 90 E3 81 AE E3 82 88 E3 81 86 E3 81 AB


You can take and look, first 4 bytes - size limit of text:
When Naru embraced my light: lenght 1B
Cuando Naru abrazó mi luz: lenght 1A
and so on

You can inscrea your size with hex editor, or replace your text with russian and dump your size with 00 data if your text have size smaller.
Rancher
Posts: 17
Joined: Wed May 06, 2015 7:12 pm

Re: Ori and the blind forest script tool

Post by Rancher »

Yeah, I already knew about that size limit HEX value, I just tried it again just to be sure. I edited the Russian string of "sharedassets3.assets" file and I made it 15 characters longer than original, changed the HEX value to reflect that, but the game wouldn't get past zooming the tree when loading a save slot. I guess other null values are important too, after all the script tool modifies them, but I have no idea what's the pattern. Adjusting the script would be the only solution to this. It can't be that hard. :? As I already said, I suppose the length is the problem, the files should be kept the same size by stripping the other language(s).
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Ori and the blind forest script tool

Post by shadow_lonely »

swuforce wrote:Change in export line 14, 16 to 20, and in line 17, 24 to 28
Same thing in import, line 15 and 17

Could you update for working with Ori and the Blind Forest Definitive Edition, please? Thanks!
I uploaded my example.
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Ori and the blind forest script tool

Post by swuforce »

For Definitive Edition, change the "0xd104" to "0xd901" in the source code. Export Line 15, Import Line 16.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Ori and the blind forest script tool

Post by shadow_lonely »

swuforce wrote:For Definitive Edition, change the "0xd104" to "0xd901" in the source code. Export Line 15, Import Line 16.

Thanks! Thank you very much!
linasmi
Posts: 1
Joined: Mon Sep 14, 2020 11:34 am

Re: Ori and the blind forest script tool

Post by linasmi »

swuforce wrote:Try to put the txt outside the folder.


but still not working import:

AutoIt Error

"Line 4528 (File "c:\Ori\oriandtheblindforest_import_all.exe"):
Error: Subscript used on non-accessible variable."