Add dev setup

This commit is contained in:
SPT-dev 2023-03-02 21:09:52 -05:00
parent 143b5ac97e
commit 745b3f4424
3 changed files with 112 additions and 12 deletions

View File

@ -1,5 +1,7 @@
# Dumping game data from Escape From Tarkov
By Senko-san, 20/11/2020
## Preface
This guide covers everything you need to know to dump all the data you need from Escape From Tarkov.
@ -20,6 +22,14 @@ To be specific, we make the checks of battleye and certificate checking always r
We also add logic for saving received data from the server so we won't require addional tools for packet capturing.
We use the "swap exploit" by quickly replacing the assembly when the game starts.
## Legenda
```markdown
**path** **what** | **example**
------------ | ----------------------------- | ----------------------
`%gamedir%` | Escape From Tarkov (Live) | `C:/games/EFT (Live)`
```
## Requirements
- Escape From Tarkov (Live)
@ -29,44 +39,44 @@ We use the "swap exploit" by quickly replacing the assembly when the game starts
## 1. Assembly deobfuscation
1. Go to `<gamedir>/EscapeFromTarkov_Data/Managed/`
1. Go to `%gamedir%/EscapeFromTarkov_Data/Managed/`
2. Copy-paste `Assembly-CSharp.dll` to your de4dot folder
3. Drag `Assembly-CSharp.dll` on top of `de4ot-x64.exe`
4. Open `Assembly-CSharp-cleaned.dll` from the de4dot folder in dnSpy
5. Find the deobfuscation method (see appendix 1.1)
6. Run the specialized cleaning command using the token from the deobfuscation method (see appendix 1.2)
7. Cut-paste `Assembly-CSharp-cleaned-cleaned.dll` into `<gamedir>/EscapeFromTarkov_Data/Managed/`
7. Cut-paste `Assembly-CSharp-cleaned-cleaned.dll` into `%gamedir%/EscapeFromTarkov_Data/Managed/`
8. Open `Assembly-CSharp-cleaned-cleaned.dll` from Managed in dnSpy
9. dnSpy > File > Save Module
## 2. Create dumper
1. Create `<gamedir>/EscapeFromTarkov_Data/Managed/backup/`
2. Copy-paste `Assembly-CSharp.dll` to `<gamedir>/EscapeFromTarkov_Data/Managed/backup/`
1. Create `%gamedir%/EscapeFromTarkov_Data/Managed/backup/`
2. Copy-paste `Assembly-CSharp.dll` to `%gamedir%/EscapeFromTarkov_Data/Managed/backup/`
3. Rename `Assembly-CSharp.dll` in backup to `Assembly-CSharp.dll.bak`
4. Open `Assembly-CSharp-cleaned-cleaned.dll` from Managed in dnSpy
5. Apply dumper patch (see appendix 1.3)
6. Apply ssl patch (see appendix 1.4)
7. Apply battleye patch (see appendix 1.5)
8. dnSpy > File > Save Module
9. Cut-paste `Assembly-CSharp-cleaned-cleaned.dll` to `<gamedir>/EscapeFromTarkov_Data/Managed/backup/`
9. Cut-paste `Assembly-CSharp-cleaned-cleaned.dll` to `%gamedir%/EscapeFromTarkov_Data/Managed/backup/`
10. Rename `Assembly-CSharp-cleaned-cleaned.dll` in backup to `Assembly-CSharp.dll`
## 3. Dumping server data
1. Open Battlestate Games Launcher
2. Battlestate Games Launcher > settings > close launcher when game starts
3. Copy-paste (wait when prompted to override) `Assembly-CSharp.dll` from backup into `<gamedir>/EscapeFromTarkov_Data/Managed/`
3. Copy-paste (wait when prompted to override) `Assembly-CSharp.dll` from backup into `%gamedir%/EscapeFromTarkov_Data/Managed/`
4. Start the game
5. As soon as the launcher closes, override the file
6. When you reached the main menu, the folder `<gamedir>/HTTP_DATA/` will appear
6. When you reached the main menu, the folder `%gamedir%/HTTP_DATA/` will appear
7. Dump the data you need (see appendix)
8. When the game closed, replace `Assembly-CSharp.dll` with `Assembly-CSharp.dll.bak`
## 4. Dumping asset data
1. Open AssetStudio
2. AssetStudio > File > Load File > `<gamedir>/EscapeFromTarkov_Data/sharedassets2.assets`
2. AssetStudio > File > Load File > `%gamedir%/EscapeFromTarkov_Data/sharedassets2.assets`
3. Switch from Scene Hierarchy to Asset List
4. AssetStudio > Filter Type > what you look for (example: `TextAsset`)
5. Select the map files you want (example: `bigmap2`, `RezervBase6`)

View File

@ -0,0 +1,94 @@
# Setup
By Senko-san, 20/11/2020
## Preface
This is for setting up the development environment, as well the projects themselves and build them.
This guide is by no means meant for beginners or those unfamilliar with the project.
It is hightly recommended to read the guide at least once before executing it.
...
## Legenda
```markdown
**path** **what** | **example**
------------ | ----------------------------- | ----------------------
`%gamedir%` | Escape From Tarkov (Live) | `C:/games/EFT (Live)`
`%akidir%` | Where AKI needs to be located | `C:/games/aki`
`%server%` | server project | `C:/projects/server`
`%launcher%` | launcher project | `C:/projects/launcher`
`%modules%` | modules project | `C:/projects/modules`
```
## Requirements
- Escape From Tarkov (Live)
- [Node 12.18.2](https://nodejs.org/download/release/v12.18.2/node-v12.18.2-x64.msi)
- [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16)
- [VSCodium](https://github.com/VSCodium/vscodium/releases/download/1.51.1/VSCodiumSetup-x64-1.49.1.exe)
- [Git](https://github.com/git-for-windows/git/releases/download/v2.29.2.windows.2/Git-2.29.2.2-64-bit.exe)
## 1. Development environment
### 1. Node
1. Install `npm package manager`
2. Uncheck `install chocolaty`
### 2. Visual Studio Build Tools
- Check `.NET desktop development`
- Select `Download all, then install`
### 3. VSCodium
- Check `Register VSCodium as an editor for supported file types`
- Check `Add to PATH`
### 4. Git
1. Check only `Associate .git* configuration with the default text editor`
2. `Use VSCodium`
3. `Git from the command line`
4. `Checkout windows-style`
5. `Use Windows' default console window`
6. `Default (fast-forward or merge)`
7. `Git Credential Manager`
8. Check only `Enable file system caching`
9. Leave unchecked `Enable experimental support`
## 2. Server
1. Open VSCodium
2. Clone Repository > `https://dev.offline-tarkov.com/SPT-AKI/Server.git`
3. Open `%server%/Server.code-workspace`
4. Terminal > Run Task... > NPM > install
5. Terminal > Run Build Task...
## 3. Launcher
1. Open VSCodium
2. Clone Repository > `https://dev.offline-tarkov.com/SPT-AKI/Launcher.git`
3. Open `%launcher%/Launcher.code-workspace`
4. Terminal > Run Build Task...
## 4. Modules
1. Open VSCodium
2. Clone Repository > `https://dev.offline-tarkov.com/SPT-AKI/Modules.git`
3. Open `%modules%/Modules.code-workspace`
4. Terminal > Run Build Task...
## 5. Game files
1. Copy-paste `%gamedir%` to `%akidir%`
2. Copy-paste `%server%/project/Server.exe` and `%server%/project/packages/` to `%akidir%`
3. Copy-paste `%launcher%/project/Build/Launcher.exe` and `%launcher%/project/Buiild/Launcher_data/` to `%akidir%`
4. Copy-paste `%modules%/project/Build/EscapeFromTarov_Data/` to `%akidir%`
## Conclusion
Well done, you've succesfully setup and build the development build.
What's next? Get started with contributing or modding.

View File

@ -54,10 +54,6 @@ Make sure you installed the files correctly.
## Other
### Getting the lastest version of SPT-AKI
Head over the [`#tutorials`](https://www.guilded.gg/senkospub/groups/B36wYEeD/channels/16291b64-bd22-4e1a-8af5-11f5e69fd9d8/docs) chan, on the [SPT-AKI's guilded server]((https://www.guilded.gg/senkospub)).
### Playing with friends / multiplayer
Play Escape From Tarkov (Live) [here](https://www.escapefromtarkov.com/preorder-page).