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

375 Commits

Author SHA1 Message Date
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
Dev
d9aff659ba Fix LoadOfflineRaidScreenForScav patch failing to find private field 2024-02-27 19:51:12 +00:00
Dev
0429799dea 28965 2024-02-27 18:57:49 +00:00
Dev
469591abfe 28875 2024-02-26 11:26:15 +00:00
f7ded0abf3 Add handling of trader service requirements (!86)
This is primarily handled by the server, but the client does have precautionary code in it

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#86
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-25 23:08:20 +00:00
Kaeno
9328c4c956 Add patch that removes Culists amulet when you kill a cultist. First pass at implementing this 2024-02-25 17:36:27 +00:00
a43ea41a75 CheckandaddEnemypatch now returns a bool. Set result to not include isAI Checks. Needs testing (!85)
Co-authored-by: Kaeno <e>
Reviewed-on: SPT-AKI/Modules#85
2024-02-22 16:57:57 +00:00
e1caef80dc Fix multiple NREs thrown in bot code (!84)
1) The called bot's enemy position is being passed to TryCall, instead of the calling bot's enemy position. This is both incorrect and can lead to an NRE if the called bot has no enemy. Fix by passing in the calling bot's enemy position

2) In the TryCall method, the caller's enemy is added to the called bot, however the code doesn't verify that it was added before accessing it in the `EnemyInfos` array. This can throw a missing key exception if the bot failed to add to the enemies list. Fix by making sure the enemy is added to the enemy list before executing TryCall

3) When a BotOwner is disposed, the CalledData is never properly cleaned up, resulting in a bot's OnEnemyAdd being triggered after the bot has been killed, this can throw an NRE. Fix by calling CalledData.SetOff before BotOwner.Dispose

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#84
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-22 09:13:09 +00:00
Kaeno
28e945a7dd Fix patch causing double quest progression 2024-02-16 20:49:44 +00:00
Kaeno
625442d2e3 Gets the value from server. No longer hard coded to 10 2024-02-16 16:14:11 +00:00
Kaeno
1759abd842 Make sure the patch only runs while ingame and on a scav 2024-02-16 15:49:18 +00:00
a798508ed1 default to release build, resolve issues with build script, works with VS, VSC, Rider, CLI 2024-02-16 11:22:04 +00:00
c7bc0b0514 Rework build process (!83)
Co-authored-by: CWXDEV <CWXDEV@outlook.com>
Reviewed-on: SPT-AKI/Modules#83
2024-02-16 10:13:58 +00:00
Dev
df840e5b2a Revert "28784 dll"
This reverts commit f26c771c24ac2a442b3f5a804b63508b27be418c.
2024-02-15 12:49:13 +00:00
Dev
f26c771c24 28784 dll 2024-02-15 12:46:10 +00:00
44e9f44f70 Fix error when BTR kills enemy (!82)
Fixes an NRE when the BTR kills an enemy while using cover fire service

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#82
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-15 08:56:02 +00:00
c8507fb600 Synchronize scav encyclopedia with PMC at raid start, and inspect any items in scav inventory (!81)
This makes SPT mimic live in how scav encyclopedia is handled

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#81
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-15 08:55:41 +00:00
Kaeno
6f78f23cde Make culists use original function when picking enemies so Cultist amulet from lightkeeper works 2024-02-13 19:15:54 +00:00
Dev
4f0dad24e7 Fixed incorrect traitor scav check 2024-02-13 12:49:02 +00:00
Kaeno
0564961c72 Make sure we are not trying to add ourselfs to our own enemy list. 2024-02-12 17:08:48 +00:00
Kaeno
42ec75f2eb Fix insurance screen not showing. 2024-02-12 14:21:41 +00:00
Kaeno
22b6bcb4f5 Fix for scavs not going straight into raid when pressing ready 2024-02-12 13:58:08 +00:00
a3684c8663 Profile is now on its own interface, added new interfaceType to patchConstants and fixed the two scav patches 2024-02-12 13:15:22 +00:00
Kaeno
c340023378 Some more fixes preventing scav raids from working also btr fix 2024-02-12 12:01:27 +00:00
Dev
87d9688ab2 Update class refs for new patch 2024-02-12 11:33:06 +00:00
Dev
e3abb5fe04 dll for 28744 2024-02-12 11:10:49 +00:00
d08754fb61 Work towards implementing LK services (!79)
- Move clearing trader service data to raid end instead of as part of BTR Manager
- Fix data type for TraderServices ItemsToPay property
- Add ItemsToReceive property to TraderServices (Used for LK amulet)
- Don't throw NRE when nothing is bound to OnTraderServicePurchased

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#79
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-12 09:22:45 +00:00
Dev
5622e05b13 Add drugs to non-FiR pocket list 2024-02-11 11:56:19 +00:00
Dev
663c5b1460 Small optimisation to PmcFoundInRaidEquipment 2024-02-11 11:47:44 +00:00
Dev
e5c47ab5e9 Don't add FiR to injectors in PMC pockets 2024-02-11 11:16:44 +00:00
Dev
761d6c339d Add patch to make some player scavs hostile to player
Refactored AIHelpers.BotIsPlayerScav to not require a BotOwner object
2024-02-11 10:33:59 +00:00
Kaeno
96f107f1d2 Adds the ability to see items required by pmc quests as a scav like live on Found in Raid Items 2024-02-10 18:07:45 +00:00
3853a413f6 Fix quest counters triggering while ending the HideoutGame (!78)
When exiting the hideout, the HideoutPlayer class ends up triggering a call in Player that calculates quest counter changes. This causes issues with quests that require not dying

The Player class however wraps these calls in a null check on the QuestController, so we can set it to null before ending the hideout session, and restore it afterwards to skip quest counter calculations

As Hideout Game end only triggers on start of a new raid, and not when you actually close the hideout, I can't think of any reason that quest counters should trigger in this scenario

Resolves: SPT-AKI/Issues#471

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#78
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-10 08:31:18 +00:00