Commit Graph

50 Commits

Author SHA1 Message Date
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
Chomp 1d5162c761 Various changes and fixes for things that have been bugging me
Removed/flagged unused props
Typo fixes
Use `FirstOrDefault` over direct index access
Log stacktrace on exception inside `CreateWeaponItems`
2025-06-08 10:40:40 +01:00
Archangel 674b86656a Include reference to Reflection in .Server 2025-06-04 18:56:33 +02:00
Jesse 354adf2c0a Add File validation (#344)
* Add file validation

* Revert "Added checks.dat build script (#343)"

This reverts commit 39228f88e705b58858d162256a5b5e10fe99148c.

* Update to use pwsh

* Wrap code in using
2025-06-02 20:21:49 +01:00
clodanSPT 3fe8072604 Added checks.dat build script (#343)
Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 17:56:06 +01:00
clodanSPT 2ba11fc789 Added rolling log files features based on file size (#342)
* Added rolling log files features based on file size

* made properties readonly

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-06-02 17:40:40 +01: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
Chomp 1aa9bc3f2f Merge pull request #304 from sp-tarkov/async-refactor
Program initialization change & webserver async
2025-05-30 10:00:53 +01:00
Cj a98486109f add locale for pre-4.0.0 server mods 2025-05-29 18:40:08 -04: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
CWX 870b0d1064 Move logging for Micro$ to kestral file logging, this cleans up spt.txt 2025-05-28 09:52:35 +01:00
Alex f679dea8d2 sorted code around mod disabling 2025-05-27 13:37:31 +01:00
Chomp 983fb644be Updated various Microsoft deps 2025-05-21 17:43:38 +01:00
hulkhan22 320e6adb84 Minor cleanup 2025-05-17 13:04:34 +02:00
Alex 45d66483c7 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-05-15 19:53:34 +01:00
Alex 93b612a60c Changed OutputPath to OutDir for rider compatibility 2025-05-15 19:53:22 +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
Cj 5af362b0b3 Implement loading metadata from the assembly 2025-05-07 15:05:22 -04:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
Chomp ae98f57bd9 Replaced various string.toLower() == x checks with string.Equals 2025-05-05 14:03:57 +01:00
Chomp e30d620c44 Skip second if check when filename is "package.json" inside LoadMod()
Improved name and file type checks

Renamed variables
2025-05-05 13:54:04 +01:00
Alex d7e67af662 Added dev and prod files for logger 2025-04-24 16:44:56 +01:00
Alex 222ca2e274 Replaced Serilog for custom logger 2025-04-24 16:29:36 +01:00
CWX 690f9f3e83 Revert "Remove logging Requests"
This reverts commit d0aad46694ba2047b518ea1937a4b04a92b9a253.
2025-04-23 15:35:39 +01:00
CWX 1572a54f40 Remove logging Requests 2025-04-23 15:13:02 +01:00
CWX af491a9654 forgot to remove that 2025-04-23 10:20:15 +01:00
CWX e78ea01cb5 update appsettings to use async 2025-04-23 10:17:21 +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
CWX db093bebf3 fix publish locally 2025-04-19 19:36:47 +01:00
CWX 757456659c fix exe ico 2025-04-19 18:41:19 +01:00
CWX 546b02779c set console to encoding utf8 2025-04-19 11:59:04 +01:00
Chomp 5442a46f39 Merge pull request #155 from sp-tarkov/localeService
Locale service
2025-04-18 09:52:25 +01:00
CWX cd94eee774 removed duplicate logging 2025-04-17 16:30:08 +01:00
CWX eed3c5e105 added and fixed spelling on comments 2025-04-17 13:20:14 +01:00
CWX e55aba79ac Use ProgramStatics in places to disable Modding with Flag 2025-04-16 11:51:44 +01:00
CWX 0f2e18c34d renamed as its dependant on the build not what config is run
just to add,
fat fingered commit instead of moving to a new line.

server in debug mode will use appsettings.development.json

this has changed to have three sub logging folders - Kestrel, Requests, spt
before the logging changes we lost all kestrel logging, which sometimes made it hard to understand failed requests

in release it will use appsettings.json
this will log to console and spt only
2025-04-15 18:46:38 +01:00
CWX b520c34930 cleaned up logging a little 2025-04-15 18:37:18 +01:00
Chomp f104ab1417 Improved logging 2025-04-09 17:20:24 +01:00
CWX 1fa7e59855 try loading cert after gen, always recopy assets 2025-04-08 18:52:20 +01:00
CWX 797c2109a0 add back launchSettings json, should fix debugging in IDE's, updated readme to reflect changes 2025-04-08 10:09:00 +01:00
clodan 3c83018513 Added ServiceProvider to ApplicationContext and added static callable reference to the ApplicationContext instance 2025-03-09 16:50:09 +00:00
Archangel 63737e656c Centralize globally used build properties 2025-03-07 17:47:47 +01:00
Archangel 852f95a56c Update logger targets 2025-03-07 15:41:23 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00