RedMser / ChatLane

Chat wheel customization tool for Deadlock
MIT License
1 stars 2 forks source link
chat-wheel cli communications customization deadlock gui modding tool valve voice-lines

Logo

ChatLane

A tool to customize the chat wheel of Valve's game Deadlock:

Left: A screenshot of the GUI. Right: Chat wheel in-game.

Disclaimer

Installation and Usage

To get ChatLane, download the latest release's zip archive.

Extract everything somewhere, then run the ChatLane-GUI.exe file.

Installation instruction step 1

On the left, you have an overview of all voice commands in the game. Those with a checkmark are hidden by default, for various reasons (see the corresponding headers in the list for more info). You can enable them so that they show up in the "Chat Wheel" settings of Deadlock as additional options.

Installation instruction step 2

On the right you can define custom menus. Create a new menu, give it a name and icon, then you can decide what voice lines should be inside. Use drag and drop from the left list onto the right box to assign voice lines to the menu. You can also use drag and drop to re-arrange the elements inside the list. When in-game, you will see the new custom menus you've created at the bottom of the "Chat Wheel" settings.

Installation instruction step 3

In order to be able to see your changes, you must set up your Deadlock for modding.

Click here to learn how to install add-ons for Deadlock. - Open the game folder (right-click on the game in Steam -> Manage -> Browse local files). - Go to `game/citadel` and open `gameinfo.gi` in a text editor. - Near the top of the file should be a block called `SearchPaths`. Replace it so that it looks like this: ``` SearchPaths { Game citadel/addons Mod citadel Write citadel Game citadel Write core Mod core Game core } ``` Note that you will have to do this step every time a major patch for the game comes out. - Still in the `game/citadel` folder, create a new folder called `addons` (if it does not exist yet). You can now install add-ons for Deadlock by placing `pakXX_dir.vpk` files into the `addons` folder. The `XX` numbers usually don't matter, as long as you start with `02` and keep counting up for each new add-on you install.

Once done, ChatLane can directly save pakXX_dir.vpk files without any intermediate steps! Just place it in the addons folder and you're done.

Installation instruction step 4

Open the game's settings and go to the Chat Wheel tab. This should now feature your new custom menus at the bottom, as well as any hidden voice commands you've decided to enable.

If you later want to edit your config, you can simply load the VPK file again, do your changes, then save and overwrite it.

To uninstall the add-on, you can rename or delete the VPK file. You MUST also enter the chat wheel settings and unbind any custom entries! Failing to do so will cause the game to crash when opening the chat wheel.

Known bugs and limitations

Entries in this list can not be fixed easily, due to how the chat wheel system of Deadlock works. The list will be updated as Valve fixes them.

For any other bugs, it's either an issue with ChatLane, or a new game update broke the add-on. In either case, feel free to open an issue so that we can figure it out!

Technical info

Read on for all those developers, contributors and reverse-engineers among you.

Repository structure

Building

Only Windows builds are supported, since that is all I currently have access to. Contributions are welcome, and I will try my best to help with any issues encountered!

The script tools/prepare_build.ps1 prepares all projects and builds them in the same way as the release zip archives. The result can be found in the build folder which will be generated in the repository root.

If you only wish to compile a part of the project (e.g. just the CLI or just the GUI), look inside the prepare_build script.

CLI

You will need .NET 8 SDK installed. No further preparation is needed.

GUI

You will need to place Godot executables so they can be discovered by the tooling, like so:

ChatLane
  GUI
    bin
      windows
        executables
          godot.windows.editor.x86_64.console.exe
          godot.windows.editor.x86_64.exe
          godot.windows.template_release.x86_64.console.exe
          godot.windows.template_release.x86_64.exe

Download the custom Godot 4.4 build that was used for this. It relies on this pending PR as well as some minor bug fixes [1][2]. When using official 4.4 builds instead, you may be able to circumvent the errors caused by the unmerged PR by replacing tmp:// paths in the project.

Additionally, a build profile was used to reduce the export template file size slightly:

scons target=template_release build_profile="GUI/GUIdot.build"

Troubleshooting

Third-Party