Skip to content

Commit 062d2b7

Browse files
committed
add python code
1 parent fa8776e commit 062d2b7

8 files changed

Lines changed: 1183 additions & 16 deletions

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Test uv & Lint"
2+
3+
on:
4+
release:
5+
types: [created]
6+
pull_request:
7+
push:
8+
9+
jobs:
10+
test-uv:
11+
name: Test uv & Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v5
16+
- name: Install Python
17+
uses: actions/setup-python@v6
18+
with:
19+
python-version-file: ".python-version"
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v7
22+
- name: Install the project
23+
run: uv sync --locked --all-extras --dev
24+
- name: Run Ruff format
25+
run: uvx ruff format --check
26+
- name: Run Ruff lint
27+
run: uvx ruff check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,17 @@ Make sure to move dwmapi.dll to the UE4SS folder when updating UE4SS
1010

1111
UE4SS is licensed under MIT - https://github.com/UE4SS-RE/RE-UE4SS
1212

13-
## USMap Generation Concept
14-
15-
1. Loop every 1 minute check if Dark and Darker has an update
16-
2. Update Dark and Darker
17-
3. Run `bash copy_win64.sh` or python equivalent
18-
4. Run `bash start_tavern.sh` or python equivalent
19-
5. Loop every 5 seconds check if Mapping.usmap exists
20-
6. Run `bash kill_proton.sh` or python equivalent
21-
7. Go back to step 1
22-
2313
## Requirements
2414

15+
- A Linux environment (Tested on Ubuntu 24.04, but others will probably work)
16+
- A 2FA-enabled Steam account that owns Dark and Darker
2517
- Steam should be installed at `$HOME/.local/share/Steam/`
2618
- Dark and Darker should be installed at `$HOME/.local/share/Steam/steamapps/common/'Dark and Darker'`
27-
- Proton Experimental should be installed at `$HOME/.local/share/Steam/steamapps/common/Proton\ -\ Experimental/`
28-
- [uv](https://github.com/astral-sh/uv) should be installed
19+
- Proton Experimental should be installed at `$HOME/.local/share/Steam/steamapps/common/'Proton - Experimental'/`
20+
- [steamguard-cli](https://github.com/dyc3/steamguard-cli) should be installed, and credentials stored in `$HOME/.config/steamguard-cli/maFiles/`
21+
- [uv](https://github.com/astral-sh/uv) should be installed for a reliable environment
22+
- xvfb-run (`sudo apt install xorg xserver-xorg xvfb libx11-dev libxext-dev libxcursor-dev -y`)
23+
- bash
2924

3025
## Usage
3126

copy_win64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#! /bin/bash
2-
cp -rf ./UE4SS/* $HOME/.local/share/Steam/steamapps/common/'Dark and Darker'/DungeonCrawler/Binaries/Win64
2+
cp -rf ./UE4SS/. $HOME/.local/share/Steam/steamapps/common/'Dark and Darker'/DungeonCrawler/Binaries/Win64

example.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
STEAM_USERNAME='your_username_here'
2+
STEAM_PASSWORD='foobar'
3+
WEBHOOK_URL='https://discord.com/api/webhooks/1234567890/abcdef-123_foobar'

0 commit comments

Comments
 (0)