GoW Lua Decompiler
EDIT:
ALL LUA FILES »
[Link]
Below I've attached the tool I've been working on for 1-2 days now.
How to use:
1) Type in or copy-paste the path of the game path in the first input field (labeled 1).
2) Type in or copy-paste the path to the folder where data is going to be extracted/decompiled to (labeled 2).
3) Click
Set button (labeled 3).
Two files are going to be created in the tool folder:
config.ini which is used by GoW Tool and
settings.ini used by this tool. Next time you open the tool, you won't have to set these paths.
4) Now drag and drop a .wad file from game_folder\exec\wad\pc_le (e.g.: G:\SteamLibrary\steamapps\common\GodOfWar\exec\wad\pc_le). Check the
extracted folder in the tool folder for the results. The hierarchy is as follows:
- wad_filename\lua_filepath\bin_filename_as_lua_filename
Why like this? To know from which WAD file you've extracted which Lua file, as well as what's the hierarchy the Lua file's a part of (which original folder path the developers intended the Lua file to be in). Why use the bin filename as lua filename? Cuz there would be a lot of duplicate files (I am now aware these files are real duplicates, as upon checking them up, they contain the same information and have the exact matching MD5 hash).
The tool will do what I have mentioned at the end of
this post, in case you're wondering.
With the help of this tool
cfemen and I managed to extract all Lua files from the WAD data files. Link is both at the top of this page and in the first post of this topic.
Credits:
- HitmanHimself - for the GoW Tool capable of extracting WAD files
- Hans Wessels - for the unluac (5.1-5.4) Java decompiler
- Ovidiu Cucu - for the FindFiles function