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

647 Commits

Author SHA1 Message Date
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
CWX
7901310094 Still need these patches for scav selling price 2024-08-24 11:43:19 +01:00
Lacyway
00a880e49c Add RemoveClothingItemExternalObtainLabelPatch (!163)
Needs to be tested, I am in the process of updating my client to the latest version. If you cannot test right now I'll do it once I am done.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#163
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-24 10:35:20 +00:00
Lacyway
d4c10c4765 Rework RemoveStashUpgradeLabelPatch (!162)
The `InventoryScreen` is part of the `CommonUI` which lives throughout the lifetime of the application. It should be safe to only delete this on `Awake()` rather than use `Find()` on a transform that has a fair bit of children every time the inventory screen is opened.
![image](/attachments/937a3954-210c-4fc7-a869-75458ae19d8d)
I cannot extract on 3.10 currently so need someone to just verify that it sticks after an extract where the menu is reloaded.

Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com>
Reviewed-on: SPT/Modules#162
Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
2024-08-24 09:12:03 +00:00
CWX
fc6124dfc8 Add patch to disable StashExpansion label and tooltip 2024-08-24 00:42:01 +01:00
Kaeno
112e378878 Update Patch class ref. 2024-08-23 17:29:01 +01:00
Dev
17b83e6446 Updated to 32197 2024-08-23 16:05:49 +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
Dev
1154611e88 Removed unnecessary LabsKeycardRemovalPatch patch, client now performs this natively 2024-08-22 09:22:42 +01:00
fd52b7386a Fixed recursion when using GetData syncronously (!161)
Running [SPT.Common.Http.RequestHandler.GetData()](af1a83fe71/project/SPT.Common/Http/RequestHandler.cs (L78)) would run indefinitely because of an accidental recursion.

Reviewed-on: SPT/Modules#161
Co-authored-by: Kaiden <kaiden@pm.me>
Co-committed-by: Kaiden <kaiden@pm.me>
(cherry picked from commit ab9d9c0e1386e3bf624afe926131c53f67e386aa)
2024-08-22 09:16:11 +01:00
ab9d9c0e13 Fixed recursion when using GetData syncronously (!161)
Running [SPT.Common.Http.RequestHandler.GetData()](af1a83fe71/project/SPT.Common/Http/RequestHandler.cs (L78)) would run indefinitely because of an accidental recursion.

Reviewed-on: SPT/Modules#161
Co-authored-by: Kaiden <kaiden@pm.me>
Co-committed-by: Kaiden <kaiden@pm.me>
2024-08-22 08:11:58 +00:00
Dev
6320c396da Updated to 32160 2024-08-21 19:10:12 +01:00
CWX
374947c18a Merge branch '310-dev' of https://dev.sp-tarkov.com/SPT-AKI/Modules into 310-dev 2024-08-21 12:51:50 +01:00
CWX
a1fb3350b4 added latest langversion in csprojs and formatting 2024-08-21 12:51:46 +01:00
Dev
b98778784d Updated mappings 2024-08-21 09:55:00 +01:00
CWX
61d43585ab Update scavlatepatch, remove logging from scavprofileloadpatch 2024-08-20 21:31:32 +01:00
CWX
2c2fe26f0b fix scavProfileLoadPatch 2024-08-20 21:24:51 +01:00
Kaeno
2dfc019b21 Fix patches 2024-08-20 20:25:53 +01:00
Dev
85da3e405d updated mappings 2024-08-20 20:19:58 +01:00
Dev
9f18cfd6d8 Updated mappings 2024-08-20 19:25:18 +01:00
Dev
083e34bdde Updated hollowed dll 2024-08-20 19:12:00 +01:00
Kaeno
853a74a449 Patch updates 2024-08-20 19:00:11 +01:00
Dev
044952e19f Updated mappings 2024-08-20 18:56:28 +01:00
Dev
e332fa863a Updated hollowed dll 2024-08-20 16:41:38 +01:00
Dev
538ff53d82 Updated version value to: 32128 2024-08-20 16:13:39 +01:00
Dev
af1a83fe71 Busted build cache 3.9.8 2024-08-19 09:06:32 +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>
3.9.7
2024-08-18 15:49:22 +00:00
f235ee21b7 LighthouseProgressionClass Improvements (!159)
* Bug fix for getting negative Lightkeeper rep and disabling your transmitter only when killing Zryachiy, not his followers
* Revised the class to support multiple players having access to the island, not only the main player
* Added support for having multiple Lightkeeper-friendly PMC's on the island (currently requires mod support). Killing one of them while on the island will also result in getting reduced Lightkeeper rep and disabling your transmitter.
* Separated location changes into discrete methods and made them public so mods can call them individually
* Added static property that determines if the main player's transmitter status should open the island for everyone on the map. Also added property indicating if the island has been opened for everyone. This allows mods to override SPT's behavior and not have the island opened to everyone if the main player has access.
* Rewrote the class so that the cyclic `Update()` method is no longer needed

Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: SPT/Modules#159
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
3.9.6
2024-08-17 07:43:42 +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
9357555280 Fix for DogtagPatch NRE when Weapon Name is Null (!154)
Added null check for `damageInfo.Weapon.Name` in `DogtagPatch::UpdateDogtagItemWithDeathDetails` because it can be null in rare cases. I see this happen when Zryachiy or his followers kill a bot, and I'm not sure why. This will prevent an exception from being thrown and the bot becoming "broken".

Reviewed-on: SPT/Modules#154
Co-authored-by: dwesterwick <dwesterwick@yahoo.com>
Co-committed-by: dwesterwick <dwesterwick@yahoo.com>
2024-08-10 08:09:26 +00:00
CWX
363d9804a1 removed unused patch 2024-08-02 18:01:43 +01: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.
3.9.5
2024-08-02 17:25:50 +01:00
CWX
a39cd0a7b0 added CJ's debug tool to allowed list, disabled another patch for testing, dnspy looks like BSG do what we did 2024-08-02 17:14:05 +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
3e4fa06339 comment update 2024-08-01 22:12:00 +01:00
2eb7cb3eca Remove grenade patches 2024-08-01 22:09:28 +01:00