Commit Graph

55 Commits

Author SHA1 Message Date
sp-tarkov-bot 5a072be9c1 Format Style Fixes 2025-12-31 10:18:04 +00:00
Chomp 95fa698d87 Reduced code duplication 2025-12-31 10:17:07 +00:00
sp-tarkov-bot a6de0d662d Format Style Fixes 2025-12-31 10:07:02 +00:00
Chomp e2c180306c Show error message when player runs a mod that targets a newer version of SPT than they have installed 2025-12-31 10:06:18 +00:00
Cj 52602aa4da Add Console.ReadLine() to prevent server window from closing 2025-11-29 02:30:57 -05:00
sp-tarkov-bot 2e221604d7 Format Style Fixes 2025-11-27 22:52:18 +00:00
Cj 9d3d8d109c Don't prompt to go to support on missing dependencies. 2025-11-27 22:50:22 +00:00
sheepy 29ecdc5b89 Revise server shutdown error message (#694)
Updated the error message for server shutdown notification.
2025-11-11 18:29:03 +01:00
Chomp 6218b6f605 Added specific error handling for missing mod libs 2025-11-10 19:33:26 +00:00
Chomp e191835824 Improved error message when server fails to start 2025-11-06 13:32:59 +00:00
Alex d672130eeb Moved NoGCRegion into middleware service 2025-10-20 11:48:35 +01:00
Alex 3972e14840 Added NoGCRegion feature 2025-10-20 11:05:58 +01:00
sp-tarkov-bot f9638ee7c2 Format Style Fixes 2025-10-16 07:45:25 +00:00
Greelan 4cfc6a3338 Improve environment variable check flexibility
As per bot suggestion
2025-10-16 11:28:40 +11:00
Greelan 78b41ecde4 Allow bypass of SetConsoleOutputMode function 2025-10-16 11:17:57 +11:00
Cj a1a3db783c Explicitly handle socket exceptions (Multiple servers running) 2025-10-15 01:33:18 -04:00
Chomp 53b950609e Removed dupe log line 2025-10-06 12:26:00 +01:00
Chomp ed4299a194 Merge branch 'develop' into prevent-close 2025-10-06 11:24:44 +00:00
Alex 1f0991f695 Prevent closing the server if an exception happens 2025-10-06 12:16:49 +01:00
Jesse 687b4f7a49 Add blazor & MVC Support (#602)
* Add initial code for Razor pages support

* Remove finalizer

* Try fully loading blazor

This is most likely entirely broken because of a rebase now

* UseSptBlazor after app.Use

* Fix up StaticWebAsset loading, add MudBlazor

* Implement page

* Update comment

* Replaced existing status page with razor

* Track background video in LFS

* Update attributes

* Improved status page theming

* Fix up wwwroot publish folder to SPT_Data/wwwroot

* Added name to page

* Remove unnecessary code

* Begin fixing up MVC & Blazor for modding

* Update TestMod

* Cleanup todo

* Further work out mod support

* Re-order initialization and use logger

* Rename library to SPTarkov.Server.Web

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-10-02 19:03:27 +00:00
Jesse ef6e3b8c3a Http server refactor (#593)
* Refactor various parts of the HttpListener to support Blazor loading

* Add logging for WebSocket requests

* Add better handling for WebSockets not belonging to SPT

* Remove unecessary check

* Remove check as it's already handled earlier now

* Cleanup

* Set delegate
2025-09-20 14:05:23 +00:00
Archangel 14758c4825 Allow any reverse proxy to pass forwarded headers 2025-09-07 18:03:57 +02:00
Cj ed05faa96f Implement PatchManager (#585)
* First pass at Fika's PatchManager implementation

* add comments

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-09-05 09:08:33 +00:00
Cj fafbfeb291 Remove load order/sorting from ModLoader (#584)
* - Remove modloader sorting
- remove order.json
- remove LoadBefore and
LoadAfter
- Remove unused var
- Remove unused locals
- Rename vars
- localize new warnings

* revert test change
2025-09-05 09:03:02 +00: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
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
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 34bd002876 list to ienumerable changes
Removed unused methods

strong to mongoId changes
2025-07-25 12:28:40 +01:00
clodanSPT 2d752457b2 Move port usage (#504)
* Moved port usage code check to before startup

* removed unused import

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-07-23 08:44:34 +01:00
chompDev 95ea6d99fe .NET Format Style Fixes 2025-07-19 17:49:16 +00:00
clodanSPT 7b6f1eb9ad Added OnWebAppBuild load step (#489)
* Fingers crossed this will fix the mod loading issue for configs

* Renamed classes and documentation for clarity

* Remove some extra traces of the old PreSptLoader

* Renamed interface for clarity and updated docs

* Re-introduced PreSptModLoad for now

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-07-19 18:48:48 +01:00
chompDev 0ba517436e .NET Format Style Fixes 2025-07-18 15:21:55 +00: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 362ded1c3e Fixed non-English text display in server console 2025-06-18 20:31:05 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Cj 056de770a8 check both sptLogger.json and sptLogger.Development.json when checking for the correct directory 2025-06-16 00:55:02 -04:00
Chomp e596974d07 Cleaned up usings 2025-06-14 16:43:24 +01:00
Cj e808c181c9 Add error handling for improper shortcut creation... 2025-06-12 19:26:13 -04: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
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 fa1368fb47 Move more initialization, mod loading and http requests over to async 2025-05-29 23:50:06 +02:00
Archangel c930197942 Cleanup AppContext 2025-05-29 23:50:06 +02:00
Cj f5ce6cd2fa Fix console formatting (#295)
* Fix console virtual processing

* remove sneaky using

* Only set on windows
2025-05-28 22:24:40 +01:00
Alex f679dea8d2 sorted code around mod disabling 2025-05-27 13:37:31 +01:00
Cj 0fda28526f Implement module patch abstraction and patch loader (#250)
* Implement patch abstractions and patch loader using an interface

* remove patch loader

* rename patch class
2025-05-11 20:52:14 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
Alex 222ca2e274 Replaced Serilog for custom logger 2025-04-24 16:29:36 +01:00
CWX bbeddcb814 Fix logging in SingleFile setup 2025-04-22 16:00:08 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00