mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Needs merged with: SPT-AKI/Server#262 Short story first: Last night I was poking around the code as I always do looking for the cause of an exception and got sick and tired of the generic bad exceptions we always work off of. So I fixed it. This allows us access to BSG's internal logging using Nlog. This is useful for everybody. Not just SPT dev's, but mod dev's alike. It can be enabled from `core.json` with the option to send the output to the server. Here's an example of the improvement, its huge. Bepinex console is the gerneric logging we always use, the editor behind it is the improved logging from Nlog. Its night and day. ![image](/attachments/491dd8b6-e89a-4809-b19e-c5906ab6989e) The levels are based off of Nlog ordinals where low is more logging, high is less. (Stupid I know, but what can you do) Verbosity is as follows: * In all cases, except off, better exceptions will be logged. * to see the logging output in your bepinex logs, make sure you have debug logging enabled in bepinex. * WARNING: trace-info logging will quickly create log files in the megabytes. * 0 - trace * 1 - debug * 2 - info * 3 - warn * 4 - error * 5 - fatal * 6 - off Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com> Reviewed-on: SPT-AKI/Modules#96 Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com> Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
Modules
BepInEx plugins to alter Escape From Tarkov's behaviour
Project | Function |
---|---|
Aki.Build | Build script |
Aki.Bundles | External bundle loader |
Aki.Common | Common utilities used across projects |
Aki.Core | Required patches to start the game |
Aki.Custom | SPT-AKI enhancements to EFT |
Aki.Debugging | Debug utilities (disabled in release builds) |
Aki.Reflection | Reflection utilities used across the project |
Aki.SinglePlayer | Simulating online game while offline |
Privacy
SPT is an open source project. Your commit credentials as author of a commit will be visible by anyone. Please make sure you understand this before submitting a PR. Feel free to use a "fake" username and email on your commits by using the following commands:
git config --local user.name "USERNAME"
git config --local user.email "USERNAME@SOMETHING.com"
Requirements
- Escape From Tarkov 29197
- Visual Studio Code -OR- Visual Studio 2022
- .NET 6 SDK
- PowerShell v7
Project Setup
Copy-paste Live EFT's EscapeFromTarkov_Data/Managed/
folder to into this project's Project/Shared/Managed/
folder
Build (VS Code)
- File > Open Workspace > Modules.code-workspace
- Terminal > Run Build Task...
- Copy contents of
/Build
into SPT game folder and overwrite
Build (VS 2022)
- Open solution
- Restore nuget packages
- Build solution
- Copy contents of
/Build
into SPT game folder and overwrite
Game Setup
- Copy Live EFT files into a separate directory (from now on this will be referred to as the "SPT directory")
- Download BepInEx 5.4.22 x64 (BepInEx Releases - GitHub)
- Extract contents of the BepInEx zip into the root SPT directory
- Build Modules, Server and Launcher
- Copy the contents of each project's
Build
folder into the root SPT directory - (Optional, but recommended) Download the BepInEx5 version of ConfigurationManager (ConfigurationManager Releases - GitHub) and extract the contents of the zip into the root SPT directory. The default keybind for opening the menu will be
F1
- (Optional) Edit the BepInEx config (
\BepInEx\config\BepInEx.cfg
) and appendDebug
to theLogLevels
setting. Example:LogLevels = Fatal, Error, Warning, Message, Info, Debug
Description
Languages
C#
99.5%
PowerShell
0.5%