Commit Graph

178 Commits

Author SHA1 Message Date
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
Chomp cf99d9d824 Use mongoId type instead of string 2025-08-03 22:00:25 +01:00
Chomp 08815da10d Improved Fake PMC offer count fluctuations #527
Added fake PMC offer count index to `RagfairOfferHolder` and made use of it when checking if offer count is over desired count
2025-08-02 11:22:27 +01:00
Archangel aec8420d53 Cleanup todos, run VS cleanup & enforce file scoped namespacing 2025-07-31 15:18:20 +02: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
Chomp ef50c3fea1 Condensed code with use of ?? 2025-07-25 20:15:52 +01:00
Chomp 8a7690e13b Improved performance of GetRandomElement when processing IEnnumerables 2025-07-25 18:26:09 +01:00