Commit Graph

51 Commits

Author SHA1 Message Date
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
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
clodanSPT ee51e1fcab Refactored pre spt mod loader to user IOnLoad, moved Watermark to IOnLoad as well (#313)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
2025-05-30 11:03:08 +01:00
Archangel c930197942 Cleanup AppContext 2025-05-29 23:50:06 +02:00
Cj 74cc1ac300 Move repeatable quest code into repeatable controller 2025-05-29 14:56:14 -04:00
Chomp f25aaa70f1 Added nullguard to SaveActiveModsToProfile 2025-05-27 17:12:20 +01:00
Chomp c39ab9e1e7 Improved nickname validation code clarity
Improved accuracy of 2 responses:

`client/game/profile/nickname/validate`
`client/game/profile/nickname/change`
2025-05-21 16:09:11 +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 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 69ecde139e Update uasges to use LocalService 2025-04-17 13:21:38 +01:00
CWX 199a8fc1d9 added a partial class gen
this will take csproj properties and set them, this will allow us to use publish -p:{parameter=value} for building the server
2025-04-15 20:31:06 +01:00
Chomp 1f741a0f52 made GetErrorCode static 2025-03-08 11:14:09 +00:00
Chomp 7997493c5b Made IsCriticalError static 2025-03-08 11:13:26 +00:00
Chomp 1f22450c51 Updated OnUpdate to match interface param name 2025-03-08 10:15:36 +00:00