0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 21:10:45 -05:00

134 Commits

Author SHA1 Message Date
Chomp
c0d65208bc Added try/catch to SaveRegistryToSptFolderPatches to prevent code failing when malformed JSON is passed into it
Reduced indentation by inverting exists check
2024-12-13 10:17:30 +00:00
CJ-SPT
32f451db61
Make GameObject hooks local to their respective plugin (#10)
* Make GameObject hooks local to their respective plugin

* Add DontDestoryOnLoad() just incase
2024-12-04 09:59:53 +00:00
Cj
49bd0db888 Re-enable airdrop patch as its still needed 2024-11-30 00:27:54 -05:00
Chomp
ab809c4bc5
Use SkillsDescriptor to serialize skills, remove effects (#7)
Fixes exception at the end of the gym workout, removes effects
2024-11-27 12:07:30 +00:00
Cj
1d2262ac8d Use SkillsDescriptor to serialize skills, remove effects 2024-11-27 07:04:11 -05:00
46c3f7291e Add null check to ServerAirdropManager
Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
2024-11-27 10:44:52 +01:00
DrakiaXYZ
270bac8592 - Merge master changes into 310-dev in prep for merging back into master 2024-11-26 21:54:24 -08:00
fa9e6ce35f
Add further fixes to the airdop (#2)
* Fix airspace congested spam by disposing of the Server airdrop manager as well

* Add patch to dispose of flares correctly

* Spacing fixes
2024-11-25 14:47:31 +00:00
Chomp
5749991b9e Fixed blackscreen on backing out of raid prior to airdrop manager being initialised
Added a lot more nullref checking to patch
2024-11-25 13:25:20 +00:00
Chomp
a0d37fb35d Rename property to improve clarity 2024-11-22 22:43:29 +00:00
Cj
25801e3eda GC refactor (!178)
Make the GC only run on show inventory screen, and only allow it to run for a maximum of 25 milliseconds at a time.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT/Modules#178
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-11-21 08:54:45 +00:00
Dev
1cf5085727 Enabled memory fragmentation handling 2024-11-20 16:21:21 +00:00
Cj
1a08680bdd Basic memory manager (!177)
Attempt at slowing down the memory leak caused by bots spawning/dying

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT/Modules#177
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-11-20 16:03:54 +00:00
5a58e03854 Add FixAirdropCrashPatch (!175)
This fixes the current issue of having an airdrop in the game causing a CTD after an extract.

There's still two caveats to this that I'm looking into:
- On the very next raid, the sky will still have the chaff from the flares in the sky, however these will have pink textures and take a few seconds to dissipate.
- On the very next raid, calling in an airplane with a red flare will cause the notification manager to spam messages about the airspace being currently in use even at the start of the raid.

Reviewed-on: SPT/Modules#175
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
2024-11-18 20:50:55 +00:00
Dev
35f82f50fa Fixed client error when accessing inventory during raid start as PMC 2024-11-08 16:24:27 +00:00
3ac4f1e4bb Resolve exception caused by opening inventory preview during raid loading (!174)
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Modules#174
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-11-05 18:44:04 +00:00
Dev
22bd973bb5 Fixed various patch issues 2024-10-31 21:27:32 +00:00
Dev
d788abbaa9 Fixed various bad references 2024-10-31 17:19:37 +00:00
127e48a582 Redirect "PlayerPrefs" registry reads/writes to a JSON file (Memory-cached) to avoid cross contamination with live data (!172)
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Modules#172
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-10-26 08:15:12 +00:00
Dev
148c45666a Fixed bosses not spawning when player chooses medium ai amount on pre-raid screen 2024-10-21 14:23:41 +01:00
Dev
15a72cfeec Fixed BetaLogoPatch 2024-10-13 11:17:12 +01:00
Dev
e2af9e8a4a Various code cleanups and warning fixes 2024-10-03 10:58:47 +01:00
Dev
51aa599a4e Cleaned up of AiHelpers logic to improve consistency 2024-10-03 10:29:33 +01:00
Dev
d37c38b2b9 Add return comments 2024-10-03 10:28:48 +01:00
Dev
6c73f7ee36 Disable airdrop patch as BSG have made it work in PvE 2024-09-27 09:39:12 +01:00
Dev
581ccfcaeb Fix method that's moved 2024-09-26 14:21:35 +01:00
Dev
a79e5f17ec Fixed glcass references 2024-09-26 14:13:30 +01:00
Dev
4a187bef22 Small patch clean up - fixed issue with pmc spawn location patch not working as intended 2024-09-16 15:02:51 +01:00
Dev
990b6edf0b Fixed issue where ALL bots were being classified as assault scavs, e.g. BTR/PMCs, this would then incorrectly assign them the assault brain 2024-09-16 12:13:12 +01:00
Dev
60ab34f61c Reworked BotIsNormalAssaultScav to handle when the nickname is null 2024-09-15 19:10:38 +01:00
Cj
5edf26b049 Fix beta logo 1 patch (!166)
Parameter length changed.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT/Modules#166
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-09-06 08:14:23 +00:00
Dev
9b53ad0752 Added patch to fix airdrops not spawning 2024-09-03 12:36:49 +01:00
Dev
0c3b9a4bcc Updated newtonsoft.json to 13.0.3 2024-09-02 10:26:13 +01:00
Dev
6667e347f3 Moved DisableNonHalloweenExitsDuringEventPatch into needed pile 2024-08-29 09:32:57 +01:00
Dev
7b20646134 Big clean up of various resharper warnings 2024-08-28 12:52:54 +01:00
Dev
700020a23b Made plugin classes public 2024-08-26 12:20:28 +01:00
Dev
9f90a9481d Renamed patch to FixScavWarNullErrorWithMarkOfUnknownPatch 2024-08-25 09:24:10 +01:00
Dev
e4c7547bc8 Disabled BossSpawnChancePatch as it doesn't appear to be necessary after testing 2024-08-25 09:21:21 +01:00
CWX
815d6a6303 2 patches still required 2024-08-24 12:09:16 +01:00
Dev
393d172c55 Disabled IsEnemyPatch as it may no longer be needed 2024-08-22 20:04:29 +01:00
Dev
c2f66c6660 Updated IsEnemy patch note 2024-08-22 09:24:56 +01:00
CWX
a1fb3350b4 added latest langversion in csprojs and formatting 2024-08-21 12:51:46 +01:00
Kaeno
2dfc019b21 Fix patches 2024-08-20 20:25:53 +01:00
Kaeno
853a74a449 Patch updates 2024-08-20 19:00:11 +01:00
939c85bc7c Rename ShouldReaquire & check if bundle exists (!160)
I didn't keep in mind that 'ShouldReaquire' handles both the initial check for acquiring of a file and also the re-acquiring of it, I've renamed the method here to be more accurate in this behavior so that hopefully it prevents this from happening again in the future.

Also fixes the issue of an exception being thrown when checking if the bundle exists or not.

Thanks to MadByte for finding this issue

Reviewed-on: SPT/Modules#160
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
2024-08-18 15:49:22 +00:00
f8eb2374cb IsEnemyPatch Improvements (Part 3) (!158)
Added null check to new `ContainsPlayer` helper method from !157

Reviewed-on: SPT/Modules#158
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-17 07:05:43 +00:00
ebac61e0a4 IsEnemyPatch Improvements (Part 2) (!157)
Made the following changes to !156:
* Replaced `IsNullOrEmpty()` EFT checks with basic null checks
* Replaced `Any()` with new helper method to check if bots exist in collections

Reviewed-on: SPT/Modules#157
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-16 17:35:35 +00:00
af96c37815 IsEnemyPatch Improvements (!156)
Revised `IsEnemyPatch` with the following changes:
* Added a check to see if the player is in the group's `Allies` collection (needed for mod support)
* Added a check to see if the player is in the group (possibly needed for future mod support)
* Fixed Zryachiy check (and added his followers) by allowing the EFT method to run for them
* Refactoring for clarity and to reorder the checks based on priority:
    1) Null check(s)
    2) Check if the player is in the group or in its `Allies` or `Enemies` collections
    3) Allow the EFT method to run for certain bot roles
    4) Finally, add the player to the group's `Enemies` collection if needed

**This is a big change, so please double-check my work!** I tested this in multiple raids, in several maps, with and without SAIN, and I didn't find any issues.

Reviewed-on: SPT/Modules#156
Co-authored-by: DanW <danw@noreply.dev.sp-tarkov.com>
Co-committed-by: DanW <danw@noreply.dev.sp-tarkov.com>
2024-08-15 08:45:47 +00:00
267d807aa7 Remove bundle before re-acquiring (!155)
Currently, the system knows which bundles are incorrect and attempts to re-download the correct ones.. However, upon next re-launch those bundles will again be invalid probably due to it not actually writing to them forcing the system to keep re-downloading.

This fixes it by removing the invalid bundle, then re-downloading the proper one.

Reviewed-on: SPT/Modules#155
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
(cherry picked from commit 471c191bbb4daea7d8b56956eae67a29861781b4)
2024-08-14 09:28:41 +01:00
471c191bbb Remove bundle before re-acquiring (!155)
Currently, the system knows which bundles are incorrect and attempts to re-download the correct ones.. However, upon next re-launch those bundles will again be invalid probably due to it not actually writing to them forcing the system to keep re-downloading.

This fixes it by removing the invalid bundle, then re-downloading the proper one.

Reviewed-on: SPT/Modules#155
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
2024-08-14 08:25:59 +00:00