Thanks to smart people, we have the tools to decompile the source code for Warhammer 40,000: Darktide into readable Lua code.
These tools come with instructions, but lazy people (people) get annoyed at having to read two documents (oh the horror), so I just collated them into this page for convenience. Consequently, I don't cover every single option because that's more reading.
Because of my current setup, these instructions will be written from a Windows perspective. I'm assuming you are familiar with moving folders and files around, but I'll treat you like an idiot because that's how I like to be treated (wait what who said that).
.exe
files are in the same folder, likeDecompiling Folder
|
|---> limn.exe
|---> README.md
|---> luajit-decompiler-v2.exe
|---> luajit-decompiler-v2.pdb
cmd.exe
) or PowerShellcd "C:\Users\HadronGooner\Documents\Decompiling Folder"
out
folderlimn -i "C:\Program Files (x86)\Steam\steamapps\common\Warhammer 40,000 Darktide\bundle" lua
lua
means extract only lua files (the code); to include textures and the rest, use *
insteadlimn lua
and let it automatically find your game for youout
folder
output
folderluajit-decompiler-v2.exe out -m
.exe
files in the same folder, as written in step 1-m
means minimize changes, so it adds trailing commas and stuff (this doesn't really matter for us but it's how it's done in Aussiemoon's repository to share with us)The Darktide community hosts a copy of these in a GitHub repository, maintained by Aussiemoon. If you decompiled the code before Aussiemoon caught up to the latest patch, you can make a pull request (PR), if you have a GitHub account.
output
folder
-m
flag when you ran the decompiler!