0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

78 Commits

Author SHA1 Message Date
Chomp
e6fe25e95e Added missing quest items to forcedLootSingleSpawnById 2025-02-02 20:57:42 +00:00
Chomp
3675297a96 Fixed formatting 2025-02-02 20:27:30 +00:00
Chomp
15ba0763ba Added 66687bc89111279d600b5062 to forcedLootSingleSpawnById 2025-02-02 20:26:12 +00:00
9c17464ae3
File System (#1050)
This adds the `FileSystem` and `FileSystemSync` classes to replace the
VFS class. These classes handle file system operations using `fs-extra`
for most tasks, except where the `atomically` package can be used to
improve reads and writes. The goal is to ensure that file operations are
as safe as possible while still providing a comfortable API. File
operation atomicity is focused on single files, as there's no trivial,
strict way to ensure atomicity for directory operations.

## Changes
- Adds `FileSystem` class for asynchronous file operations
- Adds `FileSystemSync` class for synchronous file operations
- Updates `atomically` to `2.0.3`
- Updates build script to transpiles ESM modules
- Resolves `AbstractWinstonLogger` bug that could cause a log file to be
overwritten
- Removes `VFS` class
- Removes `AsyncQueue` class
- Removes `proper-lockfile` package

## TODO

- Test anything that touches a file.

I'm leaving this in a draft state until I can test this further. Help is
more than welcome at this point. The classes are pretty solid, but
ensuring that they're being used properly throughout the existing code
still needs work.

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-01-09 10:50:39 +00:00
Chomp
97e4fa98ff Revert "Added locationConfig.forcedRaidEndState property"
This reverts commit d578e5f001cac460d2eac10ec81465b54ac334fd.
2025-01-08 19:38:58 +00:00
Chomp
d578e5f001 Added locationConfig.forcedRaidEndState property 2025-01-08 19:30:41 +00:00
Chomp
33591df715 Added system to strip children from containers defined in new config property tplsToStripChildItemsFrom
Fixes Christmas gifts causing strange behaviour when moved to stash as we generate container gift loot when player opens then
2025-01-08 19:03:50 +00:00
21939dcf38
Biome Format
Ran the `npm run style:fix` command. These are the code-formatting fixes.
2024-12-07 13:50:09 -05:00
Dev
dce5c2ad76 Added property to store 'non' maps in config 2024-11-11 21:16:58 +00:00
Dev
f16c145523 Added A Healthy Alternative quest item to single spawn pool 2024-11-10 15:56:26 +00:00
Dev
a98696bfca Split raider spawn chance override into 2 values, triggered and non triggered 2024-10-29 09:39:00 +00:00
Dev
7964d8ef5a Added minReserveRaiderSpawnChance to location.json config, set to 72 by default, wired up to adjust reserve values on server start 2024-10-28 16:02:47 +00:00
Dev
9f6ec573d6 Removed fixEmptyBotWavesSettings - Doesnt seem necessary for 3.10
Disabled `rogueLighthouseSpawnTimeSettings` Same as above
2024-10-22 16:38:32 +01:00
Dev
80bc6b41d7 Added Case with precision tools quest item to single spawn only list 2024-10-06 23:19:44 +01:00
Dev
4c2f93f219 Added extra PMC waves to sandbox_high 2024-09-24 17:29:50 +01:00
Dev
63774da653 Added additional PMC waves to customs + woods 2024-09-24 11:04:28 +01:00
Dev
35fb02c009 Added Sealed letter quest item for Postman Part part 1 to spawn once in a raid, (not has 4 possible spawns) 2024-09-22 13:45:13 +01:00
Dev
09ba35b5fa Removed redundant PMC spawns from location config 2024-09-15 14:15:44 +01:00
5740774a46
Apply Biome Formatting
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
2024-07-23 11:12:53 -04:00
Dev
ddabe22e4f Fixed comma 2024-07-12 16:37:28 +01:00
Dev
124e23b8f6 Cleaned up scavRaidTimeSettings data to reduce the scav raid times slight less + added sandbox_high
(cherry picked from commit c44f5b2ca9782d61a7f511c704a7472cf88b9de7)
2024-07-12 16:10:11 +01:00
Dev
872212f651 Removed unused endpoint + config 2024-07-08 15:15:48 +01:00
Dev
e937fc4a18 Added various quest items to forcedLootSingleSpawnById dictionary 2024-06-11 16:33:11 +01:00
b3b1f76a77 Migrate PMCs (sptBear/sptUsec) To Bsg Types (pmcBEAR/pmcUSEC) (!360)
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: SPT/Server#360
2024-06-06 16:59:44 +00:00
Dev
a63f1c3890 Plumb in sandbox_high to configs 2024-04-30 21:51:11 +01:00
Dev
a2886f102b Adjusted scav raid time for streets 2024-04-26 21:21:17 +01:00
Dev
73a1dd9511 Split out static/dynamic magazine fill options in config
set static mag fill to 0%
2024-04-12 23:05:27 +01:00
Dev
a33325cbf5 Revert change to minFillStaticMagazinePercent 2024-04-12 22:12:26 +01:00
Dev
1c660fcf4e Reduced magazine fill size to 0 for static loot to match live 2024-04-12 09:50:37 +01:00
Dev
387e924fb4
Remove unused config property 2024-04-06 11:23:56 -04:00
Dev
76733cc5db Lint JSONs
(cherry picked from commit 94c96c8ff2d7473274d043b78f0bb6d1fa1b7d0b)
2024-03-29 20:20:37 +00:00
Dev
ed7e30bd4c Move 6398a072e301557ae24cec92 Lightkeeper intelligence from lighthouse to reserve 2024-03-26 09:38:06 +00:00
Dev
993ea78ce6 Reduce loose loot down to 75% of live values to account for only one player being on map 2024-03-26 09:35:17 +00:00
Dev
3016d60730 Increase chance PMCs spawn on raid start in reserve 2024-03-22 19:28:10 +00:00
bbb74c72c9 Reduce the amount of inital spawns on Sandbox(Ground Zero) To help getting killed instantly 2024-03-17 09:08:52 +00:00
Dev
6309f47be8 Lint config files 2024-03-14 09:19:58 +00:00
97994fc0a6 Handle IsAlwaysSpawn in the same way we handle spawnpointsForced to allow single spawn restrictions (!231)
Also move the relaxation key single spawn limit to Streets instead of shoreline

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT-AKI/Server#231
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-18 09:03:37 +00:00
Dev
431348cc2e Added Relaxation room key quest item to single spawn array 2024-02-17 09:35:46 +00:00
Kaeno
4d3dc0e214 Add waves to ZoneSmuglers so quest like no swiping can be completed 2024-02-16 16:29:28 +00:00
Kaeno
9d96f97b55 Add maxPatrolValue route for module to pull data from. Added sandboxMaxPatrolvalue to location.json. linting on location.json 2024-02-16 16:17:55 +00:00
Dev
5f7a03926f Increase tarkovstreets loot when scavving 2024-02-10 14:43:07 +00:00
Dev
a7ae3a2ff3 Reduce the max reduction of raid time for scavs on woods 2024-02-10 14:29:13 +00:00
Dev
3b3105a376 Add more PMC spawns to woods 2024-02-10 13:00:46 +00:00
Dev
4a8c12dc59 Improve canPlaceItemInInventory() logging
Increase attempts to fit into container to 3 from 2
2024-02-09 15:18:49 +00:00
Dev
a9c48bc5c8 Increase chances of PMC spawning at start of raid on labs to help with the feeling of an empty raid 2024-02-08 12:36:46 +00:00
Dev
e5bc45c6d4 Adjusted front/rear loot item plate chance to be 100%: 2024-02-04 20:30:10 +00:00
Kaeno
0973c1cdad Add missing quest item ID to forcedLootSingleSpawnById 2024-01-31 23:30:28 +00:00
Dev
23baf3cce6 Adjust modSpawnChancePercent values to make loose armor have more plates 2024-01-26 14:25:50 +00:00
Dev
3ec63ef31d Fix issue with addChildSlotItems() and add additional mods 2024-01-23 21:33:24 +00:00
Dev
6cd82ce2a6 Add location property minFillLooseMagazinePercent
Make static/dynamic magazine loot have chance to not have cartridges
2024-01-13 12:30:15 +00:00