Far Cry 5 - Lua Cleaner/Decompiler

SunBeam

SunBeam

Administrator
Staff member
Administrator
Joined
Feb 4, 2018
Messages
3,482
[ 15.04.2018 - First Release ]<br />
  • <br />
  • 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.<br />
    <br />
    <br />
  • How do you extract the Lua files? Ekey posted a Far Cry 5 DAT extractor here.<br />
<br />
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:<br />
<br />
<br />
<br />
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<br />
<br />
The tool's result (be it a LUAC clean-up or Lua 5.1 decompile) is stored in the file with the .clean extension.<br />
<br />
Now the example:<br />
  • <br />
  • if you drag and drop a single .lua file over the GUI, this happens:<br />
<br />
<br />
  • <br />
  • if you want the remnants gone (activityendgame.luadec, activityendgame.unluac) and activityendgame.clean renamed to activityendgame.lua, then tick the bottom checkbox:<br />
<br />
<br />
  • <br />
  • 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):<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Credits:<br />
<br />
<br />
BIG NOTE:<br />
<br />
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)<br />
<br />
Report any bugs and enjoy :p
 
N

Norway-_-1999

RCE Fanatics
Talents
Joined
Apr 5, 2018
Messages
24
[ 15.04.2018 - First Release ]<br />
  • <br />
  • 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.<br />
    <br />
    <br />
  • How do you extract the Lua files? Ekey posted a Far Cry 5 DAT extractor here.<br />
<br />
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:<br />
<br />
<br />
<br />
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<br />
<br />
The tool's result (be it a LUAC clean-up or Lua 5.1 decompile) is stored in the file with the .clean extension.<br />
<br />
Now the example:<br />
  • <br />
  • if you drag and drop a single .lua file over the GUI, this happens:<br />
<br />
<br />
  • <br />
  • if you want the remnants gone (activityendgame.luadec, activityendgame.unluac) and activityendgame.clean renamed to activityendgame.lua, then tick the bottom checkbox:<br />
<br />
<br />
  • <br />
  • 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):<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Credits:<br />
<br />
<br />
BIG NOTE:<br />
<br />
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)<br />
<br />
Report any bugs and enjoy :p
<br />
Nice work :D<br />
Keep it up :)
 
SunBeam

SunBeam

Administrator
Staff member
Administrator
Joined
Feb 4, 2018
Messages
3,482
And here you go, all Lua files from the various archives -> link (272 MB big, 5909 .lua files, 27.2MB compressed)
 
Vee_

Vee_

Cat-alyzer
Fearless Donors
Joined
Mar 14, 2017
Messages
384
Csimbi

Csimbi

RCE Fanatics
Talents
Joined
Apr 29, 2017
Messages
393
@ Sun, has it been improved since my post on Xentax?<br />
Thanks!
 
SunBeam

SunBeam

Administrator
Staff member
Administrator
Joined
Feb 4, 2018
Messages
3,482
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