Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Home Sweet Home locres file

Featured Replies

  • Author
  • Localization

patyek, posted Thu Sep 28, 2017 4:11 pm (26897)


Hi!

How to extract the HSH.locres file? All of the extractor won't work, all run but not export the text just always run.

Br.: Patyek
  • Author
  • Localization

patyek, posted Thu Sep 28, 2017 7:00 pm (26904)


makc_ar wrote:
Try this tool


Thanks a lot! It's perfect! :R
  • Author
  • Localization

binlv1, posted Sat Sep 30, 2017 3:56 am (26950)


i has tried unpacking, but the subtitile part is not in the file .locres file
it is in path:
Home Sweet Home\HomeSweetHome\Content\HomeSweetHome\Blueprints\DataBase\Subtitle
in the DT_SubtitleRaw.uexp file
And I have no way to edit it
Although #makc_ar has helped me to know the subtitle but can not import again
  • Author
  • Localization

Ren, posted Sun Oct 01, 2017 2:39 pm (26976)


binlv1 wrote:
i has tried unpacking, but the subtitile part is not in the file .locres file
it is in path:
Home Sweet Home\HomeSweetHome\Content\HomeSweetHome\Blueprints\DataBase\Subtitle
in the DT_SubtitleRaw.uexp file
And I have no way to edit it
Although #makc_ar has helped me to know the subtitle but can not import again

Can you tell me how to extract subtitle texts?
  • Author
  • Localization

binlv1, posted Sun Oct 01, 2017 3:17 pm (26977)


Ren wrote:
binlv1 wrote:
i has tried unpacking, but the subtitile part is not in the file .locres file
it is in path:
Home Sweet Home\HomeSweetHome\Content\HomeSweetHome\Blueprints\DataBase\Subtitle
in the DT_SubtitleRaw.uexp file
And I have no way to edit it
Although #makc_ar has helped me to know the subtitle but can not import again

Can you tell me how to extract subtitle texts?

http://zenhax.com/memberlist.php?mode=viewprofile&u=124
he can do it, ask him
by the way, when you know, guide me :D
  • Author
  • Localization

patyek, posted Sat Oct 14, 2017 3:03 pm (27314)


binlv1 wrote:
Ren wrote:
binlv1 wrote:
i has tried unpacking, but the subtitile part is not in the file .locres file
it is in path:
Home Sweet Home\HomeSweetHome\Content\HomeSweetHome\Blueprints\DataBase\Subtitle
in the DT_SubtitleRaw.uexp file
And I have no way to edit it
Although #makc_ar has helped me to know the subtitle but can not import again

Can you tell me how to extract subtitle texts?

http://zenhax.com/memberlist.php?mode=viewprofile&u=124
he can do it, ask him
by the way, when you know, guide me :D


Any progress? :)
  • Author
  • Localization

makc_ar, posted Thu Jul 19, 2018 7:55 pm (36871)


New ui sub
  • Author
  • Localization

patyek, posted Fri Jul 20, 2018 11:29 am (36877)


makc_ar wrote:
New ui sub


Thanks a lot! :R

Br.: Patyek
  • Author
  • Localization

akintos, posted Sun Sep 02, 2018 3:50 pm (38051)


makc_ar wrote:
New ui sub


I'm working on Unreal Engine 4 locfile scripts and stuck at generating hash.

Can you please explain what hash algorithm used to calculate it, or how did you put subtitle data into locres file?
  • Author
  • Localization

MerlinSVK, posted Sun Sep 02, 2018 4:49 pm (38052)


Are you really sure you need to calculate that hash?
  • Author
  • Localization

akintos, posted Sun Sep 02, 2018 4:55 pm (38053)


MerlinSVK wrote:
Are you really sure you need to calculate that hash?


Yes, I've tested with wrong string hash and found that the game checks both key and hash.
  • Author
  • Localization

MerlinSVK, posted Sun Sep 02, 2018 5:07 pm (38054)


AFAIK that hash is a "key" or "ID" for that string.

Example:

KEY = VALUE
4C8ED2A4431AE7844EC83CB4F3E6D535 = Jane! It's me!

Compare your locres with some other from the same game. You will find out, that different languages has the same hashes.
  • Author
  • Localization

akintos, posted Sun Sep 02, 2018 5:10 pm (38055)


MerlinSVK wrote:
Compare your locres with some other from the same game. You will find out, that different languages has the same hashes.

I've checked the source code of UE4 and found the locres generation code.

The hash value is crc32 hash of source string, so it's same for every language.

I also found the locres load code and it looks like one key can have multiple hash and string.


The problem is I can't get same crc32 hash result when I tested it.
  • Author
  • Localization

MerlinSVK, posted Sun Sep 02, 2018 5:22 pm (38058)


Well, I have never ever changed any hash (nor in .locrec nor in .pak file) and translations worked. But I didn't try this game yet.

And if I understand that code correctly, than StrCrc32 returns uint32, but hash in .locres has 16 bytes. So... some change by game Devs?
  • Author
  • Localization

akintos, posted Sun Sep 02, 2018 5:32 pm (38059)


Image

Hash is 4 bytes.

I need to know how to get correct hash because I'm adding non-localized strings into localization resource file.

makc_ar somehow did it, and I want to learn how to do it.
  • Author
  • Localization

MerlinSVK, posted Sun Sep 02, 2018 6:22 pm (38060)


"I'm adding non-localized strings into localization resource file."

What do you mean by that? Are adding new strings that were not in the game?

Because if you want to translate this game, than there is no problem.

Image
  • Author
  • Localization

akintos, posted Sun Sep 02, 2018 6:52 pm (38061)


Original locres file only have menu/UI strings. Subtitle strings are at DT_SubtitleRaw.uexp file, and it only have key and string data.

makc_ar wrote:
Here mod folder ...\HomeSweetHome\Content\Localization\Game\en. locres file UI viewtopic.php?f=12&t=5023#p26950 SUB http://forum.xentax.com/viewtopic.php?p=142359#p142359. locres tools: viewtopic.php?f=12&t=1022


make_ar added subtitle strings to locres file.
  • Author
  • Localization

MerlinSVK, posted Sun Sep 02, 2018 7:07 pm (38062)


Now I see... Hm, that Game.locres has older format. But I have no idea how he did it :D
  • Author
  • Localization

akintos, posted Sun Sep 02, 2018 7:25 pm (38063)


Well I copied CRC function from UE4 source code to new C project and its working now...

Now I'm porting that c hash function to python code.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.