Commit Graph

175 Commits

Author SHA1 Message Date
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 a5946f9fc5 Fixed boxing perf issue 2025-07-07 12:54:06 +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
Chomp 7ccb388030 Converted sessionIds to MongoId and renamed property to reflect what type of value it holds 2025-07-07 11:47:08 +01:00
Cj 1de6a75cbf Update controllers sessionIds 2025-07-07 05:50:28 -04:00
Cj 448c258600 update mongoIds, remove underscores from injections in generators (#460) 2025-07-07 09:46:51 +01:00
Chomp 3d11031dc6 Converted sessionIds from strings to MongoId struct 2025-07-07 09:34:43 +01:00
Cj 090d7b6494 change vars to MongoId, remove underscore from injections, fix bug introduced from last PR 2025-07-06 16:40:08 -04: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
Jesse 03ec62d17d Small fixes (#455)
* Handle weapon crates as MongoId

* Unset required on _tpl in Hideout
2025-07-06 12:13:31 +01:00
Chomp f140e1e106 Converted ReplaceIDs into extension method 2025-07-05 17:25:59 +01:00
Jesse bd7d60e5ab More mongo (#450)
* Remove debug, doesn't really work

* Convert Handbook to MongoId's

* Make traders in Database keyed to MongoId rather than string
2025-07-05 13:41:57 +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
Jesse 7b606fb2a7 Small changes and cleanups (#448)
- await StartBackupSystem as it's an awaitable
- Update comment in MongoId
- Set more id's in HideoutArea to MongoId
- Remove unused logging records

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-04 18:05:27 +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
Jesse d3cd4359fa Mongo fixes (#444)
* Pass Json serializer options to all converters

* Fix required on record that has two sets of id's

* Pass options to mod handlers

* Update method
2025-07-03 20:24:05 +01:00
Chomp 939198026f Cleaned up logic inside HideoutItem mongoid set 2025-07-03 16:39:04 +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
chompDev a9918f9e1c .NET Format Style Fixes 2025-07-03 14:44:10 +00:00
Cj dab6fd5291 update item tpl generator to use MongoIDs (#441)
* update item tpl generator to use MongoIDs

* make generation readonly
2025-07-03 15:43:44 +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
Chomp 83d35b4555 Fixed item deletion error - Use separate record for item deletions 2025-07-03 10:37:12 +01:00
Chomp 7a78467d72 Fixed login error 2025-07-03 10:36:18 +01:00
Chomp 8858ccc17f Improved handling of edge-case MongoId values 2025-07-03 10:06:15 +01:00
Chomp 77ce596056 Added MongoId type to various places 2025-07-02 19:50:29 +01:00
Chomp 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +01:00
Chomp 0d946b48cc Hashutil.generate to new MongoID() 2025-07-02 13:04:53 +01:00
Chomp a8308248d6 Replaced hashutil.generate with new MongoId() 2025-07-02 12:47:00 +01:00
Cj 371c9d58f0 Repeatable quest generation MongoID conversion (#439)
* Update repeatable quest generation for mongoid, add new server localizations, switch `Traders` to MongoId

* Give error default value
2025-07-02 12:44:49 +01:00
Chomp 5c26f47e2f Use correct new MongoId() instead of hashutil 2025-07-02 10:56:10 +01:00
Jesse 54f0d0779c Convert TemplateItem to MongoId (#436)
* Convert TemplateItem to MongoId

* Push new extensions

* Handle null mongoid's being passed to regex

* Handle null strings, fixes item events

* Updated loot generation to work with new property `composedKey`

Fixed typo in `SlotId`

* Fix missing method after merge

* Remove duplicately named MongoIDExtensions?

* Fixed location loot generation to handle impending loot json changes

* Updated location JSONs with new properties (excluding lighthouse loose loot)

* Fixed build issue with ItemTplGenerator

* use correct handing for new mongo ids

* Added helper method to improve readability

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-07-02 10:14:04 +01:00
chompDev 46989aa19e .NET Format Style Fixes 2025-07-01 09:18:15 +00:00
Lacyway 8e3894e9ad MongoID improvements (#437)
* MongoID improvements
- Added extension to check whether a MongoID is valid, 33% faster than old method
- Cut down generation speed by 2/3

* Fix method used

* Add test
2025-07-01 10:17:39 +01:00
Jesse 6ac747d18d Begin converting some id's to MongoId (#435)
* Begin converting some id's to MongoId

* Remove nullability on MongoId's

* Update trader MongoId's
2025-06-30 15:25:47 +01:00
Chomp 25c3eee4fa Added MongoId struct 2025-06-30 11:07:04 +01:00
Chomp 611b234142 Added ability to change weekly boss reset day via config 2025-06-30 09:50:11 +01:00
Chomp e6b791179b Added Boss of the week system
Similar to live where a boss is picked at random and will have a guaranteed spawn on a map. This is indicated with a skull on the map selection screen
Configurable via `config/bot.json/weeklyBoss`
2025-06-29 18:58:23 +01:00
Chomp 4d39a4c819 Remove unused profile property VitalityData 2025-06-29 15:55:55 +01:00
Chomp 2fc8b2a29f Updated DamageType 2025-06-29 13:57:19 +01:00
chompDev 707c5dd9ce .NET Format Style Fixes 2025-06-29 10:12:11 +00:00
Chomp 3df61005eb Updated ItemTpl mappings 2025-06-29 11:11:39 +01:00
Chomp cf61560266 Cleaned up comments
Set properties as readonly
2025-06-29 09:33:11 +01:00
Jesse 22c71bee5b Helper methods extensions (#431)
* Remove unused model

* Start moving methods to extensions, cleanup code
2025-06-28 12:14:50 +01:00
Chomp f256cbf529 Resolved various editor warnings inside TraderController 2025-06-26 13:11:22 +01:00
Chomp c91b6c4407 Improved accuracy of client/match/join and client/match/group/start_game 2025-06-26 11:14:24 +01:00
Chomp df0e3e5ce6 Updated ExtensionData to be nullable 2025-06-25 15:16:38 +01:00