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.

LOC file

Featured Replies

  • Author
  • Localization

hackspeedok, posted Thu Oct 09, 2014 7:41 am (830)


I can edit this file with hex, but when i edited and played game, languages of game displayed error. Can you help me with another bms script. Aluigi, i need your helps. Thanks and sorry for my bad english. :D
LOC file: http://www.mediafire.com/download/3apa8 ... ENG_US.loc
  • Author
  • Localization

aluigi, posted Thu Oct 09, 2014 5:02 pm (836)


The format is simple but currently I have no tools for editing localization files.
The following is the script for parsing the file, it will just print the strings on the screen together with the file offset (in case you want to edit the string with a hex editor):
Code:
idstring "LOCH"
get BASE_OFF long
goto BASE_OFF
idstring "LOCL"
get SIZE long
get ZERO long
get STRINGS long
for i = 0 < STRINGS
    get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get STR unicode
    goto TMP
    print "%OFFSET|x% %STR%"
next i
  • Author
  • Localization

hackspeedok, posted Thu Oct 09, 2014 5:28 pm (837)


aluigi wrote:
The format is simple but currently I have no tools for editing localization files.
The following is the script for parsing the file, it will just print the strings on the screen together with the file offset (in case you want to edit the string with a hex editor):
Code:
idstring "LOCH"
get BASE_OFF long
goto BASE_OFF
idstring "LOCL"
get SIZE long
get ZERO long
get STRINGS long
for i = 0     get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get STR unicode
    goto TMP
    print "%OFFSET|x% %STR%"
next i

thanks :D
  • Author
  • Localization

swuforce, posted Thu Oct 16, 2014 5:20 pm (940)


Try this tool.
Made by aluigi's format.
  • Author
  • Localization

hackspeedok, posted Sat Oct 18, 2014 3:57 pm (1013)


Thanks swuforce so much, that tool is so good. But i want to mod font of FIFA supports unicode characters, but i can't :(
I need your help, swuforce and aluigi
Font attached
  • Author
  • Localization

hackspeedok, posted Tue Oct 21, 2014 5:32 am (1090)


Help me, please :(
  • Author
  • Localization

aluigi, posted Tue Oct 21, 2014 11:02 am (1102)


That script can be used only to reimport non-compressed files because the re-compression of that algorithm is not supported.
  • Author
  • Localization

hackspeedok, posted Tue Oct 21, 2014 12:19 pm (1107)


aluigi wrote:
That script can be used only to reimport non-compressed files because the re-compression of that algorithm is not supported.

my problem is fonts of game, can you help me ? i want to mod the fonts support unicode characters
  • Author
  • Localization

aluigi, posted Tue Oct 21, 2014 12:21 pm (1108)


I cannot help with modding, I can only tell you if a script is ok or not for reimporting.
  • Author
  • Localization

hackspeedok, posted Tue Oct 21, 2014 1:14 pm (1112)


aluigi wrote:
I cannot help with modding, I can only tell you if a script is ok or not for reimporting.

thanks :D
  • Author
  • Localization

hackspeedok, posted Wed Mar 04, 2015 11:48 am (3605)


Aluigi, please help me editing this file type. Thanks
  • Author
  • Localization

hackspeedok, posted Thu Mar 05, 2015 3:54 pm (3616)


aluigi wrote:
http://aluigi.org/papers/bms/fightnight.bms

I rememberd the "EB" magic at the beginning and luckily was a format for which I already wrote a script some years ago :)


Did you have any FSH files editor ? I'm using GoFSH but it's not useful
And help me with this DB file. Thank you so much
  • Author
  • Localization

aluigi, posted Thu Mar 05, 2015 5:55 pm (3621)


Strange format, I don't have scripts for it.
  • Author
  • Localization

aluigi, posted Thu Sep 24, 2015 8:15 am (7704)


script updated to version 0.3.1
  • Author
  • Localization

hackspeedok, posted Tue Oct 13, 2015 1:22 am (8399)


Help me, thanks :D
  • Author
  • Localization

aluigi, posted Tue Oct 13, 2015 6:11 am (8406)


It's localization stuff, half of the file is just the index (relative offsets). I don't know if the strings are compressed or what.
  • Author
  • Localization

hackspeedok, posted Tue Oct 13, 2015 9:26 am (8412)


Can you see it ? I think its the index file

New folder.rar

  • Author
  • Localization

Skoczek, posted Sat Mar 11, 2023 1:54 pm (75801)


aluigi wrote:
The format is simple but currently I have no tools for editing localization files.
The following is the script for parsing the file, it will just print the strings on the screen together with the file offset (in case you want to edit the string with a hex editor):
Code:
idstring "LOCH"
get BASE_OFF long
goto BASE_OFF
idstring "LOCL"
get SIZE long
get ZERO long
get STRINGS long
for i = 0 < STRINGS
    get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get STR unicode
    goto TMP
    print "%OFFSET|x% %STR%"
next i

Sorry for stupid question, but how to use this piece of code?
  • Author
  • Localization

pig321pig, posted Sat Mar 11, 2023 2:27 pm (75802)


Skoczek wrote:
aluigi wrote:
The format is simple but currently I have no tools for editing localization files.
The following is the script for parsing the file, it will just print the strings on the screen together with the file offset (in case you want to edit the string with a hex editor):
Code:
idstring "LOCH"
get BASE_OFF long
goto BASE_OFF
idstring "LOCL"
get SIZE long
get ZERO long
get STRINGS long
for i = 0 < STRINGS
    get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get STR unicode
    goto TMP
    print "%OFFSET|x% %STR%"
next i

Sorry for stupid question, but how to use this piece of code?

Create a BMS script and open it in QuickBMS
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.