Commit Graph

3226 Commits

Author SHA1 Message Date
Chris Adamson 457e7cd36c Fix: Killing the client will no longer save your items (#557)
* alt-f4 is for timmys and rats, not chads like Chomp

* peer review fixes

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-19 16:39:20 +00:00
Chomp 100c3a7b47 Cleaned up SetScavCooldownTimer 2025-08-19 12:04:35 +01:00
Chomp 7eb88646f2 Second attempt at fixing prestige issue #558 2025-08-19 12:04:15 +01:00
clodanSPT 22ab053cda Reordered services startup (#558)
* Reordered services startup

* Removed unnecessary comment

* Made startup service required

* Marked other services as required

* Removed unnecessary ! for null

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-19 09:32:54 +00:00
Chomp 7102711ef8 Improved comment 2025-08-19 10:30:57 +01:00
Chomp 2f1a7f6663 Fixed error on profile generation 2025-08-19 10:29:13 +01:00
Chomp bb566e32ad Fixed pscav generation failure during prestige #556 2025-08-19 10:28:50 +01:00
Cj 2c9667389c Merge remote-tracking branch 'upstream/develop' into develop-upstream 2025-08-18 14:24:20 -04:00
Cj 86dd7cef17 Fix inverted if check for flea market purchases 2025-08-18 14:24:05 -04:00
Jesse 80f759a0da Http server router refactor (#553)
* Add edge case for Reverse Proxies

* Cleanup HttpListener, remove unecessary MemoryStreams

* Handle with IPAddress instead of string

* Handle nullabiity of RouteAction, tighten typing on requests

* Cleanup HttpRouter

* Use tighter typing on Routers
2025-08-18 17:59:07 +00:00
Chomp 5985777533 Updated locales 2025-08-18 12:28:07 +01:00
Chomp 8573e6ae02 Use string.empty and MongoId.Empty() where appropriate 2025-08-17 21:35:34 +01:00
Chomp 8b0445375b Revert 2025-08-17 20:06:38 +01:00
sp-tarkov-bot ece67846b5 Format Style Fixes 2025-08-17 18:57:52 +00:00
Chomp c1522c278e Validate profiles on server start, can be disabled via core.config 2025-08-17 19:56:59 +01:00
Archangel ca667f6d1b Update readme 2025-08-17 20:03:18 +02:00
Archangel 16bc24813c Cleanup DatabaseImporter 2025-08-17 19:10:36 +02:00
Archangel ed52b00d22 Keep unused locations nullable and not required 2025-08-17 18:01:04 +02:00
Archangel e4a80f1f42 Make main database properties immutable 2025-08-17 17:57:58 +02:00
Chomp aa4224081b Improve level check logic inside PlayerLacksTraderLoyaltyLevelToBuyOffer 2025-08-17 16:42:01 +01:00
Chomp c8108600ec Updated ProcessStaleOffer and FlagExpiredOffersAfterDate to use offer object extension method to check if its a trader offer 2025-08-17 16:40:42 +01:00
Chomp 485883f216 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-08-17 16:29:08 +01:00
Chomp c87bace62c Made RagfairRequiredItemsService cache generate on use instead of every Update() 2025-08-17 16:28:58 +01:00
Archangel ab4545b3b5 Update exception 2025-08-17 17:19:24 +02:00
Archangel 35568adb0b Handle DB nullability 2025-08-17 17:17:39 +02:00
Chomp cf35b9f66f Update comment 2025-08-17 15:50:30 +01:00
Chomp 3f0d68dbf6 Minor refresh of RagfairRequiredItemsService
Adding a new set + lookup is now atomic
Returns a readonly set, caller shouldn't be able to ever modify this data
Removed memory allocation when calling `GetRequiredOffersById` with a tpl that doesn't have any offerIds
2025-08-17 15:47:03 +01:00
Archangel f96172ac60 Always init ExtensionData & fix BaseInteractionRequestData inheritance 2025-08-17 16:20:32 +02:00
Chomp 24397b0439 Fix logging messages 2025-08-17 09:23:17 +01:00
sp-tarkov-bot ab114352ea Format Style Fixes 2025-08-16 23:31:11 +00:00
Cj a4e3fc7c4e Fix error placed in the wrong spot 2025-08-16 19:30:12 -04:00
Archangel ff3d1091d8 Handle being able to read JSONC files by default 2025-08-16 16:13:13 +02:00
Chomp 90a5b9dbc1 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-08-16 14:38:54 +01:00
Chomp 3c8634edd7 Improved saftey of adjusting values when using randomistionDetails.NighttimeChanges.EquipmentModsModifiers 2025-08-16 14:38:02 +01:00
sp-tarkov-bot afd95052e0 Format Style Fixes 2025-08-16 13:37:51 +00:00
Chomp d94490b52f Added functionality to force PMCs to wear specific armband - default enabled
usec = blue
bear = red
2025-08-16 14:37:06 +01:00
Cj bb649e6748 Warning fixes and ProfileValidatorHelper cleanup (#551)
* Fix warnings in ProfileHelper.cs

* Refactor ProfileValidatorHelper.cs

* reduce nesting
2025-08-15 11:29:46 +00:00
Chomp 07504d406e Renamed TryFillContainerMapWithItem and changed output to better follow c# conventions 2025-08-15 11:24:10 +01:00
Cj b1a3a36832 Warning fixes continued (#550)
* More warning fixes

* Revert ModHelper change
2025-08-14 14:00:36 +01:00
sp-tarkov-bot c32b4dc5a7 Format Style Fixes 2025-08-14 08:48:00 +00:00
Chomp 8601d1cbc1 Added Unlocked equipment crate (BattlePass 0) loot generation 2025-08-14 09:47:05 +01:00
Chomp 1839e0b965 Merge pull request #549 from sp-tarkov/fix-unnecessary-logging
Fixed unnecessary debug logging when processing hideout areas with resources
2025-08-13 16:20:37 +00:00
Chomp c3a4bb448c Filter down hideout areas prior to processing them in UpdateAreasWithResources
Updated hideout area "type" property to not be nullable
2025-08-13 17:15:52 +01:00
Chomp b061200803 Refactor of how bot loot has its position picked to improve performance (#548)
* Initial work on moving container space checks into new class

* Updated tests

Wired up service to save item into inventory when space is found

Updated `FillContainerMapWithItem` to return outcome and not throw exception on failure

Add containers to bot when generating bot equipment

Clean bot cache after completion of loot generation

Removed redundant code from `AddItemWithChildrenToEquipmentSlot`

Removed unnecessary Singleton status from `BotInventoryContainerService`

* Clean-up of service

* Add botId xml docs

* Updated documentation for `FillContainerMapWithItem`

* Code review fixes and improvements

* Remove TODO

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-08-13 15:35:57 +00:00
Chomp 965d503021 Merge pull request #547 from sp-tarkov/fix-pmc-loot-filtering
Fix pmc loot filtering removing valid loot items from pool
2025-08-13 11:45:14 +00:00
Chomp 2d780eb791 Fixed GetLootFromCache filtering out valid loot items 2025-08-13 12:41:29 +01:00
Cj 726e4fccd5 Fix doc, remove unused using 2025-08-13 03:49:38 -04:00
Cj 21e075af2f ItemHelper warning fixes (#546)
* - ItemHelper warning fixes
- Fix Fast panel id replacement
- Disable resharper enumeration highlighting

* Use suggestion
2025-08-13 08:28:06 +01:00
Cj 0964acff8d Fix bad port from node, fix invalid specific extract requirement 2025-08-12 16:13:39 -04:00
Cj 021e5f8239 Log errors before throwing exceptions 2025-08-12 15:49:26 -04:00