LOC file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

LOC file

Post by hackspeedok »

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
Last edited by hackspeedok on Thu Nov 13, 2014 5:23 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by aluigi »

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: Select all

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
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by hackspeedok »

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: Select all

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

thanks :D
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by swuforce »

Try this tool.
Made by aluigi's format.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by hackspeedok »

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
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by hackspeedok »

i used this bms script: http://aluigi.altervista.org/papers/bms/ea_big4.bms
and when i extracted font.big, i cannot edit :(
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by hackspeedok »

Help me, please :(
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by aluigi »

That script can be used only to reimport non-compressed files because the re-compression of that algorithm is not supported.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by hackspeedok »

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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by aluigi »

I cannot help with modding, I can only tell you if a script is ok or not for reimporting.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: FIFA 14 & FIFA 15 (IOS) LOC file

Post by hackspeedok »

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

thanks :D
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: LOC file

Post by hackspeedok »

Aluigi, please help me editing this file type. Thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LOC file

Post by aluigi »

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 :)
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: LOC file

Post by hackspeedok »

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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LOC file

Post by aluigi »

Strange format, I don't have scripts for it.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: LOC file

Post by hackspeedok »

Help me, tried this script but didn't work completely
http://aluigi.altervista.org/papers/bms/fightnight.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LOC file

Post by aluigi »

script updated to version 0.3.1
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: LOC file

Post by hackspeedok »

Help me, thanks :D
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LOC file

Post by aluigi »

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.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: LOC file

Post by hackspeedok »

Can you see it ? I think its the index file