3075 Commits

Author SHA1 Message Date
Dev
10dfb89787 Fixed incorrect IRestrictionsInRaid interface 2024-08-19 18:35:06 +01:00
Dev
531ffc7fad Fixed 2 quest reward scopes not having the correct parentid
(cherry picked from commit ef8c3d30cfce3cfb00f324a008154d751bff33c0)
2024-08-19 17:17:54 +01:00
DrakiaXYZ
bd5d4bfb66 Fix fuel ticks returning fuel to the player instead of removing it (!397)
Resolves the issue of incorrect fuel usage by using relative percentages for both the profile bonus and hideout management bonus
Add a sanity check to make sure we never return fuel to the player (No negative fuel consumption)
2024-08-19 16:58:45 +01:00
Alex McAuliffe
79f0949610 Updated bot tests 2024-08-19 16:55:11 +01:00
Alex McAuliffe
9e9baf49b3 Add types for variables on global scope. (!398)
Adds a type definition for the variables added to the global scope.

Personally i'd probably stick them in an object off the route and drop the G_prefix but didn't want to make any major changes with no reason.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/398
Co-authored-by: Alex McAuliffe <alex@romanx.co.uk>
Co-committed-by: Alex McAuliffe <alex@romanx.co.uk>
(cherry picked from commit 18d39224a9c3beb284fde65da6c20d416e9b5b50)
2024-08-19 16:54:06 +01:00
Dev
68e24fc8fd Updated locales
(cherry picked from commit a0c79ac6bc0e69663b5a749c9f8d515a74a8ccfa)
2024-08-19 16:53:51 +01:00
Dev
63ab9f2c79 Updated locales
(cherry picked from commit 27f6d1ee4bfc870c4e3599b86633c2af57b8ddef)
2024-08-19 16:52:42 +01:00
Dev
5ffedfa91a Attempted to fix issue with calculateItemWorth() failing on child items without a upd object
Clone children when returned to prevent modification + add missing upd object to child before calculating price
2024-08-18 09:52:13 +01:00
Dev
1b9a3c46f9 Temp fixed birdeye sometimes generating bad M4s 2024-08-16 23:20:49 +01:00
Dev
c0cd8d699f Added additional gas blocks to PMCs 2024-08-16 23:20:04 +01:00
Dev
52d9fbaeb6 Improved weapon mod selection when a default mod is desired but is incompatible with weapon
Introduced a `Set` into request object that holds conflicting items instead of constantly recalculating them when needed
2024-08-16 23:19:07 +01:00
Dev
931c567fc2 Further repeatable quest adjustments
(cherry picked from commit 5cad2639dbac84030a9310cd8a0fac5412aa5ec9)
2024-08-15 20:39:38 +01:00
Dev
2e8e91385e Fixed bad variable use
(cherry picked from commit daf70ea67fb6b2899c5f6db1abdc32064fb6dc06)
2024-08-15 20:17:18 +01:00
Dev
37fb49bffa Fixed issue that would cause repeatable completion quests to get stuck in an infinite loop
Improved performance of completion quests picking items to return

(cherry picked from commit f04382c9bb9722645a1954ec12d34d45f31d2c53)
2024-08-15 20:17:10 +01:00
Dev
093afe002c #747 Fixed items added to ragfair configs custom blacklist still be sellable on flea by player
Moved confusing `isValidItem()` check out of `isItemOnCustomFleaBlacklist()` and into main function
Removed redundant blacklist check from flea item generation as its already covered in `isValidItem()`

(cherry picked from commit f46694a169b6df2c87e8b652c643f6e8791d9bd7)
2024-08-15 20:16:35 +01:00
Archangel
a4a3c8c89a Skip items that are listed in the custom blacklist from being set as sellable (!396)
Fixes issue #747

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/396
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
(cherry picked from commit 5017b019388adfddca60856e4596ee90133a3098)
2024-08-15 20:16:09 +01:00
Dev
9c2333c351 Adjusted repeatable quest type choice values based on feedback and playtesting
(cherry picked from commit d736ad43ff1b5e9691fb66868fe479b62cab1f49)
2024-08-14 23:27:03 +01:00
Dev
4582bb6fe2 Improved handling of bot stock generation.
Moved code into own function
Expanded force stock check to look for any child items instead of ones for slot `mod_stock`
Expanded check to include additional slot names
2024-08-12 17:43:42 +01:00
Dev
08d66d9e42 Fixed PK Zenit PT-2 "Klassika" stock having incorrect pistolgrip mods
(cherry picked from commit ead2741513eeb6ce934a6d0fe929695323697658)
2024-08-12 17:11:19 +01:00
Dev
85d29c5869 Fixed missing SKS rear sights
Fixed recursive issue with `FAST MT Super High Cut helmet (Urban Tan)` being inside its own nvg slot
2024-08-12 17:06:01 +01:00
Dev
ef950058bd Fixed calculateItemWorth() not handling child items lacking a upd object
(cherry picked from commit ebe1bc021f965466f9643be6dc2a79c0450b6486)
2024-08-11 18:34:28 +01:00
Dev
77c98a4cd4 Fixed invalid check inside getBonusValueFromProfile() 2024-08-09 22:05:07 +01:00
Dev
8d0dfc1cf8 Added various event quests
Updated JSONs
2024-08-09 19:24:26 +01:00
Dev
8014bdd06f Updated water filtering system to correctly check the craft progress against the ProductionTime value stored in the profile instead of the base ProductionTime value in the hideout json.
This is because the base value doesn't take into account any craft bonuses the profile has

After collecting a product from a continious craft, `ProductionTime` in the profiles craft data will be refreshed, this resolves issues with adjusting the `production.json` craft times not applying to continuous crafts
2024-08-09 16:04:43 +01:00
TetrisGG
7b835f1501 Fix Bonuses in various Services using Find and not filter. 2024-08-09 15:03:50 +01:00
Dev
2a52af1275 Improved logic of getBonusValueFromProfile() 2024-08-08 22:36:32 +01:00
Dev
1066a138ac Added function getBonusValueFromProfile to profileHelper
(cherry picked from commit d97e717f7645d42c00e3f84b6d08b53109fef71b)
2024-08-08 18:31:04 +01:00
Cj
967dc15564 ProfileFixerService Refactor (!391)
Refactor to remove legacy code that bloats the `ProfileFixerService` class. Most of which is old profile porting code, some being old profile fixes. Organizes code in the class so that public members are at the top (as they should be). Finally break out some code into their own methods so they're not in the primary method for the class `checkForAndFixPmcProfileIssues`.

I have tested this with a developer profile, an EOD profile and a Standard profile. I've encountered no issues in my own testing.

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/391
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-08-08 17:09:52 +00:00
Dev
2fbcee22bd Fixed container errors due to biome 2024-08-07 22:09:46 +01:00
Dev
23af7e1d9b Updated trader assorts 2024-08-04 16:33:36 +01:00
Dev
bd7e6fecb5 Updated PMC names
(cherry picked from commit e4ba92b4a64210a105b2f4e0d0980a28d5d1f484)
2024-08-04 09:39:32 +01:00
Dev
fc8769ba30 Basic implementation of pocket tpl quest reward handling 2024-08-03 23:10:54 +01:00
Dev
19d2527e37 Added quests:
Thirsty - Hounds
Circulate
Thirsty - Hounds
Friend among strangers
What's your evidence?
Immunity
Special Offer
Quality Standard
Airmail
The Good Times - Part 2
Minute of Fame
Viewer
Serious Allegations
Camera Action
Proper Comeback
2024-08-03 22:51:43 +01:00
Dev
aa03e5e805 Added quests:
Thirsty - Hounds
Circulate
Thirsty - Hounds
Friend among strangers
What's your evidence?
Immunity
Special Offer
Quality Standard
Airmail
The Good Times - Part 2
Minute of Fame
Viewer
Serious Allegations
Camera Action
Proper Comeback
2024-08-03 22:51:29 +01:00
Dev
6d5f58c9db Added 2 additional flags to compiler options 2024-08-03 22:24:32 +01:00
Dev
e15bf4245b Added quest Test Drive - Part 4
Updated `Counteraction` dogtag requirement

(cherry picked from commit f0b302a11908f5a291d6b9b64d8d0dfee804310d)
2024-08-03 22:24:02 +01:00
Dev
18158bb4dc Fixed FiR status persisting after death for items inside secure container 2024-08-02 15:54:39 +01:00
Dev
f94985f3f2 Updated seasonDates to fix gaps in coverage - extended summer 2 months 2024-08-02 09:55:02 +01:00
Dev
532491bc91 Updated packages 2024-08-01 09:17:24 +01:00
Dev
8b293b29d8 Added fuel to dev profile inventory 2024-08-01 09:01:00 +01:00
Dev
6c4b53f95e Fixed broken tests 2024-08-01 08:45:37 +01:00
静穏靄
45b29731dc Bump server version (!392)
Got confused when I generated types, this fixes NPM reporting 3.9.0.
Before and after:

![image](/attachments/056fdd66-c98f-4be3-bcb2-c3b4cfc5bd01)

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/392
Co-authored-by: 静穏靄 <seionmoya@noreply.dev.sp-tarkov.com>
Co-committed-by: 静穏靄 <seionmoya@noreply.dev.sp-tarkov.com>
2024-08-01 07:12:28 +00:00
Dev
5473f73e2a Reduced mp7/mp9 spawn chances on PMCs + reduced all AK chances 2024-07-31 20:30:02 +01:00
witek
59308604fa 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>
(cherry picked from commit 3edf0f2ff9d6793d7441591f15dd309fef9871f5)
2024-07-31 20:14:20 +01:00
MadByte
a52c81e270 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>
(cherry picked from commit 6f010acfca8ec57105a3cd3bc959ed61be206e13)
2024-07-31 20:14:12 +01:00
Dev
a3935d13a6 Lowered PMC spawn chance of following weapons:
ADAR, MP7,MP9, P226

(cherry picked from commit 52a0373deb7f57524ea95ed3e5ce7487955d50f6)
2024-07-31 20:13:56 +01:00
Dev
a1fe93cab6 Updated PMC max level to match player max 2024-07-30 15:25:08 +01:00
Dev
8f67f75930 Improved how generateMultipleBotsAndCache() and returnSingleBotFromCache() handles missing raid settings from AppContext 2024-07-30 12:09:28 +01:00
Dev
5697bd8783 updated globals json 2024-07-30 11:39:03 +01:00
DrakiaXYZ
e295cda571 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>
(cherry picked from commit ee1eb7d690c5ebd3d1aa4229d3a15d1050f84b5a)
2024-07-30 08:29:04 +01:00