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

63 Commits

Author SHA1 Message Date
Chomp
c44e90b064 Adjusted pmc conversion rate and max bot cap values 2025-02-03 17:13:40 +00:00
Chomp
845f749528 Pmc value adjustments 2025-01-29 09:06:21 +00:00
Chomp
49286ec146 Blacklisted KOSA from PMCs 2025-01-10 16:22:47 +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
3273c3233c Blacklisted TG-Vi-24 true vaccine from loot + pmcs 2025-01-08 22:15:59 +00:00
Chomp
5a5b01dc71 Disabled cursedAssault to pmc conversion 2025-01-08 12:07:11 +00:00
Chomp
2ad2774739 Blacklisted locked case from pmcs and loot reward pool 2025-01-08 12:06:47 +00:00
Chomp
60996cd330 Blacklisted case key from PMCs and item reward pool 2025-01-08 11:49:15 +00:00
Chomp
588e5ecb44 Blacklisted TG-Vi-24 lethal vaccine from PMCs and reward item pool 2025-01-08 10:16:08 +00:00
Chomp
2e8cdce3c2 Blacklisted GARY ZONT portable electronic warfare device from PMCs and reward pools 2025-01-07 22:39:22 +00:00
Chomp
6a2afe2fa7 Added ability to filter out PMC loot items from pool based on its value, configured via pmc.json/lootItemLimitsRub 2025-01-07 20:28:41 +00:00
7190557805
Biome Configuration Updates (#1042)
See 0d1e1ba3591458bb195812232d3b8c3345abbeaa for actual changes. The
rest is from running the `style:fix` script.

- Consolidated ignores
- Enabled for `ModCompilerService.ts`
- Added a format ignore line to `ModCompilerService.ts` to prevent
mappings from being affected
- Enabled for `jsonc` file types

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-07 15:36:08 +00:00
Chomp
af06b51239 Blacklisted KOSA and mr kerman from pmc loot pool 2025-01-06 20:22:28 +00:00
Chomp
3c9688cd6d Blacklisted Contraband box from PMC loot pool 2025-01-06 20:21:32 +00:00
Chomp
0835ad6ca0 Added more bot types to PMCs always hostile array + various adjustments 2025-01-06 19:32:45 +00:00
Chomp
21aa379ccb Added Flash drive with special software to reward item and pmc blacklists 2025-01-02 23:39:05 +00:00
Chomp
502f08c414 Added globalLootBlacklist to pmc config
Reworked `PmcLootGenerator` to make use of new property
Unified how pocket/vest/backpack slots create blacklist
Utilise set when combining blacklist sources

Blacklisted prestige dogtags from reward pool and PMC loot
2024-12-30 16:27:24 +00:00
Chomp
1496099061
Added secret_extraction items to reward and pmc loot blacklist 2024-12-27 20:45:18 -05:00
Chomp
f14dccf1d0 Added Case key and Sealed box to PMC loot blacklist 2024-12-16 19:00:05 +00:00
7ae68466e0 Fix loading into raid in 33374 (!419)
- Add new `infected` bots where necessary
- Add new `infected` bot JSON to bots/types, generated from a small set of dumps
- Add infected bots to default PMC enemy list
- Update ZombieInfection values in globals.json from live dump
- Update map data from latest live dump (BossChance, Events, limits and maxItemCountInLocation primarily. A couple maps added missing properties/replaced SpawnPointParams. This was only a partial update though, enough to get in-raid)

Note: `infectedTagilla` is just a copy of `bossTagilla`, as none of the dumps contained that bot type, and it was required to get in-raid
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Server#419
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-11-01 08:52:39 +00:00
Dev
37d2fa63aa Prevented raiders being converted into PMCs on Reserve 2024-10-28 15:47:06 +00:00
Dev
0963045b7e Blacklisted Secure Flash drive V2 and Radar station spare parts from PMC loot 2024-10-11 23:44:41 +01:00
Dev
6ed4303de5 Adjusted PMC brain conversion values 2024-10-10 12:57:47 +01:00
Dev
161c2d97fb Adjusted how PMCs deal with Halloween event bots 2024-10-01 16:41:20 +01:00
Dev
3bbe167450 Added shooterBTR to PMC friendly list 2024-09-27 11:33:32 +01:00
Dev
3ba1d3839e Fixed incorrect usec hostilitySettings value 2024-09-24 18:45:22 +01:00
Dev
a477b0b584 Added labs to pmc conversion system 2024-09-23 22:56:22 +01:00
Dev
6de8740dcc Updated convertIntoPmcChance to work per map
Removed unused `shouldBotBePmc` function
2024-09-22 13:58:55 +01:00
Dev
5ca4f8531c Fixed typos
Added skier/peacemaker bots to pmc enemy list

Flagged scav as always an enemy of PMCs

Removed forced warning of assault from PMCs
2024-09-19 14:02:57 +01:00
Dev
d35063ecb1 Fixed PMCs not being hostile to player scav until they're very close
Fixed incorrect capitalisation

Added `SavageEnemyChance` property to pmc config
2024-09-19 12:28:33 +01:00
Dev
bf5b80b8f4 Fixed boss name typo 2024-09-18 12:09:04 +01:00
Dev
3952b34e29 Added config system to adjust raid hostility settings
Removed `enemyTypes` from pmcconfig
2024-09-18 11:36:45 +01:00
Dev
24cd94abd3 Expanded pmcConfig.maxBackpackLootTotalRub to work per PMC level
non-PMC backpack loot is no longer limited to 150,000 roubles
2024-08-22 20:42:47 +01:00
Dev
607189926a Removed chanceSameSideIsHostilePercent config property and code that uses it, now implemented inside every maps base.json 2024-08-22 19:08:40 +01:00
Dev
75feed2c24 Added bossPartisan to bot config jsons 2024-08-20 22:02:54 +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
93bd7543e7 Blacklisted Decrypted flash drive from PMC loot pools 2024-07-13 09:48:13 +01:00
Dev
648bce9529 Added pmcUSEC/pmcBEAR roles to possible pmc types
(cherry picked from commit 201684d2008eb35755aed8c325e8da7b3e7b0843)
2024-07-11 11:41:03 +01:00
Dev
020c30d55b Added M48 Tactical Kukri to PMC loot blacklist 2024-06-17 10:00:22 +01:00
Dev
6f646d03e8 Adjusted PMC game version weights 2024-06-16 21:11:17 +01:00
6648b1ed4b Add EOD/TUE dogtags to more places (!365)
- PMC Loot blacklist
- Repeatable quest hand in whitelist
- Fence purchase blacklist

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Server#365
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-06-16 08:34:05 +00: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
2a72f0b0f4 Add Sandbox_high to Bot config and PMC config to prevent Custom ai patch from breaking in modules. (!351)
Reviewed-on: SPT/Server#351
2024-05-24 07:14:31 +00:00
Dev
509e208fb9 Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
# Conflicts:
#	project/assets/configs/pmc.json
#	project/src/helpers/ItemHelper.ts
#	project/src/models/spt/config/IPmcConfig.ts
2024-05-04 21:41:44 +01:00
Dev
99444c7237 Added config to not included secure container loot in PMCs - set to false by default 2024-05-03 21:31:24 +01:00
Dev
5273434f7d Fixed typo 2024-04-30 23:26:49 +01:00
Dev
06b35ddde8 Improved how Level specific PMC levels are handled, not included min and max - stored in pmc.json 2024-04-30 23:21:52 +01:00
Dev
7f56cee388 29862 2024-04-25 21:37:22 +01:00
Dev
2af669abdc Add additional enemy types to PMC enemy pool + lint + fix capitalization of existing bots 2024-03-31 10:25:16 +01:00
Dev
76733cc5db Lint JSONs
(cherry picked from commit 94c96c8ff2d7473274d043b78f0bb6d1fa1b7d0b)
2024-03-29 20:20:37 +00:00