Commit Graph

185 Commits

Author SHA1 Message Date
DrakiaXYZ 1bdfd4186e Implement ToStringJsonConverter Read method 2025-10-11 22:55:44 -07:00
DrakiaXYZ b416d7109a Fix launcher not showing mods
Convert `Version` and `SptVersion` to strings when serializing JSON for AbstractModMetadata
2025-10-11 22:44:27 -07:00
Archangel 699a4dfafe Cleanup 2025-10-10 16:14:23 +02:00
Archangel c372418165 Improve SptLogger stability & do not implement IDisposable 2025-10-10 16:13:24 +02:00
Chomp 2376d54d71 Fixed flea offer item count + cultist circle rouble value being incorrect when using randomUtil.GetPercentOfValue 2025-10-06 09:51:40 +01:00
Chomp 6e2286ca5b Added system to allow adjustment of static spawn weights via config
reduced `Power substation utility cabin key` on customs to 60% of original weight
2025-10-03 20:28:39 +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
Chomp ec682ccc16 Updated GetTrader to use mongoId for traderId + removed redundant 'ragfair' check + made sessionId optional + added comments 2025-09-26 13:05:20 +01:00
Archangel 1bc3ef63f4 Send content length as a header for files 2025-09-19 15:27:49 +02:00
Archangel f3470aac59 Remove redundant checks for MongoId 2025-09-18 19:57:34 +02:00
Chomp 19b26c25b9 RagfairOfferHolder lock improvements (#586)
* `RagfairOfferHolder` lock improvements

* Perf improvement for debug logging inside `RemoveExpiredOffers`

* Replaced ConcurrentBag with ConcurrentDictionary to maintain previous behaviour

* Removed unnecessary debug logging

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-09-08 12:12:19 +01:00
Chomp 735b5956e6 Fixed BTR drive service issues #580 2025-08-30 16:55:04 +01:00
Chomp da96cfbf79 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-08-28 11:33:04 +01:00
Chomp bbd0b50d34 Removed hotfix for System.AccessViolationException error 2025-08-28 11:32:21 +01:00
sp-tarkov-bot 618dd15886 Format Style Fixes 2025-08-27 21:54:22 +00:00
clodanSPT 5a609835a4 Fixed patch for extension data (#577)
Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-08-27 21:53:39 +00:00
Archangel 1d3e388a36 uhh 2025-08-27 16:01:28 +02:00
Archangel b25e9f8813 Fix up conditions for BEM Builds 2025-08-27 14:17:57 +02:00
Chomp 0df0d95363 First pass at rest area hideout changes 2025-08-23 21:02:24 +01:00
Archangel 9dec5e8dc7 Update bot jsons 2025-08-23 19:16:52 +02:00
Archangel 4c7fdf1471 Set change I made during testing back 2025-08-21 16:21:08 +02:00
Archangel d413a6e9c5 Remove TraderStore, use DatabaseService as the source of truth 2025-08-21 16:18:41 +02:00
clodanSPT e6912d0efb Fixed timer for non-UTC zones (#560)
* Fixed timer for non-UTC zones

* Added UT and removed unused method

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-19 16:49:28 +00:00
Chomp 8573e6ae02 Use string.empty and MongoId.Empty() where appropriate 2025-08-17 21:35:34 +01:00
Archangel 16bc24813c Cleanup DatabaseImporter 2025-08-17 19:10:36 +02:00
Chomp c8108600ec Updated ProcessStaleOffer and FlagExpiredOffersAfterDate to use offer object extension method to check if its a trader offer 2025-08-17 16:40:42 +01:00
Archangel ff3d1091d8 Handle being able to read JSONC files by default 2025-08-16 16:13:13 +02:00
Chomp 4a081a7ac3 Updated class param formatting 2025-08-11 21:08:55 +01:00
sp-tarkov-bot 1474d2b799 Format Style Fixes 2025-08-11 14:13:49 +00:00
Cj 76e91047d6 More warnings fixes (#542)
* Fix more warnings, add new exception

* Run formatter

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-11 14:13:02 +00:00
sp-tarkov-bot a4995b7318 Format Style Fixes 2025-08-09 20:41:17 +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
Archangel fbb0e6cd6a Add configurable build text colors 2025-08-09 14:57:07 +02:00
sp-tarkov-bot 39118c9d56 Format Style Fixes 2025-08-09 12:49:25 +00:00
Archangel 59fca768be Make lists readonly and do not assign unecessary vars 2025-08-09 14:48:24 +02:00
sp-tarkov-bot 28f84663f8 Format Style Fixes 2025-08-09 12:46:06 +00:00
Archangel 1065c80f48 Remove nodisms from WatermarkLocale 2025-08-09 14:45:19 +02:00
Archangel 96a62c20a7 Make Watermark use primary constructor 2025-08-09 14:38:50 +02:00
Archangel 744bb7af74 Make versionLabel more clear 2025-08-09 14:32:01 +02:00
Archangel a46cb06ddb Fix up formatting of version tag 2025-08-09 14:26:12 +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
Chomp 6b297adf68 Replaced ProbabilityObjectArray.Draw() with DrawAndRemove Draw
Reduced overhead when drawing a large number of elements during loot generation
2025-08-06 17:52:49 +01:00
Chomp 3f405fc67e Reduced scope of lock used in GetExpiredOfferItems() 2025-08-06 17:04:49 +01:00
Chomp caafec6ab0 use correct nomenclature for fields in RandomUtil + made private methods protected 2025-08-06 15:22:09 +01:00
Archangel 8a4f2a297b Remove loot cloners and make LazyLoad return a new result each request 2025-08-06 15:33:11 +02:00
Archangel 237a829e5d Update to CoreCompile & Include file for compiliation 2025-08-05 22:04:34 +02:00
Archangel e86949c361 Keep ProgramStatics commited, but also ignored so git doesn't keep tracking it's changes 2025-08-05 21:47:49 +02:00
Archangel 23389b48c4 Make ProgramStatics non nullable, add auto generated header & add getters 2025-08-05 20:33:23 +02:00
Chomp 984e10ae76 Added GetMinutesAsSeconds method
Removed magic number
2025-08-05 15:57:06 +01:00