Commit Graph

2248 Commits

Author SHA1 Message Date
Jesse 354adf2c0a Add File validation (#344)
* Add file validation

* Revert "Added checks.dat build script (#343)"

This reverts commit 39228f88e705b58858d162256a5b5e10fe99148c.

* Update to use pwsh

* Wrap code in using
2025-06-02 20:21:49 +01:00
clodanSPT 3fe8072604 Added checks.dat build script (#343)
Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 17:56:06 +01:00
clodanSPT 2ba11fc789 Added rolling log files features based on file size (#342)
* Added rolling log files features based on file size

* made properties readonly

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 17:40:40 +01:00
Chomp ccb55bd025 Expanded GetGenerationWeights scope to reduce code verbosity
Improved `InitCacheForBotRole`

Removed unnecessary code from `AddItemsToPool`
2025-06-02 17:20:54 +01:00
Chomp a5d9a54c7f made use of FilterItemPool helper method to reduce code verbosity
Fixed inverted trygetvalue check
2025-06-02 16:59:53 +01:00
Chomp 74bdac7d9b Fixed bug in AddLootToCache that was causing combined pool to not be hydrated 2025-06-02 16:41:27 +01:00
Chomp 2cb720ab94 Added early return when result is 0 items
Added early return when 'type' of loot is unknown
2025-06-02 16:23:45 +01:00
Chomp 2ae91b4c38 Added safer dictionary access inside GetLootFromCache 2025-06-02 16:09:39 +01:00
Chomp 0577b119ca Reduced times combined Loot Pool is iterate over inside AddLootToCache() 2025-06-02 12:50:02 +01:00
clodanSPT ecf16b1921 Added ignore for protected properties that can be turned private (#341)
Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 12:31:10 +01:00
Chomp dfc8afa741 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-06-02 12:27:47 +01:00
Chomp 2165e407eb Added missing locks + improved comments
Made use of `nameof` instead of `toString`
2025-06-02 12:27:39 +01:00
clodanSPT cab8fa82a2 Json extension data fody (#340)
* Added a new Fody plugin to add to every model class the JsonExtensionData attribute

* retargeted fody plugin to netstandard for msbuild runtime

* Fixed runtime issue

* Fixed property check for new extension data properties

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 12:15:44 +01:00
Chomp 54fe3cf7c5 Added todo for reward type we dont currently handle 2025-06-02 11:59:21 +01:00
Chomp 8ae5aaa0ee FIxed reward-type_not_handled error message not showing ID value 2025-06-02 11:55:05 +01:00
Chomp c7b6868092 Allow bot generation without raid config data 2025-06-02 11:42:48 +01:00
Chomp d5df140d58 Created GetGenerationWeights helper to reduce dupication 2025-06-02 11:39:30 +01:00
Chomp fd3b0c0ead Replaced direct key access with TryAdd 2025-06-02 11:28:58 +01:00
Chomp d7d0463c94 Replaced direct key access with TryAdd 2025-06-02 11:26:20 +01:00
Chomp 24cc70b225 Improved containerType secure container string compare
Split out kvp into variables
2025-06-02 11:12:50 +01:00
Chomp 9ec9c0beb7 Fixed concurrency issues with pmc loot generation 2025-06-02 10:24:32 +01:00
Chomp d3e1b6ddca Removed incorrect mod_equipment_001 from item_equipment_helmet_team_wendy_exfil on usec/bear PMC json data 2025-06-02 09:46:53 +01:00
Chomp c42449b150 Added handling of SHOOTING_RANGE_MARK to AddHideoutCustomisationUnlock() Resolves #339 2025-06-02 09:43:03 +01:00
CWX 360a59a585 only return dialogues that have messages, and on new dialogues, return empty object as does live 2025-06-01 23:43:50 +01:00
CWX f9eb5cd136 change for lastOrDefault, return null 2025-06-01 23:43:11 +01:00
CWX 1b82d0641e change the invariantCulture on factory 2025-06-01 21:35:28 +01:00
CWX cc6f116e18 Value is now not an object, give it straight to it and no double to string to double shenanigans 2025-06-01 21:35:10 +01:00
Chomp d5ae1c020d Merge pull request #334 from hulkhan22/fix/armbands-and-rewards
fix: Lootable armbands and skill rewards resetting skill to 0
2025-06-01 17:37:22 +01:00
hulkhan22 44332cf785 Fixes Usec armbands being lootable and skill rewards resetting to 0 2025-06-01 18:31:02 +02:00
GrooveypenguinX f4428deccf fixed missing import for customitemservice, added bundle loading sequence in the program.cs (#333)
* Added missing import for reflection /bonk

* Implemented bundles.json loading directly into program.cs

`IsBundleMod` is now read from all loaded mods metadata, and if set to true the bundles.json is read from the mod directory.

* re-assign the sorted valid mods to the loadedMods list

since ValidateMods returns the sortedLoadedMods, this is the list of mods we should be passing to our other spots

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-06-01 15:34:14 +01:00
Chomp 2357fd4a4f Fixed build 2025-06-01 15:29:05 +01:00
Chomp 4ae4715df7 Merge pull request #327 from hulkhan22/test/fix-failing-tests
test: Fix for tests randomly failing when run altogether
2025-06-01 14:31:17 +01:00
Chomp 72c00b7b07 Merge branch 'main' into develop 2025-06-01 14:29:53 +01:00
GrooveypenguinX 3e9c557a89 Fixed overrideproperties not applying in customitemservice
Swapped out the old method with new logic that sets the properties using reflection, and can also handle fields.

(cherry picked from commit 026c8dec5fa5cffd09de438e43d74e18a480d907)
2025-06-01 14:26:52 +01:00
Chomp 41becaadb8 Merge pull request #331 from GrooveypenguinX/main
Fixed overrideproperties not applying in customitemservice
2025-06-01 14:25:45 +01:00
hulkhan22 ae8fc2504f Merge branch 'develop' into test/fix-failing-tests 2025-06-01 15:08:56 +02:00
GrooveypenguinX 772b0e4218 Fixed overrideproperties not applying in customitemservice
Swapped out the old method with new logic that sets the properties using reflection, and can also handle fields.
2025-06-01 09:05:30 -04:00
Chomp 4bb81c0af0 Merge pull request #330 from RuKira/develop
Added Missing Cultist Recipes from Laby Addition
2025-06-01 12:39:11 +01:00
Shawn (Justin) Duesling b14557c25e Merge branch 'develop' into develop 2025-06-01 07:35:18 -04:00
RuKira 4ba12748ed Added Missing Cultist Recipes from Laby Addition 2025-06-01 07:33:27 -04:00
clodanSPT a1c8980f8c Added virtuosity to Core project (#329)
Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-01 12:08:20 +01:00
Chomp b5da13e8ac Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-06-01 11:08:11 +01:00
Chomp 583be57168 Reduced chance of PMC spawns on laboratory 2025-06-01 11:07:57 +01:00
hulkhan22 210bdb2d60 Fix for tests randomly failing when run altogether 2025-06-01 02:33:19 +02:00
clodanSPT e084d1889c Removed reflections dependency from Core (#326)
Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-01 00:18:59 +01:00
Jesse aafe24eafb Move Router, Callbacks and GetResponse over to ValueTask (#325)
* Move Router, Callbacks and GetResponse over to ValueTask

* Assign empty deserializedObject for now, keep todo

* Cleanup GetResponse

* Re-add logger for request
2025-05-31 20:30:41 +01:00
Chomp 7f8ca25c3e Merge pull request #323 from hulkhan22/test/fix-failing-tests
test: Fix failing tests
2025-05-31 08:56:35 +01:00
hulkhan22 18bd0957fd Fix the damn tests 2025-05-31 01:40:47 +02:00
Chomp a2d2a44a2f Improved logic flow inside AddItemsToInventory 2025-05-30 20:05:51 +01:00
Chomp 7ebafa402b Improved where logic inside RemoveFiRStatusFromItemsInContainer 2025-05-30 20:05:39 +01:00