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

4341 Commits

Author SHA1 Message Date
Lacyway
ead7da160e
Fix incorrect type (#1082)
It was defined with values of string, but the data seems to be boolean
2025-01-15 09:32:58 +00:00
Chomp
d36443d9d1 Improved chatbot functionality
Easier to disable bots via mod
2025-01-14 16:02:42 +00:00
KaenoDev
d32127ba1a Add Cultist clothing and unheard background to account type unheard_edition 2025-01-14 15:01:40 +00:00
Chomp
96c56b34ca Merge branch '4.0.0-DEV' of https://github.com/sp-tarkov/server into 4.0.0-DEV 2025-01-14 13:31:56 +00:00
Chomp
3ed52104be Remove TODO 2025-01-14 13:31:34 +00:00
a285cd3985
Mod fixes (#1080)
Changes the following:

- New targets, module and moduleResolution for mods
- Enables `isolatedModules` as this matches the SPT server.
- Includes user/mods in tsconfig.json to allow for mods to be loaded
when a debugger is attached.
2025-01-14 12:10:31 +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
Chomp
dea7b0b2fe
Fix up CI cache (#1073)
- Fixes up the CI cache issue by caching node_modules rather than ~/.npm
- Also explicitly forces it to restore against the same cache key, so
that if package.json is changed a new cache will be created.
2025-01-13 09:55:37 +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
ff85ff7f79 Update CI 2025-01-13 10:36:07 +01: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
Chomp
162a0b8dcb
Rename IQuestReward and QuestRewardType to be generic (#1069)
Just a precursor refactor to rename "QuestReward" to just "Reward" in a
couple cases, as rewards are common between Quests and Achievements

Future task will expand on this to centralize reward handling
2025-01-12 09:59:35 +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
Chomp
9612ca2834
Default new profile name to launcher username (#1066)
Instead of always naming new profiles "SPTarkov", use the launcher
username as the default.

This improves the UX as you can quickly click through account creation
on multiple accounts without needing to remember to re-enter a new
profile name for each account
2025-01-10 08:54:09 +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
Chomp
fb10df25e0
Removes date-fns (#1061)
Removes `date-fns` dependency and replace date formatting with custom
implementation.
2025-01-09 21:21:33 +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>
4.0.0-BE-20250109
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
Chomp
18b4488d2e
Updates Issue URL (#1059)
![That's
it.](https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExMWJ3OHF3Z2U0NWwyc2RwY2ZoN25xZmFzbWNrbGtlc2lybzQybG52OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/CM42QlML275iJngh7H/giphy.webp)
2025-01-09 20:23:16 +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
Chomp
7468975f95
Timer Utility Class (#1054)
Refactor timing logic to use a new simple Timer utility class for
performance measurements across services.

Adds a timer for database import.
2025-01-09 16:39:42 +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