Decompiling the Darktide Source Code

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).

Requirements

Instructions

  1. Extract limn and the decompiler to a folder, which I'll call "Decompiling Folder" from now on
    Decompiling Folder
     |
     |---> limn.exe
     |---> README.md
     |---> luajit-decompiler-v2.exe
     |---> luajit-decompiler-v2.pdb
    
  2. Open the command prompt (cmd.exe) or PowerShell
  3. (Optional) In the command prompt, move to the Decompiling Folder
  4. Run limn on your Darktide game folder, through the command prompt
  5. Run luajit-decompiler on the out folder
  6. You're done! Read the output with your method of choice

Uploading These Files

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.

  1. Fork the repository
  2. Clone your fork locally
  3. Replace the contents of your fork (besides the README) with the contents of the output folder
  4. Upload it with git
  5. Make a PR
    1. Compare across forks
    2. Select the main branch of your fork
    3. Fill out and submit the PR