0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 06:30:43 -05:00

507 Commits

Author SHA1 Message Date
Merijn Hendriks
245f21c3d8 Improve bundle documentation (!101)
Most of this code was (re-)written in 0.12.9, almost 3 years ago.
Current understanding of how it worked was limited, so I went back and broke it until I understood it properly.

I added comments where I could and slightly altered the logic of `GetManifestJson` to make it easier to read.

Regarding removal of `GetManifestBundle`: you can't. While `Windows.json` contains most of the bundle info, some info (like `Doge`) resides outside of this. Removing `GetManifestBundle` results in the game failing to load.

Reviewed-on: SPT-AKI/Modules#101
Co-authored-by: Merijn Hendriks <merijn.d.hendriks@gmail.com>
Co-committed-by: Merijn Hendriks <merijn.d.hendriks@gmail.com>
2024-03-25 09:53:20 +00:00
Dev
f3df1e319c Update mappings 2024-03-24 17:40:52 +00:00
701f676085 Decapitalize BepInEx sub-directories (!100)
This reverts changes to the directory paths made in commit: c7bc0b05143c7062a0c70150cb872b5070f4859c

fixes [SPT-AKI/Issues#588](SPT-AKI/Issues#588)

Co-authored-by: MadByte <madbyte@tuta.io>
Reviewed-on: SPT-AKI/Modules#100
Co-authored-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
Co-committed-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
2024-03-24 09:09:43 +00:00
b327096980 Ensure we only alter Playerscavs IsAi Data 2024-03-23 12:48:51 +00:00
44748dc0a6 Fix mounted Turrets causing errors 2024-03-23 11:29:42 +00:00
3aa514a5e8 Reworked ArmorDamageCounterPatch 2024-03-22 20:25:38 +00:00
a77fc7f036 Changed the way we count shot ammo. Fixed NRE when player is null when trying to calculate armor damage 2024-03-22 18:45:49 +00:00
c29589768d Add Patches to add extra data to end of raid screen 2024-03-21 15:21:57 +00:00
3885b9e585 Fix ref 2024-03-21 11:10:37 +00:00
df2df290f4 Update refs with updated remapping 2024-03-21 11:09:00 +00:00
Dev
831bf36327 Add additional remappings 2024-03-21 11:05:48 +00:00
37ae603982 Start of adding missing stats 2024-03-21 11:04:53 +00:00
Dev
065c446e83 Update patch to skip doing changes if group owner is player - same as client 2024-03-20 17:38:32 +00:00
497e581c1e Create an exfil dumper patch for aki-debugging (!98)
This patch can be used to dump the data contained in the `allExtracts.json` files in the server locations database. When enabled, load into each map sequentially, and the extract data will be dumped to `ExfilDumps/{mapName}/allExtracts.json`, ready to be copy/pasted into the server `database/locations` directory

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#98
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-03-20 09:45:46 +00:00
8443e6b5d3 Update Description of command 2024-03-19 12:54:17 +00:00
f43e907193 Fix patch looking for wrong Wildspawntype enum 2024-03-19 12:15:56 +00:00
b769a87b89 Add comment to explain expected behavior. 2024-03-19 11:18:34 +00:00
9d8c285094 Add a console command to reload client/profile 2024-03-19 09:43:17 +00:00
Dev
00f0d786f9 Add additional class remappings
Update readme to include additional info on powershell install
2024-03-18 16:37:54 +00:00
7650b751ae Last small optimization. 2024-03-17 18:18:03 +00:00
aa786f44a0 Optimization of getting mines and filtering them to only enable/disable lightkeepers mines. 2024-03-17 16:43:44 +00:00
b1e1841311 Small optimization 2024-03-17 16:00:40 +00:00
de325c8b0d remove CulistsPriestEvent and RavangeZryachiyEvent from running IsEnemyPatch Letting them use BSG logic instead.
Added a patch to handle Closing all extracts but 1 for when cultist ritual succeeds in halloween event.
Halloween Event doesnt seem to work well when map has newspawn system enabled. I think bots are getting stuck getting loaded. causing delayed spawns of cultists.
2024-03-17 12:47:59 +00:00
0afc0dd93b Fix nlog string formatting removing useful information, and throwing an exception in certain situations (!97)
Fixes exception thrown when trace logging is enabled and you accept a quest

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#97
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-03-17 08:56:30 +00:00
Cj
293fa8d90c Enable BSG logging (!96)
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>
2024-03-16 21:04:00 +00:00
Dev
540bf9fb59 Fix mapping error 2024-03-15 21:46:58 +00:00
Dev
690ad0faa6 Fix mapping issue 2024-03-15 16:47:11 +00:00
Dev
4877939224 Update mappings 2024-03-15 15:17:04 +00:00
Dev
eec51e84f1 Exit application when a patch fails 2024-03-14 17:18:42 +00:00
99313c9cc0 Update RagfairFeePatch 2024-03-14 17:13:35 +00:00
Dev
27c0d3f0ae Added patch failure handling, thanks to Drakia 2024-03-14 17:08:20 +00:00
Dev
fa423cb9be Update for 29197 2024-03-14 11:23:51 +00:00
Cj
73db17ea78 Show mods loaded in cool debug message (!95)
needs merged with: SPT-AKI/Server#258

Shows if mods are loaded in the cool debug message, will show if either server mods or client mods are present.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#95
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-03-11 22:02:45 +00:00
6a77131249 Resolve an issue where Release builds of the server caused exceptions in the client (!94)
Some code cleanup and refactoring

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#94
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-03-11 08:44:50 +00:00
059334d0cd Fix the BTR turretview bot being visible (!92)
Rewrite the BTRTurretView attach patch, so we no longer need the BotInit patch

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#92
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-03-10 09:43:15 +00:00
f1a7a0cb99 Fix LightKeeper tasks not progressing correctly (!91)
To handle in-raid LK task unlocking, when a task is switched from AvailableAfter to Locked, instead switch it to AvailableForStart

This handles the lack of `status` values for tasks, where the target state would normally be read from, without risking breaking non-LK tasks by adding that data.

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#91
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-03-09 22:44:56 +00:00
Cj
b87b569ece Implement getting data from server, and showing release notes (!90)
Needs merged with: SPT-AKI/Server#249

Added
- Moved beta disclaimer text to the server
- Moved `PreventClientModsPatch` to AKI.Debugging as it makes more sense here after this PR. People who need to know, know why.
- Ability to show a release note summary to users in-game
- Cool debug message only shows build hash.

Instructions for testing
- Since I opted to store properties in the registry, its not as straight forward as deleting a file. (Thanks Drakia for the suggestion). So in order to test you need to open up regedit and navigate to `Computer\HKEY_CURRENT_USER\Software\Battlestate Games\EscapeFromTarkov` inside of that directory are 3 values stored in relation to this PR.

`SPT_AcceptedBETerms` - `REG_DWORD` that stores a value of 0 or 1
`SPT_ShownReleaseNotes` - `REG_DWORD` that stores a value of 0 or 1
`SPT_Version` - `REG_BINARY` that stores a binary converted string.

In order to reset after first run for a second test, you just delete all 3 entries.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#90
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-03-07 22:10:07 +00:00
Dev
454cea79f8 Show commit hash in friendly debug message 2024-03-07 13:44:20 +00:00
Cj
9f8767bd0d Bleeding edge message window (!89)
This PR introduces a message to be shown to users when first running bleeding edge, or if the version has changed since last run.

the SPT version string is stored in the registry and checked against on each subsequent run.

In the future this can be expanded to displaying the patch notes if we wish, but for now its just a generic message.

For questions, ping me on discord.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#89
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-03-06 22:58:57 +00:00
Dev
1e68f3cd6f Reduce verbosity of debug message on screen to just what's necessary 2024-03-06 10:00:25 +00:00
Cj
20ce9a9a9d Fix watermark bounds going off the screen (!88)
Fixes the screen bounds for the water mark, it now no longer clips off the screen. It was really bothering me...

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#88
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-03-06 08:49:49 +00:00
f614378ff6
Build Quotes & Specify Encoding of License 2024-03-05 22:21:53 -05:00
Dev
6334a20bcf Change debug text 2024-03-05 22:09:38 +00:00
Dev
26263cb848 Cache version result in patch 2024-03-05 20:28:51 +00:00
Dev
a4fd3aa42c Remove dollar sign 2024-03-05 20:25:38 +00:00
Dev
f781071bf2 Add additional debug patch 2024-03-05 20:21:31 +00:00
2b3bf8864a Converts Build Script to PowerShell (!87)
In a push to automate project builds, this changes the build script from a BAT script to a PowerShell script. This is a cross-platform solution that should allow us to build the project within the `mcr.microsoft.com/dotnet/sdk:6.0` docker image (Debian).

Also updates the README to list PowerShell 7 as a dependency as the `pwsh`  tool is not available in Windows PowerShell (v5).

Co-authored-by: Refringe <brownelltyler@gmail.com>
Reviewed-on: SPT-AKI/Modules#87
Co-authored-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
Co-committed-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
2024-03-04 08:44:10 +00:00
Dev
1c2d88ad3a Made a number of classes public 2024-03-02 15:50:50 +00:00
2ff471e754 Remove GClass Refs for cultist amulet patch 2024-02-28 20:34:15 +00:00
Dev
19fe726cea Add comment 2024-02-27 19:53:29 +00:00