Commit Graph

2874 Commits

Author SHA1 Message Date
Dev
5d1c02d0ea Updated seasonDates to fix gaps in coverage - extended summer 2 months
(cherry picked from commit f94985f3f2)
2024-08-02 09:55:21 +01:00
Dev
0032f408e6 Moved core config out of saveProfile() into its own class-level property 2024-07-31 20:44:39 +01:00
Dev
00322be0e8 Reduced mp7/mp9 spawn chances on PMCs + reduced all AK chances
(cherry picked from commit 5473f73e2a)
2024-07-31 20:30:30 +01:00
witek
3edf0f2ff9 Fix logs paths (!390)
When compiled natively to linux, logfiles are saved in main SPT folder instead of default location. It's caused by file paths being hardcoded as text.
This patch fixes logs location on linux build.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/390
Co-authored-by: witek <falls-toluene.0q@icloud.com>
Co-committed-by: witek <falls-toluene.0q@icloud.com>
2024-07-31 19:04:04 +00:00
MadByte
6f010acfca Changed mod path for loading bundles from the server to be relative (!389)
**Before merging: Please test on a real Windows installation if possible!**

I tested this on Linux as well as inside a Windows VM hosted on Linux, but wasn't able to test it on a real Windows installation.

This commit fixes an issue with loading bundles from a native Linux server:

When compiling the server natively for Linux & installing some mods, everything works except for mods trying to load bundles from the server. Reason is a malformed path to the bundle:

```ts
2024-07-30 23:48:16.968 +02:00|0.14.9.1.30626|Error|Default|
EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\home\USER\Games\escape-from-tarkov\drive_c\SPTarkov\user\mods\Bloody-Bullet-Wounds\bundles\assets\systems\effects\particlesystems\effects.bundle".
```

`process.cwd()` returns the linux-agnostic path of course, but for some reason it also returns `C:`.
Changing the line to `modpath.slice(0, -1).replace(/\\/g, "/");` seems to work and the bundles seem to get loaded without issues (did a quick test raid), even without passing the absolute path to the  mod.

I tried to check why that is, and I think node is able to [get the cwd and resolve the relative path](4d1d88118b/src/path.cc (L101)) by itself..

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/389
Co-authored-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
Co-committed-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
2024-07-31 14:14:56 +00:00
Dev
52a0373deb Lowered PMC spawn chance of following weapons:
ADAR, MP7,MP9, P226
2024-07-31 15:14:33 +01:00
Dev
97ed43b841 Updated PMC max level to match player max
(cherry picked from commit a1fe93cab6)
2024-07-30 15:25:28 +01:00
DrakiaXYZ
ee1eb7d690 Fix issue in BotLevelGenerator when high level (!388)
Previously `highestValue` could be lower than `lowestValue`, resulting in an exception. These values are now generated in the same method and clamped

Add a catch to the botgen promise await so we get more useful errors if botgen fails

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/388
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-07-30 07:24:29 +00:00
RomanxTheLast
398bf43444 Add async to the handleRequest chain in HttpServer (!387)
The httpListeners are promise based but they aren't awaited when handling the request.

I found this while implementing another version of HttpServer in a mod but couldn't actually find where this would cause an issue so feel free to close this if you think it's not worth it.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/387
Co-authored-by: RomanxTheLast <alex@romanx.co.uk>
Co-committed-by: RomanxTheLast <alex@romanx.co.uk>
2024-07-28 13:45:09 +00:00
Dev
45e559efff Updated crowdin locales 2024-07-26 19:29:39 +01:00
Dev
0491be80f2 Add null protection to playerHasRecievedMaxNumberOfGift()
(cherry picked from commit 0c42a38306)
2024-07-25 23:18:42 +01:00
Dev
019db50cf6 Make use of SideType.SAVAGE enum 2024-07-25 19:10:21 +01:00
Dev
8f8a0c1f05 Adjusted ragfair pack chance and max size values 2024-07-25 13:46:39 +01:00
Dev
ce6cb095c0 Added item reward pools for Unlocked supply create (x)
Added item reward pools for `Unlocked equipment create (x)`
Added support for weapon/armor presets inside `getRandomLootContainerLoot()`
Expanded pool for `Unlocked valuables crate (x)",` by 8 items

(cherry picked from commit 4a1a5d924c)
2024-07-25 12:18:00 +01:00
Dev
1034bf5bd8 Added a weighting bias to the level chosen for bots, favors the higher value
(cherry picked from commit 797d75fd4f)
2024-07-25 10:35:20 +01:00
Dev
e7f56edf0c Improved bot generation comments 2024-07-25 09:38:28 +01:00
Cj
92f5cdea7d Fix trailing space in COMB_MUZZLE_DEVICE (!386)
Fixes a trailing space in the base class id `COMB_MUZZLE_DEVICE` that rendered it unusable.

Note: No idea where these wacky formatting changes came from, sorry about that. Assuming Biome things.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/386
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-07-25 07:47:38 +00:00
Dev
6cde96a710 Further changes to locale text 2024-07-24 17:39:31 +01:00
Dev
eb3ba0ef80 Fixed incorrect english locale text 2024-07-24 17:36:52 +01:00
Dev
e565bb03cd Rounded flea offers requirementsCost to nearest int
(cherry picked from commit de53abf002)
2024-07-24 09:26:50 +01:00
Refringe
6e07932aaa
Apply Biome Formatting
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
2024-07-23 11:30:35 -04:00
Dev
e11fd8fa22
Added locations formatted to ignore 2024-07-23 11:28:26 -04:00
Dev
94c6c3d783
Added DB to biome ignore list 2024-07-23 11:27:55 -04:00
Refringe
afda0d5255
Adds Biome - Removes ESLint & Prettier (!383)
Boogidy, boogidy, boogidy. Let's go racing! 🏎️

Removes the over-complicated and super-slow setup we had with ESLint & Prettier in favour of Biome. The largest change with the formatting is moving from Allman braces to 1TBS braces. Other than that, it's *pretty much* the same. Ah, and that Biome runs formatting and linting on the entire project about x10 faster than the old system ran formatting on one file. Seriously, the guy who came up with that last solution should be fired. :runs:

I've kept all of the formatting and linting commands the same as before, with the main mamma-jamma being: `npm run format`, which applies formatting and linting changes to the entire project.

Formatting-on-save works (quickly!) by (1) ensuring that you're working within the VSC workspace (as you should be), and (2) have the recommended Biome VSC extension installed. The link to the Biome extension is in the README.

This limits our options on code formatting going forward; Biome, like prettier, is very opinionated with very few formatting options available. But I see this as a good thing. I'd rather spend my time arguing about which gun in Tarkov is the best, rather than coding brace styles...

...It's the TOZ, and it always will be. Don't DM me.

Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/383
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>

# Conflicts:
#	project/src/callbacks/GameCallbacks.ts
#	project/src/callbacks/MatchCallbacks.ts
#	project/src/routers/static/GameStaticRouter.ts

Resolved by Refringe
2024-07-23 11:25:08 -04:00
Dev
6613d997cc Removed redundant rating check now it has been moved to ProfileFixerService 2024-07-23 13:14:56 +01:00
Cj
7ab466a0dc Ragfair Rating Fix (!385)
Adds a method to the `ProfileFixerService` to fix null offer ratings. Will fix both the profiles primary rating, and any offers created when the rating was null.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/385
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-07-23 11:46:44 +00:00
Dev
6d39ad3085 Adjusted EDITPROFILE gift to have 50 uses
(cherry picked from commit 6d1bde60ca)
2024-07-23 09:57:40 +01:00
Dev
c90b8670f2 Added null protected to playerLevelFulfillsQuestRequirement() 2024-07-23 09:07:07 +01:00
Dev
5107aeeeee Updated version values 2024-07-23 08:48:04 +01:00
Dev
5771f1f567 Blacklisted Mark of The Unheard from reward items pool 2024-07-22 15:08:21 +01:00
Dev
817d339104 Updated PMC names
(cherry picked from commit 416780d9f9)
2024-07-22 13:34:04 +01:00
Dev
18e0deb109 Added missing localization message 2024-07-22 13:25:45 +01:00
Dev
0d9bd9a6d3 Added guard against missing trader insuranceStart mesages inside sendInsuredItems() 2024-07-22 13:24:00 +01:00
Dev
c1c74c726a Added GP coin limits to airdrops - this prevents mods that override the stack limit adding 100s of thousands of coins to airdrops
(cherry picked from commit 7d57a80e20)
2024-07-22 09:40:55 +01:00
Dev
4c9e5c258f Removed unnecessary scope
(cherry picked from commit 201df756a9)
2024-07-21 22:59:01 +01:00
Dev
2be14850a9 Fixed bad injection caps
(cherry picked from commit 8e17673d0d)
2024-07-21 20:40:04 +01:00
Dev
9af480f625 Improved formatting of repeatable charisma bonus application 2024-07-21 16:24:05 +01:00
Dev
10b8cedc42 Refactored new offer checking code
(cherry picked from commit cd803c8e8b)
2024-07-21 16:17:40 +01:00
Dev
632a5f3656 Merge branch 'master' of https://dev.sp-tarkov.com/SPT/Server 2024-07-21 16:17:33 +01:00
HiddenCirno
4144fccbd1 Complete issues #667 (Possible issue with flea buying) (!382)
Now when a profile create a new offer and another profile buy it, it can work correctly(For example profile A create a offer and profile B buy this offer, now A will receive money from profile B)
and set RagfairOfferHelper.completeOffer to public because TradeHelper now use it to resolve trade between 2 profiles on ragfair

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/382
Co-authored-by: HiddenCirno <2301697863@qq.com>
Co-committed-by: HiddenCirno <2301697863@qq.com>
(cherry picked from commit f555c24709)
2024-07-21 16:17:29 +01:00
Alex
130b12879e removed null style check that was slowing down file processing (!381)
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/381
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-07-21 14:18:43 +00:00
HiddenCirno
8ff9f6f945 Fix that charisma skill cannot deduct repeatable quest change cost (!380)
add discount caculation for repeatable quest change, not it can deduct cost with player's charisma skil level(per level 0.1%)

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/380
Co-authored-by: HiddenCirno <2301697863@qq.com>
Co-committed-by: HiddenCirno <2301697863@qq.com>
(cherry picked from commit 7e06517c8c)
2024-07-21 13:02:05 +01:00
Dev
3f43e3f118 Localised error message
(cherry picked from commit 335806bfd8)
2024-07-21 09:10:24 +01:00
HiddenCirno
7a05acacdd fix free change still deduct trader standing (!379)
Fix that free change repeatable chance quest still deduct trader standing, now it will deduct when player have no access to free change or have no free change counts

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/379
Co-authored-by: HiddenCirno <2301697863@qq.com>
Co-committed-by: HiddenCirno <2301697863@qq.com>
(cherry picked from commit dcb98f7d1b)
2024-07-21 09:03:12 +01:00
Dev
776a41499f Added nullguard to showQuestItemHandoverMatchError()
(cherry picked from commit 014826e683)
2024-07-21 00:14:51 +01:00
Tyfon
ec76a8897f Add support for flea market dogtag barter requirements (!378)
Trader offers with dogtag barter requirements are currently missing the `level` and `side` properties necessary to qualify them. This data already exists in the assorts, just needed to be sent along with the offer.

I considered updating the `side` property of `Requirement` in `IAddOfferRequestData.ts`, but that field is never used, and the client appears to pass 0 for both (even though 0 is not a valid `side`).

Not sure if this should be going to `master` or `310-dev`?

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/378
Co-authored-by: Tyfon <tyfon7@outlook.com>
Co-committed-by: Tyfon <tyfon7@outlook.com>
2024-07-20 21:45:42 +00:00
Dev
d0d10ac15c Updated package json version 2024-07-19 17:26:36 +01:00
Dev
a00a810f0e Reduced pack chance to 9% 2024-07-19 14:05:51 +01:00
Dev
fb56aa914a Updated flea prices 2024-07-19 14:00:04 +01:00
Dev
dd185be7a9 Updated version 2024-07-19 13:50:03 +01:00