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

4123 Commits

Author SHA1 Message Date
Chomp
3ed52104be Remove TODO 2025-01-14 13:31:34 +00:00
Chomp
4baab4e3f5 Relocated typescript dep to be under dependencies 2025-01-13 23:40:22 +00:00
Chomp
03a88bdf18 Removed unused injection 2025-01-13 21:02:04 +00:00
9a94f12e5f
Resolve lock in cloner if debugger is attached (#1075) 2025-01-13 19:37:41 +00:00
Chomp
bb26db793a Added chance keycards are partially used 2025-01-13 17:43:07 +00:00
Kaeno
93d25d0769 Add unlocked suits to customisationUnlocks in profile fixing suites not persisting on game restart 2025-01-13 17:34:23 +00:00
Chomp
aa6bc48e6c Removed unused class 2025-01-13 17:30:07 +00:00
Chomp
4340d98058 Updated client/trading/customization/storage to better match live 2025-01-13 17:28:55 +00:00
Lacyway
34b5608deb
Add replyTo support (#1074)
- Adds support for ReplyTo in dialogues for modders / chat bots
- Adds `getDialogFromProfile` helper method
- Adds `getMessageToReplyTo` helper method
2025-01-13 15:59:12 +00:00
Chomp
530eb26e32 Fixed typo 2025-01-13 15:19:42 +00:00
Lacyway
6800324a96
Add support for 'View Hideout' (#1072)
Adds missing data to the "view profile" endpoint.

NOTE: Causes severe freezes when viewing the hideout, but this happens
when loading your own too. I think this is a live issue.
2025-01-13 09:55:06 +00:00
Chomp
67affbfaa3
Allow FileSystem's writeJson spacing to have more options (#1071)
Does as it says, essentially allows users to fully customize how they
want their JSON files written.
2025-01-13 09:53:42 +00:00
Chomp
025d6feefe Cleaned up unused types in QuestRewardHelper 2025-01-12 23:29:33 +00:00
7c3f41f160 Allow FileSystem's writeJson spacing to have more options 2025-01-12 18:28:56 +01:00
aeee1b8446
Further async improvements (#1070)
- Adds a set of asynchronous cloners able to be used in async methods
- Updates setInterval to await the update before processing a new one.
- Updates various BotGen methods to remove nested promises and removing
a few unnecessary for loops.
2025-01-12 17:25:41 +00:00
Chomp
ed0e3d64c3 Add missing return type 2025-01-12 12:03:16 +00:00
Chomp
13be82ea20 Added spt profile examine to commando bot 2025-01-12 10:37:39 +00:00
DrakiaXYZ
bc7935e943 Rename IQuestReward and QuestRewardType to be generic 2025-01-11 22:21:08 -08:00
Chomp
accedf24c9 Added nullguard inside getOffersForBuild when ragfairOfferService.getOffersOfType returns undefined 2025-01-11 11:58:00 +00:00
Chomp
6081a19cab Updated static loot generation to better handle malformed modded items 2025-01-11 09:08:51 +00:00
0b287a831a
Fixes bug in FileSystem copy method
Updates file copying logic to use relative paths to formulate final copy source and destination paths.
2025-01-10 14:17:37 -05:00
Chomp
49286ec146 Blacklisted KOSA from PMCs 2025-01-10 16:22:47 +00:00
Chomp
dae617c0cd
Logform made a breaking change in 2.7.0, fix our call to printf to work with it (#1065) 2025-01-10 09:15:50 +00:00
1d1104a1e8
Refactor SaveServer and the things that interact with it to be async (#1064)
Changes:

- Adds a map for `profiles`
- Changes `onBeforeSaveCallbacks` to be Promises
- Changes `SaveMD5` into `saveSHA1` as the async method for `saveSHA1`
isn't blocking
- Changes all routes and callbacks directly interacting with SaveServer
to be async

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-10 09:15:14 +00:00
DrakiaXYZ
89b292e42b Default new profile name to launcher username 2025-01-09 18:32:00 -08:00
DrakiaXYZ
d2b83f64d8 Logform made a breaking change in 2.7.0, fix our call to printf to work with it 2025-01-09 18:10:12 -08:00
c334855919
Removes Typedoc (#1063)
### This depends on #1062

Actual changes in f940ac72b24951fae5abcf548e0a3d4c77640730

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-09 21:54:12 +00:00
a821f1caba
Pins NPM Packages (#1062)
We can't commit our npm lockfile, so this should help lock things down.
2025-01-09 21:53:00 +00:00
73ebeca095
Removes date-fns
Removes `date-fns` dependency and replace date formatting with custom implementation.
2025-01-09 15:54:31 -05:00
17a614aa03
Removes PNPM Feature (#1060)
Removes the auto-install mod dependencies feature, the related messages,
and the configuration option.

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-09 20:29:28 +00:00
6be6d9099c
Removes buffer-crc32 (#1058)
Remove `buffer-crc32` dependency and use `crc32` from `node:zlib`.

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-09 20:28:33 +00:00
468ffed1b4
Use spawn instead of exec in build (#1057)
This updates the `exec` calls in the build script to use `spawn` instead
for better argument handling. Resolves an issue that caused spaces in
build paths to kill the build.

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-09 20:27:37 +00:00
dcbb5c1d5f
Fix CI (#1056)
- Removes a test for a class that was removed
- Changes the command for type checking from `lint:types` to
`type-check`

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-09 20:25:53 +00:00
Chomp
6283635be6
Hash mods asynchronously (#1055) 2025-01-09 20:23:58 +00:00
15ff09bbb5
Updates Issue URL 2025-01-09 13:33:06 -05:00
e86ceb89ce Hash mods asynchronously 2025-01-09 18:07:48 +01:00
ab1b5cd30e
Fully make loadAsync asynchronous (#1053)
This should make every part that uses `loadAsync` asynchronous

The changes I made:
- I ended up creating a new method to make SHA-1 hashes asynchronously,
did up some reading up and found that `crypto.createHash` could
potentially be blocking.
- Ended up doing some slight code cleanup in `ImporterUtil` to make that
helper more readable.
- I changed `deserializeWithCacheCheckAsync` to skip writing files with
an extra parameter as it was blocking, this can now be called manually
with `writeCacheAsync` (Default behavior of this method stays the same)
2025-01-09 16:50:36 +00:00
abbaef4094
Timer Util Class
Refactor timing logic to use a new simple Timer class for performance measurements across services
2025-01-09 11:32:01 -05:00
Chomp
4b04b5d110
Merge branch '4.0.0-DEV' into json-validation-module 2025-01-09 15:59:27 +00:00
Chomp
ae7fddb96e Initial implementation of Prestige system
Refactor of Create profile code into own service

Updated `addHideoutCustomisationLock` to use enums for parameters + refactored logic

Removed redundant `HideoutCustomizationGen` script
2025-01-09 15:58:11 +00:00
56c13e9d3f
Replace json-fixer with jsonrepair for improved JSON validation 2025-01-09 09:59:13 -05:00
Chomp
228be2e50f Moved trader images to correct path 2025-01-09 14:50:58 +00:00
Chomp
54213a4ab3 Added missing images 2025-01-09 11:51:19 +00:00
Chomp
f6f744c928 Move images to correct path to be fully utilised by new route gen system 2025-01-09 11:43:33 +00:00
Chomp
97d1343385 Rewrote image route generation system 2025-01-09 11:42:17 +00:00
Chomp
ae0e271957 Log file errors when performing imageRoute lookup 2025-01-09 11:41:47 +00:00
Chomp
bd00542793 Reduce server start time when running in debug mode by generating less flea offers 2025-01-09 10:52:36 +00:00
Chomp
f5600fe215 Stub out get Prestige endpoint 2025-01-09 10:52:09 +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
52aba88e49 Removed unused script 2025-01-09 10:05:23 +00:00