TitanFall VPKTool 3.3 Update

3.3 Update

My Plans

Well it’s been a while since I last touched Titanfall, the hype had ended for me and I didn’t really play the game anymore. The fact that it didn’t even run after the first dlc patch caused me to uninstall it and forget. However recently seeing the maps in the latest dlc has sort of sparked my interest into playing it again and attempting to mod the game. If I can recall the VPKRepacker which comes with the VPKTool works however it’s a pain in the ass to use because you have to extract everything edit stuff and then repack it all again which takes like an hour in total for both operations so I made plans for making a new repacker which operates in a different way which should be easier and more feasible to use. That brings me to my next idea, a MOD manager for Titanfall. Respawn haven’t really said anything regarding mods after Vincent posted on twitter they would “evaluate” the possibility for modding the game after release, well the sad truth is they don’t wish to support modding. Aw well doesn’t mean I can’t write tools to mod the game now which is why I’m going to write a mod manager that people can use to make mods for the game and then ship them around in tfm files (titanfall mod) for everyone else to use. The dorito mod isn’t dead ok  :-D

What else is to come?

dlc_attract

Dam those new maps look sexy in TitanFall. I plan to finish up the bpk section of the vpk tool which will allow you to open up the xbox360 version of Titanfall ported over by bluepoint games. Not sure what we will find in there but I’m mainly doing it for the maps since I believe the bsps are close to what Portal2 had. Speaking of BSPs I plan on writing something for those too collaborating info with ata4 the author of bspsrc. More info about this in a later post.

The 3.3 Update

As for this update version 3.3 the main highlight would be the audio patcher upgrade. Since Respawn ship vpks with headerless audio files previously the tool would do a sort of hacky way of detecting the bitrate/samplerate and channels each audio wav used. That method isn’t exactly great because it relies on the sounds being present in the cache file. However I took another look at this problem and came up with a better solution which I believe is the right one.

CAM

So these CAM files seemed interesting that were in the same directory as the vpks  and the audio_installer executable which seemed to run on every update/install. After taking a look at the audio_installer’s executable I managed to reverse engineer the process used to install audio for titanfall. Long story short they basically ship compressed audio files which come inside the vpks and once the audio_installer runs it takes these audio files strips the header off them unpacks the raw audio and places it back into the vpks. The audio headers are read from these CAM files which i believe stands for Compressed Audio Map whilst the audio content is read directly from the vpks. I haven’t reversed the cam entries entirely as I don’t need the other info but here is what the structure looks like.

Changelog for 3.3

Download

Update

If you have the application currently installed it should prompt a new version if available for update if not you can manually check for updates through the Help menu. ckupdate

 

Posted in Main | Leave a comment

TopKek MDL Sorter

MDLS

Basically sorts mdl files (source studio model data) into their respective filepaths. For example if you have an mdl Character_Brian.mdl which was compiled to be located in.

It will basically make that folder structure for you and place the mdl file along with its trailing .dx80 .dx90 .vca files there. This is extremely useful for games like Vindictus

I forgot to make a blog post about this, I guess at the time It wasn’t really relevant since someone requested it and I didn’t think it was that useful.

Download

Posted in Main | Leave a comment

Watch_Dogs Modding/Toolkit WIP

Watch Dogs Research

So not to long ago watch_dogs came out, the game runs pretty poorly due to its unoptimized nature and Ubisoft did state they would release a patch for optimization however I’ve already beaten the game so I don’t think It really concerns me anymore. That being said I’d recommend it, has a nice single-player campaign.

So lets talk about watch_dogs modding/reverse engineering, firstly to give a little back-story info the engine it runs on titled the Disrupt engine it’s an engine derived and created from the previous Dunia Engine (Farcry3) by Ubisoft Montreal. Some aspects are the same as Dunia which helped in reversing the game assets however there are significant changes. Dunia was reversed originaly by others, one person I know who has worked on this engine’s structure or I should say has worked on reversing Farcry3 is Rick. You can find his research and info here and on Xentax. Watch_Dogs uses a sort of bizarre way of storing its assets, they are stored inside these .fat/dat archives heres what the structure looks like.

At a first glance it looks pretty straight forward however the FATEntry structure needs to be modified a bit to work. Some pseudo code:

Alright the rest is easy, the game uses Xmem compression which most xbox360 games use. Just download the library dll and use its export functions.

How about the geometry/textures ???!

Lets talk about textures first, very easy and I think the same as farcry3. They are stored in xbt files which are basically containers for DDS(DirectDraw Surface) textures.

Heres two quick tools I created to convert/view them

XBT2DDS.exe

Basically exports the dds inside the xbt container.

http://cra0kalo.com/public/xbt2dds.zip

gif_wdt

 

XBTView.exe

Extracts the dds to your temp folder and opens it with the Nvidia WTV, once the WTV window is closed the program disposes the extracted texture and WTV from temp.

http://cra0kalo.com/public/xbtview.zip

wd_xbtview

 

As for geometry I’ll talk about it in another post heres a video to tease you for now  :-D

Posted in Main | Tagged , , | Leave a comment

Natural Selection 2 MeshTool

Not sure what the devs were thinking when they engineered the model format for this game. Their vertex buffer structure is 92 bytes long which could of easily been around 40 if they actually utilized common compression techniques like compressing the UVs into halffloats or store bone indicies as bytes instead of 32bit integers. Anyway I don’t think anyone cares thats reading this so I’ll stop bitching.

 

Whats Included?

  • meshtool.exe
  • XY_Fix.ms
  • Mesh2Obj.bat
  • Mesh2Smd.bat
  • (bunch of txt files)

Instructions:

I’ve included some batch files to help ease the use since this is a command line tool it may be difficult for some people that aren’t very competent with computers, well actually I have no idea why you would even use this tool if you have no clue on how to use command line applications.

If you want the output to be an obj mesh just drag and drop a .model file onto the Mesh2Obj.bat it should then create an output folder with the resulting mesh. Same applies for the Mesh2Smd.bat just dragdrop onto it.

For more info on the usage of the tool just run the exe and it will give you the usage commands I don’t go through it because the Readme.txt has all the info you need.

As for the Maxscript file XY_Fix.ms it can be used with 3DS Max to fix the rotation of the models if you’re exporting to SMD since it defaults to the Maya method (Y is Up/Down). Though please note some models may break if bones are not linked properly.

Lastly I’d like to thank chrrox for his help with this.

Here is the tool:

NS2_MeshToolV1.zip

 

 

Posted in Main | Tagged , , , , , , , | Leave a comment

The Scary TCP32764 backdoor

I won’t say too much about this backdoor, it basically happens on your router/gateway which accepts a TCP connection on port 32764 Eloi Vanderbeken @elvanderb found this vulnerability last year in December and even though Netgear and Dlink have stated it’s *patched* they actually just disabled it.

I’ve made a small .NET tool which checks to see if you actually are vulnerable to this backdoor the source code can be found on github for those paranoid people -_-

 

Download:

http://cra0kalo.com/public/TCP32764_Tool.zip

http://github.com/cra0kalo/TCP32764

Further reading and resources:

http://github.com/elvanderb/TCP-32764

http://www.dropbox.com/s/e26s0udwf58idbh/TCP32764_backdoor_again.pdf

 

Posted in Main | Tagged , , , , , | Leave a comment

TitanFall VPKTool 3.0 Release

Firstly let me say mission accomplished :D

It’s been a while but here is 3.0 of the titanfall tool now supports repacking.

See changelog.txt for a full list of updates but the main ones are:

  • Added repacking support
  • Fixed audio export issues
  • Portable exe

Downloads:

Download Portable

Download Installer

Enjoy and happy modding :)

Cra0kalo

Posted in Main | Tagged , , | Leave a comment

TitanFall VPK Tool Public Beta!

OMG HERE IT IS!

DOWNLOAD!

Posted in Main | Leave a comment

TitanFall VPKTool Information

So the beta’s nearly over and the game should be patched and fixed for a March release.

I’ve been working on getting extraction capabilities for the TitanFall VPK Tool to extract all those game assets. Alot of people have been asking, when are you releasing this? Along with Russian’s emailing me about getting the text localized for their country or something anyway basically here is whats going on.

  • VPK Tool extraction works now thanks and actually a shout-out to Vbitz and Zench for their help with this tool. 
  • Sound extraction is still iffy and I will need to look at that.
  • There are compatibility issues here and there especially the game’s VTF textures and MDL model formats
  • My tool still needs work here and there to fix up some UI glitches

So all in all I’ve decided to delay the update release to the launch date of the game itself. So Day1 of Titanfalls release should see the VPKTools Initial main release which will support extracting content only. Prior to the game’s release EA or Respawn may/may not change up the way the formats and data structures are stored depending on what happens (eg. titanfall content flying around in garry’s mod etc) not sure how they feel about it so to play it safe I’m not releasing anything to the public until the game’s release. This way I can brush up on the tool, maybe add support for repackaging, ZeqMacaw can work on crowbar support for decompiling the models and yeah everything should go smoothly. So that said I’ll be keeping twitter updated and this blog with pictures info etc, come around the first of March ill throw up a WIP thread on facepunch.

Look forward to it :D

Posted in Main | Tagged , , , , | Leave a comment

TitanFall VPK Tool

Well the beta is out and I won’t go back on my word :P

Before you complain read this!

-Supports viewing titanfall VPK content only!

Since the VPK format has changed and the actual vpk content stuff is either encrypted or compressed, for now its only viewing. I will post updates to facepunch/twitter/this blog so keep checking I guess.

Download:

http://cra0kalo.com/public/Titanfall_VPKTool2.zip

Posted in Misc | Tagged , , | Leave a comment

Disney INFINITY Model Extractor

Extracts mesh from .vbuf and .ibuf. Bone support in next release

Download

 

 

Posted in Main | Tagged | Leave a comment