Batman Arkham City [PC] .sfw

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
tashmailok
Posts: 7
Joined: Fri Oct 01, 2021 4:01 am

Batman Arkham City [PC] .sfw

Post by tashmailok »

Hey guys
I wanna mod some .gfx files actually for Arkham City PC. I'm looking to replace the X360 button icons with the PS3 button icons.
There's this file called FrontMostLayer.gfx (signature = CFX), which is one of many I'll have to edit.
It has different hex code in Hex Editor and JPEXS. How is this possible?

Opened in Hex Neo:
1 2

Opened in JPEXS:
1 2

The hex editor shows the correct code the game accepts.
Obviously I can't put in the JPEXS code because if I do the game crashes.
I can't hex edit the file to make my mod because it's impossible for me.

File is in attachment.

Any help is greatly appreciated.
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Batman Arkham City [PC] .sfw

Post by h3x3r »

That's because JPEXS decompress that file. CFX > Compressed and FWS > decompressed.
There also should be another data at the and of file. That's why game refuse it.

Try to use this one. I decompress it.
tashmailok
Posts: 7
Joined: Fri Oct 01, 2021 4:01 am

Re: Batman Arkham City [PC] .sfw

Post by tashmailok »

Did you use this tool to decompress it?
Unfortunately this won't work. The game will accept the file only if it is in it's original format (compressed).
I have edited the file and compressed it back but opening up in hex editor, it has different code from the original file and so the game crashes.
You say there's some other data at the end of the file, could you please try to figure out that other data?
Thanks for trying to help.
tashmailok
Posts: 7
Joined: Fri Oct 01, 2021 4:01 am

Re: Batman Arkham City [PC] .sfw

Post by tashmailok »

I've figured out what the problem was.
I had to make my changes to the sfw and remove the assets (shapes in my case) that I didn't require and hex edit and add the 00s to the file so it was it's original size.