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

101 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
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
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
d37c38b2b9 Add return comments 2024-10-03 10:28:48 +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
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
7b20646134 Big clean up of various resharper warnings 2024-08-28 12:52:54 +01:00
Dev
9f90a9481d Renamed patch to FixScavWarNullErrorWithMarkOfUnknownPatch 2024-08-25 09:24:10 +01:00
CWX
815d6a6303 2 patches still required 2024-08-24 12:09:16 +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
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
CWX
99184be313 PMC's now heal fine by themselves, removing patch 2024-08-02 17:40:56 +01:00
Dev
2faf204d77 Revert "Removed unused patches:"
This reverts commit cc674f5d4816e98d4b84d52f364cb867bfa30def.
2024-08-02 17:25:50 +01:00
CWX
0986ebac2d Refactored patches to be public so people can disable if needed 2024-08-02 16:57:59 +01:00
CWX
e3bc4e3210 removed more un-needed patches 2024-08-02 16:44:14 +01:00
Dev
cc674f5d48 Removed unused patches:
BotOwnerDisposePatch
BotEnemyTargetPatch
BotCalledDataTryCallPatch
BotSelfEnemyPatch
AddEnemyToAllGroupsInBotZonePatch
2024-08-02 16:03:17 +01:00
CWX
c234e0d1d6 Remove patches that are now covered by BSG 2024-08-02 15:01:44 +01:00
Dev
42060f027d Removed unnecessary patch BotCallForHelpCallBotPatch
Removed unnecessary null check
2024-08-02 14:59:14 +01:00
Dev
5131a6ff68 Removed LocationLootCacheBustingPatch, targeted method is no longer used and loot is no longer cached on the client 2024-08-02 08:51:07 +01:00
Lacyway
920d73209c Update AddEnemyToAllGroupsInBotZonePatch to latest code (!153)
Was missing checks that now exist in the client, works as intended now from my testing. Please test and confirm as well.
**Note**: I strongly believe that this patch is now redundant and can be removed, I am still testing to see if this is the case.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#153
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
(cherry picked from commit de7e762211aa6a9fe26fc80eb449f85db6464117)
2024-08-01 22:13:38 +01:00
2eb7cb3eca Remove grenade patches 2024-08-01 22:09:28 +01:00
9b86d8624a Fix Grenade fuses being longer than they should be 2024-08-01 21:27:35 +01:00
Lacyway
de7e762211 Update AddEnemyToAllGroupsInBotZonePatch to latest code (!153)
Was missing checks that now exist in the client, works as intended now from my testing. Please test and confirm as well.
**Note**: I strongly believe that this patch is now redundant and can be removed, I am still testing to see if this is the case.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#153
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-01 20:15:50 +00:00
104cb02b58 Fix Grenades not exploding. Fuse time is really long for some reason thanks bsg :) 2024-08-01 21:13:43 +01:00
Dev
5d2237092b Updated some classes to be public 2024-08-01 21:01:25 +01:00
Lacyway
f08011788c Make patches public (!152)
Some patches are `internal` that should be `public` so that mods can disable them when altering AI.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#152
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-01 19:50:59 +00:00