Commit Graph

42 Commits

Author SHA1 Message Date
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp b69544ae2c Added lock to GetStaleOfferIds
Made `RagfairRequiredItemService` a singleton
Made `RagfairRequiredItemService ` store offerIds instead of offer objects, reducing memory footprint
Reworked `GetOffersThatRequireItem` to work with `RagfairRequiredItemService` changes
Moved `GenerateDynamicOffers` to run after garbage colelction, this means GC will work on memory prior to new offers being added but after stale offers are removed

Made `PaymentHelper` a singleton + Store currency tpls in a hashset instead of list

Comment improvements
2025-06-16 14:46:37 +01:00
Chomp e869f6ebef Refactored ragfair code for improved readability 2025-06-16 13:00:06 +01:00
Cj 07f57e16a8 Task: Rename Assets folder to SPT_Data (#394)
* Rename `Assets` to `SPT_Data`

* Added GZ 20+ variant to repeatable quest system #395

* Repeatable code cleanup

* Removed PMC level check for repeatable Quest pool generation #395
they will always generate for both GZ variants

* Rename `Assets` to `SPT_Data`

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-06-15 09:54:33 +01:00
Chomp e596974d07 Cleaned up usings 2025-06-14 16:43:24 +01:00
Jesse 2c52012740 Further async changes (#387)
* Further async changes
- SaveServer & Backup Server are now async
- Anything that ties in with SaveServer saving (Such as callbacks) are now async
- Various async util methods added
- Removed two wrapper methods and switched code over to use the actual method

* Update test
2025-06-09 20:09:12 +01:00
Jesse 2ff286e5ed Handle closure of WebSockets better, improve formatting of code (#383)
* Handle closure of WebSockets better, improve formatting of code

* Update comment
2025-06-09 08:56:07 +01:00
Chomp 9dd62471e8 Fixed typo 2025-06-05 09:51:30 +01:00
Chomp a92994e50b Changed Error handling request to critical 2025-06-04 19:58:04 +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
Archangel 4e3c755e90 Remove AppContext, store profile related data in ProfileActivityService 2025-05-30 19:36:23 +02:00
Archangel 7d0c8dfc38 Rename parameters with underscore 2025-05-29 23:50:06 +02:00
Archangel cc4f1f2964 Remove assignments as requested 2025-05-29 23:50:06 +02:00
Archangel 8e69bd4aec Await disposal 2025-05-29 23:50:06 +02:00
Archangel fa1368fb47 Move more initialization, mod loading and http requests over to async 2025-05-29 23:50:06 +02:00
Chomp 7ec684aa7e Fixed issue with websockets not reconnecting post-raid
We no longer remove old websocket connections

Converted `SptWebSocketConnectionHandler` to use a primary constructor

Removed websocket monitor from `SptWebSocketConnectionHandler`
2025-05-29 11:55:30 +01:00
clodanSPT 1968afccba Fixes and logs (#301)
* Added safety checks around dictionary lookups for Areas Stages

* Added lots of debug logs for websocket handling

* Removed debug comments

---------

Co-authored-by: Alex <alex@dm-me-for-questions.com>
2025-05-29 11:06:32 +01:00
clodanSPT a58065871f Removed ConcurrentDictionary in favor of locked dictionary, and added… (#287)
* Removed ConcurrentDictionary in favor of locked dictionary, and added reconnection behaviour to OnConnection

* Refactored code to handle multiple ws connected at the same time and offer graceful disconnection of appropriate sockets

* removed unused usings

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-05-28 11:42:56 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
CWX c8e3c70df3 add throw so we can use debugger on it. 2025-05-03 19:21:19 +01:00
Chomp e716e7b1d8 Made use of ProfileActivityService inside HandleFallback
Removed storage of session id from `HandleFeedback`

Cleaned up `ProfileActivityService`
2025-05-01 13:51:04 +01:00
hulkhan22 247c0b77b1 fix: Infinite loading screen (#216)
* Fix various issues that cause infinite loading

* Revert nullable
2025-05-01 08:18:10 +01:00
CWX 18fb3b5b16 Make Loaded configs static 2025-04-25 13:49:41 +01:00
Alex 222ca2e274 Replaced Serilog for custom logger 2025-04-24 16:29:36 +01:00
CWX 811bdadac0 Revert "remove output to screen, limit file logging"
This reverts commit 26a238c285590a8f24a789698391725321bc6da2.
2025-04-23 15:35:51 +01:00
CWX 690f9f3e83 Revert "Remove logging Requests"
This reverts commit d0aad46694ba2047b518ea1937a4b04a92b9a253.
2025-04-23 15:35:39 +01:00
CWX e5ce7c990a Revert "remove unused types"
This reverts commit d5efe329d41cbef89207a85783a16042430cc73b.
2025-04-23 15:35:32 +01:00
CWX bd2afcb1a0 remove unused types 2025-04-23 15:16:24 +01:00
CWX 1572a54f40 Remove logging Requests 2025-04-23 15:13:02 +01:00
CWX b0ff7bb595 remove output to screen, limit file logging 2025-04-23 10:20:30 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 7de2393dd1 removed limit on logging as losing valuable info, to look into better solution for larger data 2025-04-22 14:24:03 +01:00
CWX 8032358a5e Fix ragman messages from fleamarket 2025-04-20 10:26:47 +01:00
Chomp 8375739a81 Cleaned up how request logging is handled 2025-04-12 14:42:35 +01:00
Chomp 9c6058b0a4 Cleaned up header collection when handling request 2025-04-12 14:35:01 +01:00
Chomp 9d8c92bf83 Prevented null session Ids being saved into app context cache 2025-04-12 13:56:02 +01:00
CWX 026c4f0271 limit the amount that can be logged to console and file 2025-04-11 18:06:37 +01:00
CWX 74e798b190 move SptWebSocketConnectionHandler to Concurrent Dictionary 2025-04-11 12:25:52 +01:00
Archangel c5e1ec4030 Add verbose logging to failing handlers for now 2025-03-09 18:11:22 +01:00
Chomp 6b48dfa463 Made locks more consistent across solution 2025-03-08 09:55:36 +00:00
Chomp 33c56e0730 Updated values to be consts where possible 2025-03-08 09:33:04 +00:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00