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

363 Commits

Author SHA1 Message Date
CWX
cc1d222a98 rebranding part3 2024-05-21 19:18:57 +01:00
CWX
31d832dfc6 rebranding part2 2024-05-21 19:13:13 +01:00
CWX
866ff1095c Rebranding 2024-05-21 19:10:17 +01:00
9b7154bded 3.9.0-DEV (!128)
Reviewed-on: SPT-AKI/Modules#128
2024-05-21 17:53:20 +00:00
9c83092062 Merge branch 'master' into 3.9.0-DEV 2024-05-21 17:52:54 +00:00
Dev
11b503dbf6 More aki to spt changes 2024-05-21 17:46:46 +01:00
Dev
0581529978 Replace references to AKI with SPT 2024-05-21 17:44:27 +01:00
Dev
775a0fdc2a Added missing hollowed dll 2024-05-20 17:33:29 +01:00
Dev
f6ff8253b3 Updated csproj company/copyright properties 2024-05-20 13:52:35 +01:00
Dev
0ccb898d1d Renamed error messages to maintain consistency with project name 2024-05-20 13:51:52 +01:00
Dev
5a828f9bb7 Further adjusted dll names for consistency + updated dll existence check to work with new names + minor error message spacing fix 2024-05-20 13:45:00 +01:00
Dev
311acf54cd Renamed prepatch DLL to ensure consistency with other DLLs 2024-05-20 11:47:01 +01:00
Cj
b60b7a6f78 Normalize build path and naming (!127)
Normalize the build path for consistency as per SPT-AKI/Issues#658

- All assemblies now live in `BepInEx/plugins/spt`
- Renamed aki-common.dll and aki-reflection respectively for consistency as well.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#127
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-05-20 10:44:52 +00:00
Dev
1e5238cc70 Fixed EasyAssetPatch not loading 2024-05-16 11:09:27 +01:00
Dev
e14b8b88ae Fixed patch not loading 2024-05-16 10:20:48 +01:00
Dev
cc0934ade0 Update to 29997 2024-05-15 10:44:37 +01:00
1111e7d518 Fix 390 modules compilation (!126)
Removes some issues that were added during the 3.8.2 merge
- Remove re-added deprecated 3.8.0 ReqestHandler code
- Remove duplicate `_sptPluginFolder` variable in AkiBotsPrePatcher

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#126
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-05-14 07:29:59 +00:00
b02b8e7349 Merge 382 into master (!125)
Reviewed-on: SPT-AKI/Modules#125
2024-05-13 10:25:35 +00:00
Dev
14079619cf Fixed bundle path issue 3.8.3 2024-05-13 09:39:48 +01:00
Dev
336ad97bc8 Revert "Revert "Improve async bundles (!123)""
This reverts commit 64296e3e62e92cc1b4a77f91384e579008872d95.
2024-05-12 23:22:37 +01:00
Dev
64296e3e62 Revert "Improve async bundles (!123)"
This reverts commit 9e65e68c81f47b05b29244f08d3cb2b9edc8616d.
3.8.2
2024-05-12 23:03:30 +01:00
Dev
860e354b77 Merge branch '3.8.2-DEV' into 3.9.0-DEV
# Conflicts:
#	project/Aki.Common/Http/Client.cs
#	project/Aki.Common/Http/RequestHandler.cs
2024-05-06 22:34:10 +01:00
b529261845 If SPT is started by directly running EscapeFromTarkov.exe, exit (!116)
Inform user via messagebox that they need to run Aki.Launcher.exe
Refactored a bit of the validation code in Aki.Prepatch

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#116
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
(cherry picked from commit d6845c4337d616cd17d6d2e1eed746c25779b35b)
2024-05-06 22:13:40 +01:00
Dev
296d4fa391 Add remapping of Class3199 to EasyAssetHelperClass 2024-05-06 22:07:19 +01:00
Merijn Hendriks
9e65e68c81 Improve async bundles (!123)
Synchronizes the changes with NoHurry.AsyncBundleLoader.

A large chunk of this coded has been tested at scale in Fika with very good results.

- Targets `EasyAssets.Create` instead of using a complex lookup pattern
- Delays downloading of bundles to initial loading screen
- Bundles are downloaded using intended sequence
- Improved logging of bundle loading

Reviewed-on: SPT-AKI/Modules#123
Co-authored-by: Merijn Hendriks <merijn.d.hendriks@gmail.com>
Co-committed-by: Merijn Hendriks <merijn.d.hendriks@gmail.com>
2024-05-06 19:44:28 +00:00
Merijn Hendriks
4b401e7449 async-bundles (!117)
This patch contains the following:

- Initial async VFS code (for reading / writing files)
- Simplified Http Client code
- Added async support to Http Client, RequestHandler
- Improved RequestHandler logging
- Deferred bundle loading to EasyAssetPatch
- Make GetManifestJson run async

This comes with a number of benefits:

- When downloading bundles, it will mention which files succeeded or failed to download
- Bundle loading happens in the initial screen, not the white screen
- Fixed the issue where bundle loading could break bepinex loading (too long load time)
- Modders can now make async http request and read/write files async

I removed logging of sessionid inside the RequestHandler for each request, sessionid is already visible from bepinex log startup parameters.

At last, sorry for the amount of commits it took. I initially wanted to target the 3.9.0 branch, but decided to use 3.8.1 instead as async request can really help out some mods.

Reviewed-on: SPT-AKI/Modules#117
Co-authored-by: Merijn Hendriks <merijn.d.hendriks@gmail.com>
Co-committed-by: Merijn Hendriks <merijn.d.hendriks@gmail.com>
2024-05-06 10:28:51 +00:00
d3e6a8527b feat: patch to resolve btr on woods loading destination path (!122)
should fix SPT-AKI/Issues#646

Reviewed-on: SPT-AKI/Modules#122
Co-authored-by: kiobu <kiobu@sdf.org>
Co-committed-by: kiobu <kiobu@sdf.org>
2024-05-05 20:45:08 +00:00
ed5428ed88 3.8.1-DEV (!121)
Reviewed-on: SPT-AKI/Modules#121
2024-05-05 08:57:18 +00:00
8e53f59d30 fixed yet another method not being renamed properly LoadOfflineRaidScreenPatch for the "Ready" callback (!120)
When pressing ready on the scav offline raid screen the OnShowReadyScreen callback currently gets assigned to method_73. But that is the new name of the insurance screen as seen in 2abc1ab0ce7e6c8e7fe2365cae2321df2ccfa4bc.
And this is indeed what currently happens. You get your PMC insurance screen.
The correct method name it should register appears to be method_76. My reasoning for this is that method_44, which is the one called for non-pmcs in method_72, registers method_76 as the ready callback in the original unpatched code.

I am trying to be less gung ho and have checked more thoroughly this time, but please tripple check as I've fucked up once already!

Reviewed-on: SPT-AKI/Modules#120
Co-authored-by: BluBb_mADe <ku21runy1k11@opayq.com>
Co-committed-by: BluBb_mADe <ku21runy1k11@opayq.com>
2024-05-01 11:24:16 +00:00
5676c58fce fix: disablepve in-raid bug when finding tooltip (!119)
should fix SPT-AKI/Issues#640

Reviewed-on: SPT-AKI/Modules#119
Co-authored-by: kiobu <kiobu@sdf.org>
Co-committed-by: kiobu <kiobu@sdf.org>
2024-05-01 08:17:57 +00:00
d9a4df3a03 refactor LoadOfflineRaidScreenPatch (!118)
The patch was very hard to understand and unnecessarily convoluted which caused me to not properly understand what it was supposed to do so I decided to rework it properly for the next time it inevitably breaks again.
The emitted IL should be identical. This is just about making it straight forward to understand and simplifying the patch which might make it a little more robust.

Reviewed-on: SPT-AKI/Modules#118
Reviewed-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-authored-by: BluBb_mADe <ku21runy1k11@opayq.com>
Co-committed-by: BluBb_mADe <ku21runy1k11@opayq.com>
2024-04-30 10:39:06 +00:00
b5d3511e3c Update missed method in LoadOfflineRaidScreenPatch (!115)
Fixes the need to hit next twice to get to insurance screen

This method was missed during the last commit made to update the methods

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#115
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-29 20:57:33 +00:00
d6845c4337 If SPT is started by directly running EscapeFromTarkov.exe, exit (!116)
Inform user via messagebox that they need to run Aki.Launcher.exe
Refactored a bit of the validation code in Aki.Prepatch

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#116
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
3.8.1
2024-04-29 07:00:32 +00:00
cc2377bf72 fix: difficulties response parsing (!113)
fixed bot difficulties model to match server response for `/singleplayer/settings/bot/difficulties`
also bumps up the sptBear and sptUsec enums so they don't collide with new pmcUSEC and pmcBEAR

Reviewed-on: SPT-AKI/Modules#113
Co-authored-by: kiobu <kiobu@sdf.org>
Co-committed-by: kiobu <kiobu@sdf.org>
2024-04-28 08:17:13 +00:00
2abc1ab0ce fixed insurance screen patch (!114)
I am not entirely sure what the method name index of the added method is that has offset everything by one. There might be other patches affected by this that reference a method by name instead of signature but everything seems to work with just these two adjustments.
I don't have a diff ready to easily spot where the offset happens and what else might potentially be affected.

Reviewed-on: SPT-AKI/Modules#114
Co-authored-by: BluBb_mADe <ku21runy1k11@opayq.com>
Co-committed-by: BluBb_mADe <ku21runy1k11@opayq.com>
2024-04-27 09:38:27 +00:00
199502d18a feat: updated-refs (!112)
update assembly refs and transpiler lookups for 29862

Reviewed-on: SPT-AKI/Modules#112
Co-authored-by: kiobu <kiobu@sdf.org>
Co-committed-by: kiobu <kiobu@sdf.org>
2024-04-26 07:36:56 +00:00
Dev
8b5159b6c6 Update readme 2024-04-25 18:23:09 +01:00
Dev
094c50a1bc 29862 2024-04-25 18:17:12 +01:00
Dev
f7a469089b 29774 2024-04-21 11:39:04 +01:00
Dev
47002335ff 29774 2024-04-21 11:37:10 +01:00
Merijn Hendriks
accb0ab9f6 Reduce bot difficulty requests (!111)
Requires server-side changes (will need your help @TheSparta for this!).

This combined all the single bot difficulty requests into a single GET request (`/singleplayer/bot/difficulties`) with the following data structure:
```json
[
    {
        "role": "assault",
        "difficulty": "easy",
        "data": "assets/database/bots/types/assault.json difficulty easy contents"
    },
    {
        "role": "pmcbot",
        "difficulty": "normal",
        "data": "assets/database/bots/types/pmcbot.json difficulty normal contents"
    }
]
```
The request expects all roles and all their respective difficulties to be in the response.

Co-authored-by: Merijn Hendriks <merijnhendriks@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#111
Reviewed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-authored-by: Merijn Hendriks <senko-san@noreply.dev.sp-tarkov.com>
Co-committed-by: Merijn Hendriks <senko-san@noreply.dev.sp-tarkov.com>
2024-04-20 22:32:28 +00:00
Merijn Hendriks
d5fc27e383 improve-http (!110)
Ported Haru's updated HTTP code to Aki.

## Changes

- Added async support to Client
- Removed obsolete-marked code

## Impact

The code marked deprecated and scheduled for removal in 3.8.0 is removed in this PR.
Modders were already informed through IDE warnings and in the release notes, which also contained an upgrade path to the new `Aki.Common.Http.Client`.

Reviewed-on: SPT-AKI/Modules#110
Reviewed-by: Terkoiz <terkoiz@noreply.dev.sp-tarkov.com>
Co-authored-by: Merijn Hendriks <senko-san@noreply.dev.sp-tarkov.com>
Co-committed-by: Merijn Hendriks <senko-san@noreply.dev.sp-tarkov.com>
2024-04-20 22:32:16 +00:00
Dev
edf81d800c Update incorrect gclass ref inside GetNewBotTemplatesPatch 2024-04-20 22:41:11 +01:00
Dev
14b4eb2f63 merge 381 into 390 2024-04-20 22:36:42 +01:00
efa7a175c3 Exit if the user has deleted the BepInEx/plugins/spt folder (!109)
Added as a check in the PrePatch, because while users delete `BepInEx/plugins/spt` often, it would be uncommon for them to also delete the prepatcher

No idea why there's a second commit in this PR, it doesn't actually change anything. Just Git Things™

Co-authored-by: Terkoiz <terkoiz@spt.dev>
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#109
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-20 21:54:26 +01:00
84cc152e17 Exit if the user has deleted the BepInEx/plugins/spt folder (!109)
Added as a check in the PrePatch, because while users delete `BepInEx/plugins/spt` often, it would be uncommon for them to also delete the prepatcher

No idea why there's a second commit in this PR, it doesn't actually change anything. Just Git Things™

Co-authored-by: Terkoiz <terkoiz@spt.dev>
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Modules#109
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-17 07:49:49 +00:00
Dev
91bc0ed1e0 Update class refs to get project building 2024-04-15 12:04:31 +01:00
Dev
ef08750adb 29704 2024-04-15 11:47:56 +01:00
83ca08ac87 381 > 390 (!108)
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: SPT-AKI/Modules#108
2024-04-15 10:36:40 +00:00
Dev
6041bea712 made AddLoot() async Task so it can be awaited 2024-04-11 16:20:15 +01:00