Commit Graph

65 Commits

Author SHA1 Message Date
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
Jesse 60958b3d24 Merge pull request #544 from sp-tarkov/remove-warnings
Remove unused dependencies and improve code quality
2025-08-12 19:26:05 +02:00
Lacyway d468848b0c Improve MongoIds (#537)
* Mongoid improvements pt1

* Format Style Fixes

* Fix incorrect string

* Fix != comparison

---------

Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com>
2025-08-09 11:50:49 +01:00
Archangel f3134dec59 Fix up BLEEDING_EDGE not being semver compliant 2025-08-08 22:48:09 +02:00
Cj 529fe61f23 Controller house keeping (#532)
* Cleanup BotController.cs

* More controller cleanup

* More dialogue changes
2025-08-05 16:24:59 +01:00
Archangel c3b36f4c7d Handle invalid profiles on all IOnUpdate 2025-08-05 17:20:49 +02:00
Chomp e7fd757dce Improved how bots are generated to be less blocking
Updated `GenerateBotWaves` to return empty results when request data is empty

Cleaned up `GenerateBotWave` to not need a manual lock
Improved `botRelativeLevelDelta` value in pmc.config

Updated `MatchBotDetailsCacheService` to store PMCs primary weapon tpl
2025-08-04 13:25:19 +01:00
Jesse fc7660b6c8 Slight bundle & fileutil refactor: (#524)
- Actually load the bundle cache file now
- Don't read file as string with StreamReader, instead read with ReadAllTextAsync
- Slight refactor to bundle hashing

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-30 22:23:29 +00:00
sp-tarkov-bot 418d121cf1 Format Style Fixes 2025-07-28 21:19:26 +00:00
Jesse bf5dedb672 Add currently active client mods in ProfileActivityService (#523)
* Add currently active client mods in ProfileActivityService

* Add method to fetch active client mods on profile
2025-07-28 21:18:38 +00:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
sp-tarkov-bot a687320d75 .NET Format Style Fixes 2025-07-21 02:26:37 +00:00
Refringe f6894ad33c Validating auto-format workflow.
This style change should be automatically reverted.
2025-07-20 21:17:53 -04:00
Chomp 59d33d2621 Deconstructed dict KvP to improve readabiltiy + string to mongoId conversions 2025-07-20 11:57:15 +01:00
clodanSPT 1af50bfd34 Application cleanup (#485)
* Changed application to use background services and removed hacky http server startup

* Small improvements and method removals

* Removed Core dependency on Web application SDK

* Fixed wrong imported type

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-18 16:21:24 +01:00
Chomp ca5c2b8066 Return the created profileid/sessionid when registering an account 2025-07-17 16:30:12 +01:00
Chomp 2639504471 String to MongoId conversions
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +01:00
Chomp 9cdbb9b1f3 Fixed typo in method name 2025-07-07 11:28:12 +01:00
Cj 1de6a75cbf Update controllers sessionIds 2025-07-07 05:50:28 -04:00
Chomp 3d11031dc6 Converted sessionIds from strings to MongoId struct 2025-07-07 09:34:43 +01:00
Cj 0b18b7e4ba Convert routers and callback sessionIds to MongoIds (#453)
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-06 10:19:56 +01:00
Jesse 7b606fb2a7 Small changes and cleanups (#448)
- await StartBackupSystem as it's an awaitable
- Update comment in MongoId
- Set more id's in HideoutArea to MongoId
- Remove unused logging records

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-04 18:05:27 +01:00
Jesse b6692fead4 Chatbot async improvements (#446)
* Add better chatbot handling by making them asynchronous

Removes the need for having RunInTimespan as await Task.Delay now can handle this

* Remove now unused classes

* Handle commando's commands with ValueTask

* Set values as not nullable, client sends all of these
2025-07-04 18:04:37 +01:00
Chomp 2609db2536 Removed unused injections 2025-07-04 09:40:22 +01:00
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02:00
Jesse ebe8f9ded5 Mongoid changes (#440)
* Remove old IsValidMongoId and Regex

* Convert more configs to MongoId, as well as BaseClasses

* Remove HashUtil.Generate(), replaced with new MongoId()
2025-07-03 15:42:16 +01:00
Chomp 5c26f47e2f Use correct new MongoId() instead of hashutil 2025-07-02 10:56:10 +01:00
Chomp 873b0b11f7 Passed version id string into return object 2025-07-02 10:29:21 +01:00
chompDev c5216044da .NET Format Style Fixes 2025-06-28 18:09:13 +00:00
Jesse 5686f4a486 Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
2025-06-28 19:08:42 +01:00
Chomp 6126dc2394 Added item extensions 2025-06-28 10:04:52 +01:00
Chomp c91b6c4407 Improved accuracy of client/match/join and client/match/group/start_game 2025-06-26 11:14:24 +01:00
Chomp 68c84dd966 Cleanup of usings 2025-06-24 17:03:26 +01:00
chompDev e128605f52 .NET Format Style Fixes 2025-06-23 16:55:25 +00:00
Cj 74db71e32b handle /client/putHWMetrics (#421) 2025-06-23 17:54:48 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00: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
Chomp c8e1c48e98 Fixed profiles ignoring _ragfairConfig.RunIntervalSeconds value 2025-06-09 17:27:02 +01:00
Chomp 609bad2431 Fixed selecting 'delete messages' on a dialog failing #378 2025-06-08 16:18:18 +01:00
hulkhan22 332497a12c Make method protected to ease modding 2025-06-07 18:49:02 +02:00
hulkhan22 bc61f120d7 Configurable BTR delivery time 2025-06-07 17:53:12 +02:00
Archangel e88f83ba7e Make ItemEventRouter's asynchronous 2025-06-05 20:31:32 +02:00
Chomp 8023aff959 Improved how OnUpdate is handled 2025-06-05 14:21:28 +01:00
Chomp 09211c78ee Updated OnUpdate to return task<bool> 2025-06-05 14:12:10 +01:00
Chomp 969e94975e Fixed hideout OnUpdate not triggering correctly 2025-06-05 13:52:27 +01:00
Chomp 82b8c7d2da Fixed ragfair offers not being processed Fixes #358 2025-06-05 13:41:40 +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
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