Final Fantasy VI PC/Steam Modding

  • Thread starter Thread starter MetaLink
  • Start date Start date
Status
Not open for further replies.
M

MetaLink

Guest
So ff6 came out on PC today and the game doesn´t look very good with the new sprites aliasing problems etc etc, you can check out this article pointing out most things wrong with this port here (http://www.fortressofdoors.com/doing-an-hd-remake-the-right-way-ffvi-edition/)
 
Unlike FFV all the files, except fonts and controller icons, are stored on one big 700 Mb file, this file format is .obb which is an android file i´m not sure

Someone on the steam forums already tried to decompile the file but to no avail (http://steamcommunity.com/groups/ff-modding/discussions/1/487877107133753844/)

So is anyone here interested in modding this game ?
 
This is something I was hoping to look into in a month or two when I have the money to do so, if nobody beats me to it. I suspect the Steam forums are more likely to gather the right talent for this job, though.
 
This is something I was hoping to look into in a month or two when I have the money to do so, if nobody beats me to it.
So, this is a lazy ass port. Its garbage, and various communities are scrambling to make it worth playing.

I am seeing a lot of people who seemingly want to help but don't have the cash to buy the game.

If this sounds like you, then let me know. I haven't done reddit gifts this year, I can afford to gift a few lumps of FF6 coal if someone can help turn it into a diamond.
 
Last edited:
I'm interested in getting this done sooner than later, I am monitoring the steam community, but no single method has come out.
If you're waiting due to a money factor, how much would this cost to get this done, and how much time does it take?
Christmas has left me too broke to buy the game, that's the only financial factor for me. Time can be difficult to gauge without looking into the game's files first; without seeing the formats things are in and how everything's stored, I can't even begin to estimate how long such a task would take.

I'm probably not the best person for this job anyway. My experience with these sorts of things is fairly limited; I'm far more useful at audio modding than reverse engineering file formats. Not to mention my free time will be fairly limited even when I can afford a copy of it, as I was recently cast in a play and rehearsals start in January.

Edit: From what I have read, the game's data isn't just packaged in a binary blob, but also encrypted. That alone puts it past my purview.
 
Last edited:
Well, my offer stands to anyone. I'll also be posting this on reddit /r/FinalFantasy.
 
Last edited:
the main.obb file where all data is stored is password protected, when trying to decrypt/extract the files it asks for a password
 
Now, the password has to be included somewhere for the archive to be decrypted. I would guess it's stored in the game's exe somewhere, though I can't swear to it.
 
I'll take a look - although like Covarr, I won't have much opportunity to do a lot until after Christmas (albeit I'm short on time rather than funds...)


UPDATE: Made some progress; the OBB file, despite the name, isn't actually an obb file. (Probably due to Google's distribution rules; subsidiary data and patches are always named .obb regardless of file type). It's a fairly simple archive file format containing ~4900 data files. The data inside is far too repetitive to be compressed or encrypted (which surprises me, nowadays, if this is the exact same data that was distributed in the Android release - which seems likely - they didn't even apply LZ4 or something similar? Guess they don't care about wasting space on customer's phones.)

The archive doesn't appear to contain filenames: they may be encoded into the exe; or possibly that's the (only!) part of the archive that's obfuscated in some way.

Many of the data files have suspiciously regular file sizes; just over 512KB, you say? Sounds an awful lot like a 256x512x32bit graphic, to me (also not compressed at all - not even PNG?!).

In fact, feeding those files into a raw image viewer gives us data like:

ff6a.png


Looks an awful lot like some world map data, doesn't it? Albeit the colours are screwed, so it's not stored in straight RGBA.

Disappointingly it looks like a lot of the game data (all the dialogue?) is encoded into the EXE file, not stored in the OBB archive. That's a little annoying.

More to follow, presumably ;)
 
Last edited:
Awesome, ive been fiddling around with a debugger and found some strings

fWDJHw1.png

ieDrcSm.png
 
Last edited:
Interestingly, despite those filenames referencing .gz data, none of the data files in the obb archive (or any data within the exe) appears to have a valid .gz header.

Doesn't mean they haven't used gzip anywhere, but if they have, it's not using standard headers, or is otherwise obfuscated.
 
Hey guys, just signed up to this forum to talk to you about this, as you guys seem to be the farthest along with this.

A few days ago I was bored and already wrote a program to properly extract the files from the .obb file in the steam version of FFVI. (https://twitter.com/rivernyxx/status/677714786541510656)
To confirm some suspicions earlier in this thread:
* The filenames are hashed in the archive, and have actual filenames hard-coded in the .exe file (which then get hashed at runtime in order to look up the file required in the .obb file).
* The file data is encrypted. No idea if it's a known encryption type or not (as I'm not learned in that sorta thing) but I determined how to decrypt it properly. Once decrypted, there are proper gzip headers on the associated files.

The only things I have left to do are:
* Finish creating a file list for the archive (it seems to have most of the same files as the iOS version, as I understand -- does anybody have a complete file list for that? I've only found partial lists online, mostly graphics..) -- I'm missing filenames for about 300-350 entries.
* The .bmp/.tga files seem to be stored in a strange format (the same format even?), that I've seen somebody online mention the solved "thanks to the information on the Final Fantasy Wiki", however I've not found any such information >_<;; However, other file types that I've checked seem fine, such as .png files.
* Since I know how to hash the filenames and decrypt the data, I can quite possibly repackage any mods as well, I just have to write the code. I'll get to that last.
 
I had a folder with all the extracted files of the android version extracted but i deleted it a few days ago... ill try to find them again on the web
 
Sounds like you already got the most important bits worked out - I won't spend any time trying to decode the archive, then, since you've already managed it!
 
So sprite modding will be possible right ? but what about music modding ?

BTW i didn´t decode anything i got all of that from vg-resources
 
Yeah, I was talking about nyxojaele - sounds like they've managed to decode pretty much everything important about the obb file.
 
Yeah, the .obb file is 100% figured out, technically. The filenames that are associated with the hashes in the .obb file aren't all figured out yet tho. However the actual files _inside_ it may or may not be, heh ;p
 
Last edited:
I'm immensely glad to see progress being made on this. Hopefully repacking the files will be as easy as extracting them was, but as Black Chocobo has shown with its handling of PS3 saves, this is absolutely not always the case.
 
Status
Not open for further replies.
Back
Top