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.

Unreal Engine 4 .locres file hash function

Featured Replies

  • Author
  • Localization

akintos, posted Sat Sep 01, 2018 4:40 pm (38023)


I almost finished writing parser for locres files. the only missing part is the hash function used to hash strings.

Hash of (God Dammit!.)
Code:
47 6F 64 20 44 61 6D 6D 69 74 21 00
is
Code:
07 A8 93 3E


I think it might be CityHash? The Unreal Engine core API has it https://api.unrealengine.com/INT/API/Runtime/Core/Hash/index.html
  • Author
  • Localization

aluigi, posted Sun Sep 02, 2018 1:35 am (38039)


If you are interested in "brute forcing" many hash/crc algorithms for finding the expected one, I suggest you this script for quickbms:
http://aluigi.org/bms/crc_scan.bms

Usage example:
Create a new file containing the string, in this case "God Dammit!" without the final NULL byte I guess since that's never hashed (but feel free to make a second scanning with it too).
My suggestion is to check ever the file with a hex editor for being 100% sure that it contains the correct string without unexpected line feeds or utf16/bom (expect if they are necessary) and so on.

Then run: quickbms.exe crc_scan.bms string.txt > output.txt

Open output.txt with a text editor and search for the expected crc like 07A8933E
Don't worry the output will contain the crc in both endianesses so you can't be wrong :)

This is just a generic usage and is not referred to this specific case.
  • Author
  • Localization

ghylard, posted Mon Sep 03, 2018 9:10 pm (38092)


makc_ar provided me with a locres file for the game Xing The land beyond which has no locres file.
Unfortunately, due to insufficient information on my part and especially to a significant update of the game, it lacks a lot of text.
Having a tool available to create a locres file or update it would be really great! :D
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.