Far Cry 5 - Lua Cleaner/Decompiler

SunBeam

RCE Fanatics
Talents
Fearless Donors
Feb 4, 2018
743
394
63
#1
[ 15.04.2018 - First Release ]
  • What is this shit? Well, it's a tool designed to help you cleaning-up or decompiling extracted .lua files from Far Cry 5's .dat archives.

  • How do you extract the Lua files? Ekey posted a Far Cry 5 DAT extractor here.
You can find the various discussions and observations in the XeNTaX thread, starting with page 5 (or from the beginning, if interested in reading everything). From that point onward I was able to extract all Lua files from the various .dat archives and come up with the below listing, using the .dat names as folder names:



The tool is designed to work with drag-and-drops and accepts individual, multiple .lua files OR folders where Lua files reside (when dragging over a folder, itself and all sub-folders are scanned for .lua files). Lastly, there's a check-box at the bottom allowing the tool to do clean-up (if enabled). You may want to check the About button as well :p

The tool's result (be it a LUAC clean-up or Lua 5.1 decompile) is stored in the file with the .clean extension.

Now the example:
  • if you drag and drop a single .lua file over the GUI, this happens:

  • if you want the remnants gone (activityendgame.luadec, activityendgame.unluac) and activityendgame.clean renamed to activityendgame.lua, then tick the bottom checkbox:

  • lastly, if you want the tool to recursively do the above for all .lua files found in a folder/sub-folder/sub-folder... then go up one level and drag over the entire folder; you can do this with the root as well (my root is FC5_Lua; so if I dragged that, all found .lua files would be processed; yes, it takes a while):






Credits:

BIG NOTE:

You need Java RE installed for the decompiler to work! Don't say I didn't tell you so! (link: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html - - at the time of the post, Java SE Runtime Environment 8u162)

Report any bugs and enjoy :p
 

Attachments

Last edited:

Norway-_-1999

RCE Fanatics
Talents
Apr 5, 2018
9
3
3
#2
[ 15.04.2018 - First Release ]
  • What is this shit? Well, it's a tool designed to help you cleaning-up or decompiling extracted .lua files from Far Cry 5's .dat archives.

  • How do you extract the Lua files? Ekey posted a Far Cry 5 DAT extractor here.
You can find the various discussions and observations in the XeNTaX thread, starting with page 5 (or from the beginning, if interested in reading everything). From that point onward I was able to extract all Lua files from the various .dat archives and come up with the below listing, using the .dat names as folder names:



The tool is designed to work with drag-and-drops and accepts individual, multiple .lua files OR folders where Lua files reside (when dragging over a folder, itself and all sub-folders are scanned for .lua files). Lastly, there's a check-box at the bottom allowing the tool to do clean-up (if enabled). You may want to check the About button as well :p

The tool's result (be it a LUAC clean-up or Lua 5.1 decompile) is stored in the file with the .clean extension.

Now the example:
  • if you drag and drop a single .lua file over the GUI, this happens:

  • if you want the remnants gone (activityendgame.luadec, activityendgame.unluac) and activityendgame.clean renamed to activityendgame.lua, then tick the bottom checkbox:

  • lastly, if you want the tool to recursively do the above for all .lua files found in a folder/sub-folder/sub-folder... then go up one level and drag over the entire folder; you can do this with the root as well (my root is FC5_Lua; so if I dragged that, all found .lua files would be processed; yes, it takes a while):






Credits:

BIG NOTE:

You need Java RE installed for the decompiler to work! Don't say I didn't tell you so! (link: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html - - at the time of the post, Java SE Runtime Environment 8u162)

Report any bugs and enjoy :p
Nice work :D
Keep it up :)
 

SunBeam

RCE Fanatics
Talents
Fearless Donors
Feb 4, 2018
743
394
63
#3
And here you go, all Lua files from the various archives -> link (272 MB big, 5909 .lua files, 27.2MB compressed)
 

Csimbi

RCE Fanatics
Talents
Apr 29, 2017
101
22
18
#5
@ Sun, has it been improved since my post on Xentax?
Thanks!
 

SunBeam

RCE Fanatics
Talents
Fearless Donors
Feb 4, 2018
743
394
63
#6
I don't really understand. Main post says the cleaner/decompiler does what it does. For other types of files use Ekey's unpacker. I won't be creating any Tools to deal with other files, as I'm not interested.
 
Top Bottom