Commit Graph

790 Commits

Author SHA1 Message Date
Chomp 3617e169d6 Cleanup of SetScavCooldownTimer 2025-02-23 15:43:54 +00:00
Chomp 180d66c092 Renamed RemoveOffer function to better explain what its doing + cleanup 2025-02-23 15:08:47 +00:00
Chomp 27882319c9 Improved logic inside CalculateRequirementsPriceInRub 2025-02-23 14:42:23 +00:00
Chomp db4ae865e1 Updated InsuranceController methods to be protected instead of private 2025-02-23 14:31:00 +00:00
Chomp 4d7e942ce1 Improved comparison logic inside IsMapLabsAndInsuranceDisabled 2025-02-23 14:29:56 +00:00
Chomp 4ed1082ba9 Improved comparison logic insideGetBotCap 2025-02-23 14:28:18 +00:00
Chomp 4955e07bde Improved comparison logic inside GetValidTraderIdByEnumValue 2025-02-23 14:26:39 +00:00
Chomp 4f757637ea Cleaned up GetWeaponCaliber 2025-02-23 14:25:20 +00:00
Chomp d0e071a091 Various improvements to bot weapon generation 2025-02-23 14:20:58 +00:00
Chomp b57ee39d32 Reduced duplication between getCompatibleCartridgesFromWeaponTemplate and getCompatibleCartridgesFromMagazineTemplate 2025-02-23 13:42:48 +00:00
Chomp eb4fc520df Improved safety of GetCompatibleCartridgesFromMagazineTemplate 2025-02-23 13:23:23 +00:00
Chomp 588e069c23 Weighted compatible ammo fix
Check the magazine data (in case it's a modded weapon that incorrectly clones a weapon from a different caliber, without updating the data for default ammo)
2025-02-23 11:46:40 +00:00
Chomp 860b5e8148 Fixed incorrect pack offer prices 2025-02-21 23:12:28 +00:00
Chomp 103b797a54 Refactored how flea offer quantity is handled 2025-02-21 17:48:04 +00:00
Chomp f4824a7074 Fixed image router not finding images due to recent client change 2025-02-21 17:31:25 +00:00
Chomp 85900724e5 Fixed multipler typo 2025-02-21 15:07:41 +00:00
Chomp bffeec8361 Handle flea item prices as doubles 2025-02-21 15:05:00 +00:00
Chomp 4d4ff7bfe1 Small cleanup of ragfair offer generator 2025-02-21 13:20:42 +00:00
Chomp fc6c15792d Fixed flea offers not reducing quantity after purchase 2025-02-21 12:58:02 +00:00
Chomp c250fb8dd3 Use global item blacklist in cultist circle reward system 2025-02-21 11:04:40 +00:00
Chomp a24a574f22 Use better method of comparing parent ids 2025-02-20 16:55:35 +00:00
Chomp 6b0e1ffbce Updated all mongoId checks from == to .equals() 2025-02-20 16:47:30 +00:00
Chomp f14507b34f Improved performance of FindAndReturnChildrenAsItems 2025-02-20 16:23:55 +00:00
Chomp a3c9cdb1b1 Fixed error 2025-02-20 15:41:15 +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 355d985349 Slight refactor to webserver init 2025-02-20 15:23:52 +01:00
Archangel 591824f3cc Start refactor for certificate loading 2025-02-20 15:23:47 +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
Chomp 6dc59a4be7 Make use of spread operator 2025-02-19 09:36:07 +00:00
Chomp 8a637188a7 Fixed blacklist clearing itself incorrectly 2025-02-19 09:19:08 +00:00
Chomp 97fd83c6bf Pass bots AID instead of generating one 2025-02-18 12:43:41 +00:00
Chomp 440121514b Fix post-raid PMC messages not working after bot gen changes 2025-02-18 09:31:20 +00:00
Chomp baf1a41c30 Fix insurance not being returned 2025-02-18 09:23:21 +00:00
Chomp dab2f64611 Fixed scavs with unheard pockets 2025-02-17 19:48:57 +00:00
Chomp 1ff8d2cbef Replaced lists containing unique values with HashSets
Reworked Soft Insert id checks

Improved dogtag id lookup memory usage

Removed wave cleanup code
2025-02-17 19:05:47 +00:00
Archangel ea7b3919c0 Update comment 2025-02-17 19:13:16 +01:00
Archangel f1a5e273af Use StartNew while waiting for messages 2025-02-17 18:54:50 +01:00
Archangel 651743ee96 Improve WS Handling 2025-02-17 18:45:14 +01:00
Chomp 054074c51f Store whitelist as hashset not list 2025-02-17 17:00:58 +00:00
Chomp 169e1460bb Updated IsOfBaseclasses and isOfBaseClass to work with ICollection types, not just lists 2025-02-17 17:00:41 +00:00
Chomp 570f9a19be Removed debug logging 2025-02-17 15:15:42 +00:00
Archangel 86b45c18a2 String needs to be read here 2025-02-17 16:04:48 +01:00
Chomp 29de894442 Fixed incorrect usage of GetBotPresetGenerationLimit 2025-02-17 14:45:13 +00:00
Chomp dcd2655171 Replaced lock with Concurrent dictionary 2025-02-17 14:30:28 +00:00
Chomp b5dee1b285 improved bot logging 2025-02-17 14:30:05 +00:00
Chomp 9bbc22c1a1 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-02-17 14:28:52 +00:00
Chomp 167e55c126 Resolve issue with generating too few bots 2025-02-17 14:28:47 +00:00