Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt TFO data #11

Open
taskinoz opened this issue Aug 19, 2020 · 11 comments
Open

Decrypt TFO data #11

taskinoz opened this issue Aug 19, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@taskinoz
Copy link

taskinoz commented Aug 19, 2020

The only I can seem to get out of the TFO packs from p0358 are the sounds. The rest of the files like vmts, html, js, and mdl files all seem like they are still encrypted or are garbled

@L-Leite L-Leite added the enhancement New feature or request label Aug 20, 2020
@L-Leite L-Leite changed the title Cannot read extracted TFO Data Decrypt TFO data Aug 20, 2020
@taskinoz
Copy link
Author

Since the game is based on Titanfall 1 I can give you a sample of unencrypted and encrypted files from Titanfall Online
Titanfall Online
Ttianfall 1

@Droads2
Copy link

Droads2 commented Sep 6, 2020

Same problem with decompiling models, look like they encrypted too
Try with Crowbar 0.68
Here is sample of tf1 and tfo model
https://mega.nz/file/z4sVADBZ#_038i8iKnNcnns59o1ltNTzmET0YlhSz4xNO47ftU3A

@p0358
Copy link

p0358 commented Dec 30, 2020

My guess is that they might be compressed, and that can cause some issues here. I suppose original CSO2 didn't have compression, but Respawn introduced compression originally in Titanfall in their customed VPK format, with lzham. Some files that are obviously already compressed are normally excluded from that.
For instance original Titanfall had uncompressed wav audio. Whereas here in TFO, UnCSO2 is able to unpack sound ogg files just fine.
So that could be the case. But it also means that TFO devs forgot to exclude some extensions from this, like webm and png. Uncompressed ones include: ogg. vtf, bik.
Edit: Looks like I was wrong, and nothing is compressed. Just that some files are stored unencrypted. But UnCSO2 shows all files in the properties as unencrypted.

@tetTris11
Copy link

A user by the name of jnkangel on Reddit showed a picture of the Destroyer Titan model in Source FilmMaker. I asked them about it too which they replied that someone has figured out decrypting TFO's model format. I didn't ask anything on the specifics but it would seem some work is happening, could be worth following up on?

@obronca
Copy link

obronca commented Jun 5, 2021

sorry for bringing out the old case, but is there any progress in this ??

@taskinoz
Copy link
Author

taskinoz commented Jun 7, 2021

Yes and no, UnCSO2 can't fully decrypt TFO content but progress has been made elsewhere to dump the game assets

@UnforeseenOcean
Copy link

UnforeseenOcean commented Mar 27, 2022

I apologize for commenting on a very old issue.
I've tried this with the latest copy of TFO I could find (yeah, I had to torrent it), and basically the program gets stuck parsing the files, and all the files are garbled (even the text files are garbage data)
Has any progress been made?

Here are two example text files that are garbled:
intro_captions.txt
datarevision.txt

@p0358
Copy link

p0358 commented Mar 27, 2022

There is a fork of libuncso2 that allows reading TFO files correctly (most of the time at least): https://github.com/p0358/libuncso2

Since the artifacts in AppVeyor expired, I can link you the compiled libuncso2.dll file that's possible to replace in the latest UnCSO2 release from this repo (2.0.7): https://titanfall.top/libuncso2.dll

@UnforeseenOcean
Copy link

Thank you! I will give it a try.

@UnforeseenOcean
Copy link

Update: Apart from one file (\platform\shaders\fxc\vertexlit_and_unlit_generic_ps50.vcs) everything seems to be unpacking correctly. This one is identified as 3.51GB file.

@p0358
Copy link

p0358 commented Jun 30, 2022

Everything is weird about that file tbh, I'm not sure what's going on with it, I tried looking back then but fruitlessly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants