Commit Graph

2268 Commits

Author SHA1 Message Date
Chomp 37bd3a433c Handle various locations where ExtendedData causes issues 2025-06-04 21:28:29 +01:00
Jesse 787752b555 Async task OnUpdate (#355)
* Make OnUpdate a task instead a void, handle OnUpdate better by running it in it's own task

* Make helper transient, resolve mod loading issues
2025-06-04 20:53:39 +01:00
Chomp a92994e50b Changed Error handling request to critical 2025-06-04 19:58:04 +01:00
Chomp 6377d92d47 Updated ref assort data 2025-06-04 19:21:10 +01:00
Chomp 417201767d Include reference to Reflection in .Server (#354) 2025-06-04 18:00:21 +01:00
Archangel 674b86656a Include reference to Reflection in .Server 2025-06-04 18:56:33 +02:00
Chomp 112afd3391 Fixed flea logic that prevented offers being listed for complex items (items /w children)
`GetItemsToListOnFleaFromInventory` would not keep the root item at index 0, client requires this

`FindAndReturnChildrenAsItems` now inserts root item at index 0
`CreateMultiOffer` now looks for root item by its id

Updated `CreateSingleOffer` to not choose first inventory item as root, search for it instead

Fixes #318
2025-06-04 17:30:26 +01:00
Chomp adf65f497c Fixed quests not failing other quests #345 2025-06-04 15:53:12 +01:00
Chomp 838e72ff3c Cleanup of weavers xsd 2025-06-04 14:51:47 +01:00
Chomp 30b8a318ae Added ExtensionData to DTOs 2025-06-04 14:49:37 +01:00
Jesse ff1dfa54ae Do a small pass on SPT's config's to reduce warnings and cleanup (#348)
* Do a small pass on SPT's config's to reduce warnings and cleanup

* Revert

* Revert EFT models

* Set list as null
2025-06-04 14:46:52 +01:00
Chomp b836ce4bf1 Removed fody dep 2025-06-04 13:58:50 +01:00
Chomp 1bb75d3c34 Merge pull request #349 from sp-tarkov/json-extension-tool
Json extension tool
2025-06-03 21:06:19 +01:00
Alex 6d87c79b0f Remove fody weaver project in favor of source generation 2025-06-03 20:34:08 +01:00
Alex e3aaf63162 Added tool to add JsonExtensionData annotation to all model classes 2025-06-03 20:24:48 +01:00
Chomp b7d5970073 Gunsmith part 11 change 2025-06-03 13:20:51 +01:00
Chomp e5d57db3c8 Updated ref quests: Easy Money - Part 2,Balancing - Part 1,Balancing - Part 2,To Great Heights - Part 1
Updated `Thirsty-Secrets`
Updated `Easy Money - part 1`
Updated `gunsmith - part 4`
Updated `Living High is Not a Crime - Part 1`
Updated `Energy Crisis`
Updated `Corporate Secrets`
2025-06-03 13:16:46 +01:00
Jesse c822977931 Build hashfile only in release mode (#346)
* Update README to include Powershell requirement

* Build hashfile only in release, only check hashes in release mode

* Remove duplicate README
2025-06-03 08:38:06 +01:00
Chomp 8b01da4c26 Added quests: Never Too Late To Learn, Get a Foothold, Profit Retention, A Life Lesson, Consolation Prize
Updated `Thirsty - Secrets`
2025-06-02 22:56:36 +01:00
Chomp f9de4d77fc Fixed ExtensionData change breaking new profiles 2025-06-02 21:41:35 +01:00
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