Commit Graph

118 Commits

Author SHA1 Message Date
Chomp e66da4abf4 Comment improvements 2025-03-05 14:27:51 +00:00
Chomp c5864ad2e4 Refactored ragfair offer holder to pass offer id around instead of full offers
Optimised removing player offer from cache
2025-03-05 13:20:12 +00:00
Chomp 4e5636179d Added comments 2025-03-05 13:13:54 +00:00
Chomp e3664d3614 Comment improvements
Made various variables static / readonly
2025-03-04 11:47:14 +00:00
Chomp 6014347c7d Improved ragfair expired offer performance 2025-02-26 20:09:25 +00:00
Chomp 3b7c8dbdb5 Fixed ragfair offers not expiring + some perf improvements
todo:
fix "offer not found"
Replace _offersByTraderLock with hashset + manual locks
2025-02-26 16:45:04 +00:00
clodanSPT 2464246fd7 Pre spt mod loader (#102)
* partial commit

* pre spt mod loader refactored

---------

Co-authored-by: Alex <alex@dm-me-for-questions.com>
Co-authored-by: clodan <clodan@clodan.com>
2025-02-25 16:34:51 +00:00
Chomp e6c21f131a Optimised ListCumSum 2025-02-25 15:04:51 +00:00
Chomp 8aebbcd395 Updated GetArrayValue to use same logic as optimised GetCollectionValue 2025-02-25 13:29:34 +00:00
Chomp c857359b5a Optimised GetCollectionValue and GetPmcNicknameOfMaxLength 2025-02-25 12:53:41 +00:00
clodan 22b140ae4f Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-02-20 15:21:19 +00:00
clodan 7a2db04cfe Added fast cloner and benchmarks 2025-02-20 15:21:13 +00:00
Archangel 4665cef126 Slightly improve HashUtil
Should save some CPU cycles reversing and copying an array. This should also maintain it's big endianness?
Switch over random to use RandomUtil and compile regex
2025-02-20 16:16:37 +01:00
Archangel 92c1f6502d Add writefile for bytes 2025-02-20 15:23:41 +01:00
Chomp 5a5e18f568 Add HTTPS support (#101)
* Initial work on adding https support

* Updated logging

* More logging

* Added support for a certificate password

Replaced method used for getting path to cert

* Reduce duplication of logic in program.cs

* Cleanup of `HttpServer`

* More https stuff

* https

* Fixed remote IP stuff

* Fixed non-local request logging

* Updated assets

* Replaced `singleplayer/bossconvert` to `singleplayer/bosstypes`

* Updated map loot

* Asset update

* Stop storing a bots inventory and other values to save memory

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
Co-authored-by: clodan <clodan@clodan.com>
2025-02-20 12:27:55 +00:00
Archangel 86b45c18a2 String needs to be read here 2025-02-17 16:04:48 +01:00
Archangel b122f7106c Handle check in if statement 2025-02-17 15:14:07 +01:00
Archangel cfca1e221f Deserialize readers directly
- Saves quite a bit of time on DB load
2025-02-17 15:08:46 +01:00
Archangel aa382585bd Add logging for http and websocket start 2025-02-14 15:14:27 +01:00
Archangel da331f6de6 Revert "Clone using a MemoryStream"
This reverts commit 0da2fa0eabaac24ce360ee8d9506cc695b9e54ad.
2025-02-14 14:44:20 +01:00
Archangel d3990c1219 Use file streams to deserialize files
- Improves load speed
- Lowers memory overhead
2025-02-14 12:52:18 +01:00
Archangel 711986357a Clone using a MemoryStream 2025-02-14 12:51:07 +01:00
Archangel d7ab7b4d44 Bypass cache 2025-02-13 17:01:20 +01:00
Archangel d560859ec9 Cache created expressions, reducing overhead of re-creating these everytime 2025-02-13 16:15:57 +01:00
Archangel 0383494d40 Various ImporterUtil improvements
- Cleans up the spaghetti in the LoadRecursiveAsync method for smaller and more easily readable methods
- Improves lock access, this slashes DB load times on slower PC's nearly in half from 12000+ms to 6000ms
2025-02-13 15:59:09 +01:00
Jesse d96bd37bda Add timer to database 2025-02-13 15:59:09 +01:00
Chomp da75cb842b Added method for modders 2025-02-10 21:00:44 +00:00
CWX 7d9e7f0727 fix bundle sending 2025-02-10 20:38:12 +00:00
CWX e8acef4e75 fix loading of bundles 2025-02-10 19:40:35 +00:00
Alex a3bc7eea23 Merge branch 'main' into develop
# Conflicts:
#	Server/Logger/WebApplicationLogger.cs
2025-02-09 18:04:46 +00:00
Alex c67c807dd3 WriteToLogFile now implemented 2025-02-09 17:46:18 +00:00
Chomp 22e52dbdb3 Removed CompareUtil as its been replaced by itemHelper.IsSameItems 2025-02-09 15:34:47 +00:00
Chomp 2b2ae8fa7b Made changes to GenerateCrc32ForData 2025-02-09 15:33:05 +00:00
CWX 2b9a6ab7b2 Fix build errors 2025-02-08 13:09:56 +00:00
Chomp ac7b2daeba Renamed interface to IOnLoad
Added OnLoad mod
Expanded `OnLoadOrder` options
2025-02-08 12:18:57 +00:00
CWX 5c6fa9242f BIG BOI FORMATTING 2025-02-07 19:36:17 +00:00
CWX c221f3919f implement EftEnumListConverter 2025-02-07 16:20:54 +00:00
Chomp e644ed58ae Ragfair code formatting 2025-02-07 15:49:24 +00:00
CWX db351c8632 Fix errors by using the actual error codes 2025-02-07 12:43:54 +00:00
Chomp 0394f470c9 Improved JsonUtil comments 2025-02-06 22:29:17 +00:00
Chomp c709efbca2 Improved nullguarding inside RagfairOfferHolder 2025-02-06 22:20:24 +00:00
Chomp b0ce98d847 Store expired offer id inside RagfairOfferService instead of the offer itself 2025-02-06 16:54:43 +00:00
Chomp 2f5394ae93 Reduced duplicate date stored in RagfairOfferHolder by storing offerIds instead of the offer itself 2025-02-06 16:40:32 +00:00
Chomp 83f9c0c3eb Flagged various strings as consts 2025-02-06 12:57:23 +00:00
Chomp 9b33dd2d35 Updated itemTpl + weapon tpls to be consts 2025-02-06 11:21:36 +00:00
Chomp 955e44eb62 Multiple casting fixes 2025-02-05 20:16:19 +00:00
CWX a4f8036d09 formatting, fix build error 2025-02-05 07:36:13 +00:00
CWX f648f42721 This is just Jetbrains formatting and code syntax styling 2025-02-05 06:56:51 +00:00
Chomp 6a27dd0ef5 Fixed issue 2025-02-04 20:34:46 +00:00
Chomp db0feff1d8 Made ProbabilityObjectArray slightly less awful 2025-02-04 19:38:59 +00:00