Commit Graph

124 Commits

Author SHA1 Message Date
andrei-zgirvaci 7830d62c7d feat: add MacOS support 2025-12-21 17:01:31 +01: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
Chomp 2be1310c64 Revert "Updated nuget packages"
This reverts commit f6d9d461a6.
2025-10-31 18:37:02 +00:00
Chomp f6d9d461a6 Updated nuget packages 2025-10-31 16:36:46 +00:00
Cj b99f3f67cc Merge pull request #669 from sp-tarkov/Assembly-ref-validation
Validate core assembly reference when loading mods
2025-10-28 21:01:46 +00:00
sp-tarkov-bot 56318f4294 Format Style Fixes 2025-10-20 12:01:26 +00:00
Alex f572304444 using interlocked 2025-10-20 11:51:35 +01: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
CWX 9db19aa730 Update launchSettings.json
Add option for linux in launchSettings.json
2025-10-19 22:32: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
DrakiaXYZ c756479239 Fix mod SptVersion to be a range (#605)
* Fix mod SptVersion to be a range
- SptVersion and ModDependencies now use a Range instead of a set version
- Remove IsValid and IsValidRange checks from ModValidator, as invalid values will fail to parse into the strong types before this method is called
- Remove unused "AnySatisfies" and "IsValid*" methods from ISemVer
- Update TestMod to use Range types

* Formatting

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
2025-10-07 15:56:48 +00:00
sp-tarkov-bot 3e576a1143 Format Style Fixes 2025-10-07 15:26:13 +00:00
Archangel 501f5d6615 Update exception thrown if AbstractModMetadata fails to Activate 2025-10-07 17:25:10 +02:00
Chomp c4b4cf666f Updated modloader-loaded_mod logging 2025-10-07 15:04:58 +01: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
Chomp 7350a87c5f Undo test code changes 2025-10-05 14:28:14 +01:00
Chomp 022c3d3d0a Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-10-05 14:07:40 +01:00
Chomp 8e476d6992 Exclude the base dll from being copied out of root 2025-10-05 14:02:29 +01:00
sp-tarkov-bot af29eff9f8 Format Style Fixes 2025-10-05 13:00:50 +00:00
Chomp f6fb975f45 Copy DLLs to data/libs on publish 2025-10-05 13:59:58 +01:00
Archangel c1ae74b9ad Fix up pathing 2025-10-02 21:34:25 +02: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
Cj aa3ee64526 Prevent key has already been added exception when checking for duplicate mods and building modPackageData 2025-09-30 12:06:14 -04:00
Chomp a558aaf233 Show spt version targeted when showing loaded mods inside modloader-loaded_mod message 2025-09-23 15:51:52 +01:00
Cj 312be1361a Use GUID when searching for duplicate mods 2025-09-22 08:08:50 -04: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 ba47cc3a53 Update libraries 2025-09-10 18:37:29 +02: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
Chomp 4b1fc670e4 Updated mod loading to use guid as key for Mod dependencies, LoadBefore, LoadAfter, and Incompatibilties 2025-09-04 16:39:01 +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
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
Cj 4d0eb4d4f3 Change to using builtin SemVer type for AbstractModMetadata and ProgramStatistics.Generated (#536)
* Change to using SemVer builtin type

* Remove SptVersion from config, remove redundant .ToString()

* Update test mod, fix watermark string conversion
2025-08-09 20:40:25 +00:00
Chomp a0013fceca Updated nuget packages 2025-08-06 19:22:49 +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 b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
sp-tarkov-bot b45d5befb1 Format Style Fixes 2025-07-27 08:06:42 +00:00
Chomp 526c3f6c44 string > mongoid
added nullguard
2025-07-25 21:12:37 +01:00