- 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 [Link].
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:
- Ekey for the ability to extract Far Cry 5 files from the .dats using .fats.
- Hans Wessels for the unluac Java decompiler (link: [Link]).
- Ovidiu Cucu for his last post in this thread: [Link].
BIG NOTE:
You need Java RE installed for the decompiler to work! Don't say I didn't tell you so! (link: [Link] - - at the time of the post, Java SE Runtime Environment 8u162)
Report any bugs and enjoy :p