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

16 Commits

Author SHA1 Message Date
70d0d60198
Update modules to 29577 UNTESTED 2024-04-05 00:17:32 -04:00
Dev
87d9688ab2 Update class refs for new patch 2024-02-12 11:33:06 +00:00
337a0733ae Publicized assembly refactor (!58)
Depends on SPT-AKI/SPT-AssemblyTool#3

* Refactored Modules for better consistency and general readability, along with preparing the code for a publicized assembly
* Added `PublicDeclaredFlags` to `PatchConstants` to cover a set of commonly used flags to get methods post-publicizing
* Added a replacement to LINQ's `.Single()` - `.SingleCustom()` which has improved logging to help with debugging Module code. Replaced all `.Single()` usages where applicable
* Replaced most method info fetching with `AccessTools` for consistency and better readability, especially in places where methods were being retrieved by their name anyways

**NOTE:**
As a side effect of publicizing all properties, some property access code such as `Player.Position` will now show "ambiguous reference" errors during compile, due to there being multiple interfaces with the Property name being defined on the class. The way to get around this is to use a cast to an explicit interface
Example:
```cs
Singleton<GameWorld>.Instance.MainPlayer.Position
```
will now need to be
```cs
((IPlayer)Singleton<GameWorld>.Instance.MainPlayer).Position
```

Co-authored-by: Terkoiz <terkoiz@spt.dev>
Reviewed-on: SPT-AKI/Modules#58
Co-authored-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-committed-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
2024-01-13 22:08:29 +00:00
Terkoiz
4da61ffb64 Fixed compile-time errors 2023-12-27 17:10:25 +02:00
4047f86b24 Update references for 26835 (!36)
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#36
2023-10-28 09:30:21 +00:00
1e238c426e 0.13.5.0 (!33)
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: CWX <CWX@noreply.dev.sp-tarkov.com>
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-authored-by: RaiRaiTheRaichu <rairaitheraichu@noreply.dev.sp-tarkov.com>
Co-authored-by: CWX <cwx@noreply.dev.sp-tarkov.com>
Co-authored-by: Kaeno <e>
Reviewed-on: SPT-AKI/Modules#33
2023-10-10 10:58:33 +00:00
Dev
8b4847714c Improve comments 2023-07-30 09:47:25 +01:00
Dev
4a6b658b28 25206 2023-07-28 10:01:11 +01:00
Dev
2c5a2d1c19 unified logging
removed code that breaks bot spawns
fixed dogtag error showing when player dies
2023-07-12 17:36:10 +01:00
Dev
dd4366efcf Partial revert of getnewbottemplate fix, added check to perform original method if bot profiles are already present 2023-07-12 16:54:53 +01:00
Dev
fab764172a Adjust patch to set withDelete to true and run original function 2023-07-09 14:51:13 +01:00
Dev
a293b847ed Revert accessing public method, retrun to protected virtual function 2023-07-07 16:46:03 +01:00
Dev
c038c9fced Fix bots not spawning: Correctly look for public method + force bot to be cleared from client cache on spawn 2023-07-07 16:15:22 +01:00
Dev
610f5e596b Additrional patch fixes for 24605 2023-07-07 15:01:45 +01:00
Dev
4fd2a48972 Improve bot loading logging 2023-06-25 13:49:48 +01:00
Dev
b3ce0ec36f Add repo 2023-03-03 18:52:31 +00:00