An engine plugin for Warhammer 40,000 Darktide that implements peer-to-peer networking.
Find a file
Lucas Schwiderski 2c9ce46dd2
chore: Rework project structure
There likely won't be much need for multiple separate crates.
2023-05-26 23:42:01 +02:00
src chore: Rework project structure 2023-05-26 23:42:01 +02:00
stingray_sdk chore: Rework project structure 2023-05-26 23:42:01 +02:00
.fdignore feat: Implement cross-compiling to MSVC 2023-05-25 23:37:53 +02:00
.gitignore feat: Implement cross-compiling to MSVC 2023-05-25 23:37:53 +02:00
build.rs chore: Rework project structure 2023-05-26 23:42:01 +02:00
Cargo.lock chore: Rework project structure 2023-05-26 23:42:01 +02:00
Cargo.toml chore: Rework project structure 2023-05-26 23:42:01 +02:00
Justfile doc: Document cross compilation setup 2023-05-26 00:04:40 +02:00
LICENSE chore: Initialize reposoitory 2023-05-25 15:38:06 +02:00
README.adoc doc: Document cross compilation setup 2023-05-26 00:04:40 +02:00
rust-toolchain.toml feat: Implement cross-compiling to MSVC 2023-05-25 23:37:53 +02:00
rustfmt.toml feat: Implement cross-compiling to MSVC 2023-05-25 23:37:53 +02:00
stingray_sdk.h chore: Rework project structure 2023-05-26 23:42:01 +02:00

Darktide P2P

An engine plugin for Warhammer 40,000 Darktide that implements peer-to-peer networking.

Building

This assumes cross-compiling on a Linux build machine. If youre on Windows, youre on your own. Shouldnt be too difficult, youre on native build anyways.

Prerequisites

  • A reasonably recent version of LLVM, lld & Clang

    • A symlink clang-clclang in PATH

  • cURL

  • Wine

  • Rust nightly toolchain, MSVC target and rust-src:

    • rustup toolchain install nightly

    • rustup target add x86_64-pc-windows-msvc

    • rustup component add rust-src

Build

Youll need to download the MSVC libraries once (their license forbids redistribution, even in something like a Docker image).

With just, simply run just setup-msvc, otherwise run the corresponding commands from Justfile manually. This will download the current Visual Studio Build Tools and corresponding libraries and headers into ./msvc.

Then run just build, which runs cargo build with the necessary toolchain variables set (see top of Justfile).

The .dll in target/x86_64-pc-windows-msvc/debug can then be copied to the games binaries/plugins folder. Remember to rename it so it has the required _pluginw64_release.dll suffix.