Commit Graph

2909 Commits

Author SHA1 Message Date
Dev
1236f8ef4d Fixed incorrect IRestrictionsInRaid interface
(cherry picked from commit 10dfb89787)
2024-08-19 18:35:28 +01:00
Dev
ef8c3d30cf Fixed 2 quest reward scopes not having the correct parentid 2024-08-19 17:17:40 +01:00
Alex McAuliffe
e8d8e7670b Update BotLevelGenerator tests after refactor (!399)
Fixes the failing test due to method under test being merged.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/399
Co-authored-by: Alex McAuliffe <alex@romanx.co.uk>
Co-committed-by: Alex McAuliffe <alex@romanx.co.uk>
2024-08-19 14:10:00 +00:00
Alex McAuliffe
18d39224a9 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>
2024-08-19 13:39:08 +00:00
Dev
a0c79ac6bc Updated locales 2024-08-19 09:05:51 +01:00
Dev
3777468479 Updated version strings 2024-08-19 09:04:08 +01:00
DrakiaXYZ
c2f8dfbd55 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)

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/397
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-08-19 08:02:06 +00:00
Dev
2ac7813ca1 Updated server version 2024-08-18 17:33:34 +01:00
Dev
27f6d1ee4b Updated locales 2024-08-18 17:31:56 +01:00
Dev
fd50ec4ad8 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

(cherry picked from commit 5ffedfa91a)
2024-08-18 09:52:33 +01:00
Dev
2de979d565 Added additional gas blocks to PMCs
(cherry picked from commit c0cd8d699f)
2024-08-16 23:21:15 +01:00
Dev
9963b99090 Temp fixed birdeye sometimes generating bad M4s
(cherry picked from commit 1b9a3c46f9)
2024-08-16 23:21:09 +01:00
Dev
a75e6264f9 Updated version strings 2024-08-16 18:34:58 +01:00
Dev
5cad2639db Further repeatable quest adjustments 2024-08-15 20:38:55 +01:00
Archangel
5017b01938 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>
2024-08-15 18:03:12 +00:00
Dev
daf70ea67f Fixed bad variable use 2024-08-15 11:10:50 +01:00
Dev
f04382c9bb Fixed issue that would cause repeatable completion quests to get stuck in an infinite loop
Improved performance of completion quests picking items to return
2024-08-15 11:09:42 +01:00
Dev
f46694a169 #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()`
2024-08-15 09:42:07 +01:00
Dev
d736ad43ff Adjusted repeatable quest type choice values based on feedback and playtesting 2024-08-14 23:26:43 +01:00
Dev
653281edc3 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

(cherry picked from commit 4582bb6fe2)
2024-08-12 17:44:07 +01:00
Dev
ead2741513 Fixed PK Zenit PT-2 "Klassika" stock having incorrect pistolgrip mods 2024-08-12 17:10:46 +01:00
Dev
bfb3185b0a Fixed missing SKS rear sights
Fixed recursive issue with `FAST MT Super High Cut helmet (Urban Tan)` being inside its own nvg slot

(cherry picked from commit 85d29c5869)
2024-08-12 17:07:20 +01:00
Dev
ebe1bc021f Fixed calculateItemWorth() not handling child items lacking a upd object 2024-08-11 18:33:24 +01:00
Dev
0a229d78be Fixed invalid check inside getBonusValueFromProfile()
(cherry picked from commit 77c98a4cd4)
2024-08-09 22:05:20 +01:00
Dev
2e9a6016f1 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

(cherry picked from commit 8014bdd06f)
2024-08-09 16:05:42 +01:00
TetrisGG
915c96d40c Fix Bonuses in various Services using Find and not filter. (!393)
Fix for SPT/Issues#743
FuelConsumptionBonus only looked for the first value, not all Bonuses a PMC has.
TODO: Find a way for the Broken Wall to not give too much bonus when a player mops the floor in between the stages. Resulting with too much negative bonus once the broken wall is completed.

Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/393
Co-authored-by: TetrisGG <dmiller2606@gmail.com>
Co-committed-by: TetrisGG <dmiller2606@gmail.com>
2024-08-09 08:50:57 +00:00
Dev
15a83a0da3 Removed fuel debuffs when completing wall construction 2024-08-08 22:59:07 +01:00
Dev
0e1094d775 Improved logic of getBonusValueFromProfile()
(cherry picked from commit 2a52af1275)
2024-08-08 22:37:15 +01:00
Dev
d97e717f76 Added function getBonusValueFromProfile to profileHelper 2024-08-08 18:30:07 +01:00
Dev
e4ba92b4a6 Updated PMC names 2024-08-04 09:39:01 +01:00
Dev
2529c65e80 Added missing quest icon 2024-08-04 09:14:49 +01:00
Dev
f0b302a119 Added quest Test Drive - Part 4
Updated `Counteraction` dogtag requirement
2024-08-03 22:13:58 +01:00
Dev
a407f9545a Adjusted weights of various equipment on PMCs 2024-08-02 17:42:53 +01:00
Dev
06efc71b2d Increased mp-18 chance on level 1-14 PMCs 2024-08-02 17:35:03 +01:00
Dev
1a95ad3e26 Updated version strings 2024-08-02 16:05:36 +01:00
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