0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 16:10:43 -05:00

3931 Commits

Author SHA1 Message Date
Chomp
da8c336519 Fixed various invalid nullguard checks + comments 2024-12-22 21:48:06 +00:00
Chomp
863738087f Moved deprioritisedContainers data into config as deprioritisedMoneyContainers 2024-12-22 21:30:21 +00:00
Chomp
572144c662 When purchasing items, server will try to prioritise non-sicc/docs cases when only money in containers can be found 2024-12-22 20:55:32 +00:00
Chomp
e10d5d12f2 Merge branch '3.10.4-DEV' of https://github.com/sp-tarkov/server into 3.10.4-DEV 2024-12-22 19:57:43 +00:00
Chomp
a22032abe2 Made use of RagfairOfferHelper.offerIsFromTrader() 2024-12-22 19:57:26 +00:00
Chomp
140a1e8c00 Added filtering of offers that have exceeded the buy limit threshold from possible offers to display 0 - Fixed a limit-reached trader offers always showing over a PMC offer
Various improvements to `getOffersForBuild`:
Renamed offers to offersToReturn
Removed one layer of indentation by using early return
Replaced use of `ragfairOfferService.getOffers` with `ragfairOfferService.getOffersOfType` to improve performance by using a more appropriately indexed dictionary of offers
Run `getOffersInsideBuyRestrictionLimits` as part of offer filtering process
removed redundant reassignment of availableOffers/possibleOffers
2024-12-22 19:49:57 +00:00
Chomp
35ba24b639 Fixed PMC preset offers being classified as pack offers 2024-12-22 19:44:08 +00:00
waffle-lord
7995a6f0de
Update ProgressWriter.ts
idk what I'm doing but ref said this is ok to direct push so screw you drakia Ima do it
2024-12-22 13:13:25 -05:00
Chomp
30d620d346 Improved simulation of AI player scavs, their 'pmc' name + game edtion is correctly passed to client
Pulled pscav code out of `generateUniqueBotNickname` and into its own function `simulatePlayerScavName`
2024-12-22 16:35:15 +00:00
Chomp
e04fa4d8fe Added missing MainProfileNickname property when generating a player scav character 2024-12-22 16:22:51 +00:00
Chomp
c40a4aa7cb Added system to allow overriding flea prices via config 2024-12-22 15:35:15 +00:00
Chomp
3662767972 Added walter quest container rewards (opened box/opened case) 2024-12-22 13:13:09 +00:00
Chomp
16da785607 Added error logging to prepareAndGenerateBot 2024-12-21 13:56:18 +00:00
Chomp
b7f082cf40 Added spacing to progress writers output 2024-12-21 10:33:27 +00:00
Chomp
d03ee92c56 Merge branch '3.10.4-DEV' of https://github.com/sp-tarkov/server into 3.10.4-DEV 2024-12-20 23:10:19 +00:00
Chomp
e5ab5c35a8 Added empty array check to FenceService.addItemAssorts 2024-12-20 23:10:06 +00:00
0c7d6a7bb2
Update git link for cloning (#991) 2024-12-20 20:29:24 +00:00
Chomp
423daf3ed0 made bonuses match 2024-12-20 19:27:10 +00:00
Chomp
1e7fd6232a Fixed max buy restriction bonus not applying for unheard edition 2024-12-20 19:26:18 +00:00
Chomp
e173b3d361 Added nullguards to removeResourceFromArea 2024-12-20 09:33:13 +00:00
Chomp
04f22601d4 Updated warning logging to be debug inside getExperienceRewardForKillByDifficulty 2024-12-19 21:54:54 +00:00
99ea325013
ProgressWriter: Logic Modifications
- The progress and percentage is now calculated separately.
- The progress bar is removed once the operation has completed.
2024-12-19 16:10:04 -05:00
d9fd560a5b
ProgressWriter: Removes character length checks
In case using emojis is your thing.
2024-12-19 15:49:39 -05:00
4af5f2507a
ProgressWriter: Updates default characters 2024-12-19 15:46:43 -05:00
5bd68b6227
Workspace Terminal Change
This changes the terminal that is used when the VSCode debugger is launched to use the actual built-in terminal, not the debug console terminal (it sucks).
2024-12-19 15:45:34 -05:00
8926e286bb
Database Import Progress Bar (#987)
Waffle wrote a PR (#986) that shows a progress bar when the database is
populating. I pulled it into a local branch and made some adjustments.

I've tested this on my end and it's working okay. In the compiled
project, and directly in terminals (that *I have installed*) it looks
great, but in VSCode's built in terminal you can see escape characters
at the beginning of the line:


![image](https://github.com/user-attachments/assets/c547a675-5331-44f3-a44e-940edaba6fe8)

I can't figure out why, or how to get rid of it, but it doesn't really
bother me much.

---------

Co-authored-by: waffle-lord <76401815+waffle-lord@users.noreply.github.com>
2024-12-19 09:20:44 +00:00
Chomp
7caec6efad Added system to insert items into bot storage areas during seasonal events - Used to add Christmas items to scavs 2024-12-18 23:51:25 +00:00
Chomp
fae965797d Forced infectedTagilla to have 1 loot item 2024-12-17 17:33:40 +00:00
Chomp
fc09a3ff53 Added comments to interface 2024-12-17 17:26:52 +00:00
Chomp
4344c163b0 Merge branch '3.10.4-DEV' of https://github.com/sp-tarkov/server into 3.10.4-DEV 2024-12-17 17:26:32 +00:00
Chomp
065cef3759 Weight infectedTagilla to have 3 magazines 2024-12-17 17:26:20 +00:00
653b9723b8
Vitest Updates (#985)
Includes updates to Vitest dependencies, a small bug fix, and a
configuration change. All three of which were throwing warnings when the
test suite was ran.

### Dependency Updates:
*
[`project/package.json`](diffhunk://#diff-18e5b8a4dad7b1ed0da6b50ed507b3ab8116e07a8e44abd959a28261878d021fL69-R70):
Updated `@vitest/coverage-istanbul` and `@vitest/ui` to version `^2.1.8`
and added `vitest` dependency.
[[1]](diffhunk://#diff-18e5b8a4dad7b1ed0da6b50ed507b3ab8116e07a8e44abd959a28261878d021fL69-R70)
[[2]](diffhunk://#diff-18e5b8a4dad7b1ed0da6b50ed507b3ab8116e07a8e44abd959a28261878d021fL84-R85)

### Bug Fix:
*
[`project/src/controllers/RepeatableQuestController.ts`](diffhunk://#diff-92e6bd4234ed3c13309eb9bd27437f0933e58dedee51544e9b017b57c2a3c51cL581-R581):
Fixed a bug in the charisma bonus calculation for the `cost.count`
value.

### Configuration Changes:
*
[`project/tests/CustomEnvironment.ts`](diffhunk://#diff-79780538b7a90a5f7befb22838a460f65e3e0bce53d3685f36ed2b74894246a0L9-R9):
Updated the import path for `Environment` from `vitest`.
*
[`project/vitest.config.mts`](diffhunk://#diff-18152746ad4df10b798ca21a09c321bc8ad4adc393ebc6a26016a524203e599cR5-L10):
Added `cacheDir` configuration and renamed the file from
`vitest.config.ts`.
2024-12-16 22:12:30 +00:00
Chomp
f14dccf1d0 Added Case key and Sealed box to PMC loot blacklist 2024-12-16 19:00:05 +00:00
Chomp
234b6bea59 Added Case key and Sealed box to reward item blacklist
(cherry picked from commit 162b3570197ea34c8fa246c14c171bd931fbcadc)
2024-12-16 18:47:11 +00:00
a38dac1e4e
Backup Service Profile Directory Error
This changes the backup service to log in debug instead of error when the profiles directory can't be found. The profiles directory will not exist on initial run, so this is actually expected to catch until it's created.
2024-12-15 23:29:18 -05:00
41d5bd5586
Updates Version Numbers 2024-12-15 23:27:30 -05:00
ec5227a05f
Merge branch '3.10.3-DEV' 2024-12-15 22:35:08 -05:00
6501958e51
Version Number & Biome Format
Updates the version number in the package.json file.
Ran the Biome formatter.
2024-12-15 22:34:34 -05:00
Chomp
42b3d7abc3 Added nullguard protection to getFriends() 3.10.3 2024-12-15 17:06:20 +00:00
ef14ad27e1
Profile Backups (#983)
Here's a jumping off point for the profile backup feature. Included some
basic configuration options. Currently backup runs on server start-up
(before the profiles are loaded into memory) and on a configurable
interval.

I think it still needs work.
- [x] The folder name dates should be used to detect which old backups
should be removed
- [x] Not sure about the interval implementation...
- [x] Could make the clean method thinner
- [x] Remove VFS; I don't believe it's needed for copy operations
- [x] Save a list of active mods used by the backed up profiles

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2024-12-14 10:20:45 +00:00
Chomp
571819906e made eventId property inside IWsNotificationEvent optional + cleaned up TODO 2024-12-14 09:49:34 +00:00
Chomp
85cdcd16c5 Removed unnecessary call inside deleteFriend() 2024-12-14 09:47:32 +00:00
Chomp
32dd4dbfc8
Implement basic friends list functionality (#984)
This commit implements basic friends list functionality including
adding, auto accepting, and removing friends. As well as storing the
list in the profile and providing the friends list back to the client on
login. This is a one-way implementation, the target profile will not
have the source account added to its friends list.

This is primarily useful in combination with the recent favorites fixes,
to allow users to inspect favorited weapons on other profiles to "copy"
weapon builds between their profiles
2024-12-14 09:44:21 +00:00
DrakiaXYZ
4614c890a6 Implement basic friends list functionality
This commit implements basic friends list functionality including adding, auto accepting, and removing friends. As well as storing the list in the profile and providing the friends list back to the client on login.
This is a one-way implementation, the target profile will not have the source account added to its friends list.

This is primarily useful in combination with the recent favorites fixes, to allow users to inspect favorited weapons on other profiles to "copy" weapon builds between their profiles
2024-12-13 21:25:32 -08:00
Chomp
ccc9a8ba5b Removed unused imports
(cherry picked from commit cdd1831f46005825913ca7a4d8ed89428b568528)
2024-12-13 17:06:53 +00:00
Chomp
ada2fd7717 Updated bot loot weights
(cherry picked from commit bd5dd9df9bd9cfe2ea82c7d368e5fd7c6bfd9071)
2024-12-13 17:06:44 +00:00
Chomp
9bf6ee3a5e Updated bot JSON data 2024-12-13 10:08:46 +00:00
Chomp
a027ca017d Removed workaround as underlying issue has been resolved 2024-12-13 09:48:21 +00:00
Chomp
f12a5d3029 Updated location data 2024-12-12 22:31:30 +00:00
Chomp
a9c05980df Updated flea prices + sort dictionary by key 2024-12-12 17:01:35 +00:00