Commit Graph

257 Commits

Author SHA1 Message Date
Chomp 42d2e3f7ea Updated properties to not be nullable + various fixes 2025-07-16 14:57:24 +01:00
Chomp f3482e28d9 Removed unnecessary nulls from Globals class 2025-07-16 12:20:19 +01:00
Chomp 8dce055acf Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-07-16 11:40:49 +01:00
Chomp 99c14de7af String to Mongo Id conversions
Cleaned up global class null values
2025-07-16 11:40:38 +01:00
Lacyway 32510bd67f Add SendMessageToAll method (#484)
* Fix typo

* Add SendMessageToAll method
2025-07-16 11:34:05 +01:00
Chomp e27b2b91e3 String to MongoId changes + Updated nullability of trader helper methods 2025-07-16 11:16:03 +01:00
Chomp e42e53e492 Fixed profile creation issue 2025-07-15 17:19:47 +01:00
Chomp 2639504471 String to MongoId conversions
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +01:00
Chomp 6f3ce60cec Simplified calls to .Remove() 2025-07-14 20:02:46 +01:00
Chomp 5ef2271a29 Converted collections to their frozen counterparts for improved lookup speed 2025-07-14 19:56:20 +01:00
Chomp e148f5a998 Flag RandomisedResourceDetails as nullable 2025-07-14 16:03:35 +01:00
Chomp 585a91afcc Removed reflection from GetBotEquipmentSettingFromConfig 2025-07-14 15:54:54 +01:00
Chomp fba084639c Add back incorrectly removed properties that are accessed via reflection + improved dictionary access 2025-07-14 15:42:50 +01:00
Archangel 8be5b2845a Fix sort by rating (#467) 2025-07-11 18:00:31 +02:00
Jesse a00b5c51d2 More prestige fixes (#471)
* Only send message if there's items to be sent

* Update variable name

* Fix up incrementing a null integer
2025-07-11 14:52:33 +01:00
Jesse 12699d799f Prestige fixes (#470)
* Add profile back to SaveServer earlier to avoid null issues

* Set proper index of prestige
2025-07-11 13:09:58 +01:00
Chomp a3d8eb2b81 Updated JSONs for 37972 2025-07-09 16:51:11 +01:00
chompDev b5e9f9cb14 .NET Format Style Fixes 2025-07-08 20:45:46 +00:00
Lacyway eefee93267 Update chatbots 2025-07-08 21:21:33 +02:00
Cj 9db7ff25d1 Implement websocket stash row change notification (#462)
* implement stash rows notification

* rename class
2025-07-08 18:30:23 +01:00
Chomp bf71cc1852 Send notification to player when they're rewarded a hideout customisation 2025-07-08 16:00:36 +01:00
Chomp 7bda1b525f Updated acceptableFileExtensions to be a frozenSet
Removed more boxing
2025-07-07 13:31:39 +01:00
Chomp 9470855b50 Fixed more boxing perf issues + removed unnecessary check that reduced perf when generating flea offers 2025-07-07 13:07:53 +01:00
Chomp 0137af1838 String to MongoId changes 2025-07-07 12:42:10 +01:00
Chomp 8474f40aa8 More MongoId changes + updated nullability of EOH objects 2025-07-07 12:31:13 +01:00
Chomp 61f62f191d Converted more strings to mongoIds and fixed issue with buying items from pmcs on flea 2025-07-07 11:56:19 +01:00
Cj 448c258600 update mongoIds, remove underscores from injections in generators (#460) 2025-07-07 09:46:51 +01:00
Cj 3817d6cca4 Helpers Mongoid conversion + cleanup (#458)
* Start converting helper method ids to mongoids and remove underscore from injections...

* Finish helper mongoIds
2025-07-06 17:31:59 +01:00
Cj edb1f8a6fc alphabetical order, rename var 2025-07-06 08:52:16 -04:00
Cj 14d2c53ba1 clean up FindBarterItems, remove underscore from injections, add locale for warning 2025-07-06 08:33:44 -04:00
Cj d1af6bf6e3 Service sessionIDs to mongoIDs (#454)
* Start updating service sessionIDs to mongoIDs

* Finish service conversion + fix other small issues
2025-07-06 13:08:07 +01:00
Cj 0b18b7e4ba Convert routers and callback sessionIds to MongoIds (#453)
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-06 10:19:56 +01:00
Chomp fa674d6add Converted RemapRootItemId into extension method 2025-07-05 17:46:58 +01:00
Chomp f140e1e106 Converted ReplaceIDs into extension method 2025-07-05 17:25:59 +01:00
Chomp 4f5571c2d4 Converted more ids to MongoId 2025-07-05 12:35:03 +01:00
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
Chomp 01cd251b68 Moved more code into extension methods 2025-07-04 19:29:43 +01:00
Jesse b6692fead4 Chatbot async improvements (#446)
* Add better chatbot handling by making them asynchronous

Removes the need for having RunInTimespan as await Task.Delay now can handle this

* Remove now unused classes

* Handle commando's commands with ValueTask

* Set values as not nullable, client sends all of these
2025-07-04 18:04:37 +01:00
Jesse b3c5d3732e Begin initial work to make Hideout id's MongoId's (#447)
* Begin initial work to make Hideout id's MongoId's

* Set template to mongo

* More conversions
2025-07-04 15:51:10 +01:00
Chomp 6b810687f3 Fix issues found by tests 2025-07-04 15:26:15 +01:00
Chomp 8837c26584 Fixed traders purchases not working 2025-07-04 14:10:12 +01:00
Chomp 908635e272 Correctly init 2d array 2025-07-04 10:41:24 +01:00
Chomp 2609db2536 Removed unused injections 2025-07-04 09:40:22 +01:00
Chomp c8b8669546 Cleaned up Inventory helper and improved readability 2025-07-04 09:23:41 +01:00
chompDev 973ea857f9 .NET Format Style Fixes 2025-07-03 22:06:04 +00:00
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02:00
Chomp f2cebc4f88 Pass correct mongo id as parameter 2025-07-03 16:37:45 +01:00
Chomp 4e2d4dc708 Rewrote container item space system to use 2 dimensional arrays (#442)
* Rewrote container item space system to use 2 dimensional arrays

* Moved container helper code into extension methods

* Reduced amount of parameters passed into `RowIsFull`

* Skip root trader items

* Remove debug

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-07-03 16:36:13 +01:00
Jesse ebe8f9ded5 Mongoid changes (#440)
* Remove old IsValidMongoId and Regex

* Convert more configs to MongoId, as well as BaseClasses

* Remove HashUtil.Generate(), replaced with new MongoId()
2025-07-03 15:42:16 +01:00