Kaeno
fba0f4703a
Setup route to allow switching of profile icon. ( !369 )
...
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/369
2024-07-07 13:07:36 +00:00
Dev
0991572eff
Further improvements to bot caching
2024-07-06 16:58:48 +01:00
Dev
4d167568fb
Added bot cache count when generating. Will only add more bots to cache when below desired amount
2024-07-06 16:42:47 +01:00
Dev
ca52f6d549
Created new LocationLifecycleService
service. Moved raid start/end code into it.
...
Created temp `LegacyLocationLifecycleService` class to hold old raid start/end code until we can safely delete it
2024-07-06 14:36:48 +01:00
Dev
1c3fb5f926
Move location generation code into matchcontroller
2024-07-06 14:04:51 +01:00
Dev
494fd66f51
Renamed LocationGenerator
to LocationLootGenerator
2024-07-06 13:54:04 +01:00
Dev
d71bf2c2c0
Removed dead endpoints
2024-07-06 13:47:56 +01:00
Dev
1f76ce5d10
Refactored airdrop loot code
2024-07-06 13:39:56 +01:00
Dev
4cf1c10c51
Added IGetAirdropLootResponse
2024-07-06 12:59:47 +01:00
Dev
0ac8fbfe8e
Regenerated pscav data on raid end
...
Moved pmc code into own function
2024-07-06 09:41:40 +01:00
Dev
61da90f33d
Merge branch '310-dev' of https://dev.sp-tarkov.com/SPT/Server into 310-dev
2024-07-06 09:21:14 +01:00
Dev
cfb1cb3e39
Stubbed out handlePostRaidPlayerScav()
2024-07-06 09:21:00 +01:00
CWX
7d6721d47b
update comment for airdrop enum, allow airdrop loot to work
2024-07-06 09:17:32 +01:00
Dev
ad1d481069
Remove unused interface
2024-07-05 22:39:24 +01:00
Dev
5e4fec3aa3
Stubbed out insurance code
2024-07-05 20:39:38 +01:00
Dev
8392bc97cf
Moved call to clearStoredBots()
to start raid function
2024-07-05 20:10:24 +01:00
CWX
264a8a06bd
Merge branch '310-dev' of https://dev.sp-tarkov.com/SPT/Server into 310-dev
2024-07-05 19:21:25 +01:00
CWX
f7dce85e0b
update endpoint for airdrop loot
2024-07-05 19:21:21 +01:00
Dev
31ba17a327
Added handling of BTR item delivery
2024-07-05 19:02:02 +01:00
Dev
ed152caa1e
Merge branch 'master' of https://dev.sp-tarkov.com/SPT/Server into 310-dev
2024-07-05 17:48:58 +01:00
Kaeno
4b2f42a406
Add routes for Modules to get Bosses that are allowed to be converted ( !368 )
...
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/368
2024-07-05 16:46:51 +00:00
Dev
541264af73
Fixed bad description
...
(cherry picked from commit 2f6f09c51a
)
2024-07-05 16:56:50 +01:00
Dev
daeae9687a
Fixed getLocation()
not getting location correctly
...
(cherry picked from commit d7798d3afa
)
2024-07-05 16:55:47 +01:00
Dev
2f6f09c51a
Fixed bad description
2024-07-05 16:39:40 +01:00
Dev
d7798d3afa
Fixed getLocation()
not getting location correctly
2024-07-05 16:37:17 +01:00
Dev
5b9d3fb075
left
is now considered 'dead' on raid end
2024-07-05 16:03:16 +01:00
Dev
ce0123efd3
Implemented new wishlist system
2024-07-05 15:06:43 +01:00
CWX
b4a5556d14
Fix health saving
2024-07-05 14:39:21 +01:00
CWX
83a35cbc8c
implement localweather for pve mode
2024-07-05 14:21:30 +01:00
Dev
79612a6c85
Handle when player dies in raid -
...
Send killer messages
Send killed messages
remove equipment\\
2024-07-05 14:16:50 +01:00
Dev
7e64a4be66
Further improvements to post-raid event handling
2024-07-05 13:32:46 +01:00
Dev
85e86b969d
Expanded request object + method info
2024-07-05 10:48:13 +01:00
Dev
daf748e8fb
Added first attempt at client/match/local/start
implementation
2024-07-05 09:39:41 +01:00
Dev
5f280612c4
Update interface to correct naming scheme
2024-07-05 09:39:01 +01:00
Dev
5cd919a7d7
Add location services json
2024-07-05 09:38:27 +01:00
Dev
97c7c536dc
Updated woods+factory json
2024-07-05 00:27:12 +01:00
CWX
1e804ce11e
expirementing with using existing PVE logic
2024-07-04 23:57:15 +01:00
CWX
5ba0de5b80
add routes for start and end of local raid
2024-07-04 22:40:39 +01:00
CWX
136dc111f4
move dummy endpoint
2024-07-04 21:45:19 +01:00
CWX
7982f85e63
add dummy endpoint
2024-07-04 21:33:00 +01:00
Dev
b84795b56e
Update JSONs + included new properties
...
Add endpoint stubs for:
client/match/local/start
client/match/local/end
2024-07-04 21:01:37 +01:00
Dev
c3e9236759
Fixed repeatables breaking when using free refreshes
...
Refactored `changeRepeatableQuest()` to reduce looping and indentation
2024-07-03 21:41:31 +01:00
Tyfon
e58ddac0cc
Fix InventoryHelper.canPlaceItemInContainer being backwards ( !367 )
...
For whatever reason, `InventoryHelper.canPlaceItemInContainer()` currently returns:
`true` if the item CANNOT be placed in the container
`undefined` if the item CAN be placed
`false` if the function thought it could but then failed when trying to (never happens?)
This didn't cause problems because the only two places that call it also treat the return value backwards - both of which are also fixed in this PR.
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/367
Co-authored-by: Tyfon <tyfon7@outlook.com>
Co-committed-by: Tyfon <tyfon7@outlook.com>
2024-07-02 22:05:32 +00:00
Dev
c8f08ff2bc
Fixed edge case where rigs with no soft inserts or plates is listed on flea, resulting on a sell chance of NaN
2024-07-01 16:37:14 +01:00
Dev
a63d2307df
Fixed free refreshes still costing roubles/rep to replace
...
Refactor of `useFreeRefreshIfAvailable()` to improve readability
2024-07-01 10:42:16 +01:00
Dev
bd28cbca57
Feature, plates in armors listed by fence now have individual chances to be removed before listing based on plate protection level
2024-06-30 23:20:49 +01:00
Dev
843455602d
FIxed plate removal code not actually removing plates
2024-06-30 23:02:17 +01:00
Dev
1ba6cbf2bd
Cleaned up randomiseArmorModDurability()
2024-06-30 22:52:55 +01:00
Dev
8517e46ccb
Refactored various functions to improve readability
2024-06-30 21:39:58 +01:00
Dev
15eb6eb69f
Cleaned up various functions to improve readability
...
Removed unused function `splitStackIntoSmallerChildStacks()`
2024-06-30 20:38:23 +01:00
chomp
da955f0a4e
Added ability to convert assault scavs to bosses ( !366 )
...
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/366
2024-06-27 14:09:26 +00:00
Dev
836df0ce9d
Updated findAndAddHideoutProductionIdToProfile()
to also compare the quest id when finding the relevant craft - should fix craft unlock error with Network Provider - Part 2
2024-06-24 22:29:01 +01:00
Dev
2a750a9989
Fixed regression where sellchance because NaN due to a divide by 0 error
2024-06-22 20:40:13 +01:00
Dev
e65b75261f
Added additional event names to NotificationEventType
2024-06-22 13:17:47 +01:00
Dev
2edd1e6824
Semi-reverted last commit as Drak already resolved this and i forgot
2024-06-20 22:43:01 +01:00
Dev
77ca7c74fe
Expanded http server port already in use message logging + throw exception to prevent second server running
2024-06-20 22:27:27 +01:00
Dev
b7082ff9dc
Removed redundant logic as we've reset the data in previous line
2024-06-20 16:17:07 +01:00
Dev
785d6a3589
Fixed free repeatables not refreshing their count after expiry
2024-06-20 16:12:34 +01:00
Dev
7891db84de
Updated createRandomLoot()
to make use of rewardItemBlacklist
black list
2024-06-20 13:37:38 +01:00
Dev
bf276c54a0
Improved comment
2024-06-19 20:52:08 +01:00
Dev
01d3864105
Added additional skill type values
2024-06-19 18:55:17 +01:00
Dev
cf5411336f
Adjusted how item quality % is calculated for player flea offers. Now excludes items without any quality modifier from calculation instead of assuming 100% (slightly lowers sell chance of things like armors)
...
Renamed `getItemQualityModifierForOfferItems()` to `getItemQualityModifierForItems()`
2024-06-19 14:27:58 +01:00
Dev
43a09c29c2
Improved import consistency + comment improvements
...
Moved `IGenerateEquipmentProperties` into own file
2024-06-19 11:11:28 +01:00
Dev
f7e42cae5d
Improved comments inside BotEquipmentModGenerator
class
2024-06-19 10:41:55 +01:00
Dev
416ef74902
Refactored mergeCamoraPool()
2024-06-19 10:40:59 +01:00
Dev
57f0b8b49e
Ensure SelectedMemberCategory
matches MemberCategory
when generating EoD or UhD PMCs
...
(cherry picked from commit 44434b3278
)
2024-06-18 16:06:28 +01:00
Dev
d15150f138
Added nullguard to getMiniProfile()
when profile has been edited and is now corrupt
2024-06-18 11:27:57 +01:00
Dev
5d0cfd7971
Fixed prapor starting gift being sent 5 times
2024-06-17 22:00:38 +01:00
Dev
32e8557723
Split generateRewardItem()
into two functions
2024-06-17 17:46:28 +01:00
Dev
e176b0ae45
Refactored applyMoneyBoost()
to improve readability + apply alteration to reward.value
2024-06-17 17:45:48 +01:00
Dev
1db9aa3243
Prevented gp coin repeatable reward falling below 1
2024-06-17 17:44:34 +01:00
Dev
996e567959
Added nullguard to getTimeElapsedSinceLastServerTick()
2024-06-17 16:43:12 +01:00
Dev
383ccf09d7
Added nullguard protection to serialize()
for bundle loading
2024-06-17 15:35:49 +01:00
Dev
d315414136
Further improvements to setRandomisedGameVersionAndCategory()
to handle unheard profiles the same as live
2024-06-17 10:23:13 +01:00
Dev
357848ba9f
Fixed some PMCs not having their game version flair when they kill you
2024-06-17 09:57:47 +01:00
Dev
e100c29296
Removed need for a separate chosenGameVersion
property
2024-06-17 09:43:23 +01:00
Dev
86380e845a
Replaced hard-coded lavatory check for generic check of areas needsFuel
property
2024-06-17 09:28:59 +01:00
Dev
4094b7ecff
Fixed getAccountTypeAdjustedTraderPurchaseLimit()
not applying to unheard profiles
...
Created `GameVersions` enum and replaced all magic strings with it
2024-06-16 21:22:28 +01:00
Dev
04dee496eb
Updated niki to have the best account type
2024-06-16 21:14:24 +01:00
Dev
df69b229b3
Reworked bot generation to pass game version into generateEquipment()
...
`generateAndAddEquipmentToBot()` now handles pockets separately, flags UhD pockets as not to gen mods as for some reason it has slots 😕
Use this data to adjust the pocket tpl chosen for `unheard_edition`
Add pocket loot weightings of 5 + 6 items for unheard_edition PMCs
2024-06-16 21:09:59 +01:00
Dev
928f9068a3
Adjusted PMC loot generation to allow for 1x2 sized items to be added to the pocket pool to account for UhD
bots' large pockets
2024-06-16 18:52:42 +01:00
Dev
1546bbfc16
Replaced magic string with enum value
2024-06-16 18:44:22 +01:00
Dev
e793b0bc63
Fixed nullref error on repeatable refresh click event
...
Fixed all profiles having access to free repeatable refreshes
Fixed newly created profiles generating with 0 free refreshes regardless of game version
2024-06-16 10:58:35 +01:00
DrakiaXYZ
edfe995c52
Initial implementation of an ItemTpl and Weapon enum generator ( !364 )
...
ItemTplGenerator will create a full ItemTpl.ts and Weapons.ts file with all items and weapons respectively
Renamed WeaponTypes to Weapons to better indicate its new format
Updated all references to these enums to use the new names
New npm command `npm run gen:items` to run this tool
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/364
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-06-16 08:33:01 +00:00
Dev
561ecdd790
Updated bot generator to add UHD pockets to UHD PMCs
2024-06-15 17:42:02 +01:00
Dev
72b0ce324e
Extracted processExpiredQuests()
from getClientRepeatableQuests()
2024-06-15 13:29:22 +01:00
Dev
299586d36a
Improved implementation of daily quest reward system
...
Fixed repeatables vanishing after first generation
2024-06-15 13:28:25 +01:00
Dev
bc3649d2a1
Fixed issue where server would enter infinite loop when selling item to trader and stash contained no money
2024-06-14 19:18:55 +01:00
Dev
12444b025e
Fixed incorrect dogtag return
2024-06-14 15:41:02 +01:00
Dev
277925732f
Added system to allow per-trader starting standing values
2024-06-14 15:40:27 +01:00
Dev
da04065d42
Added game version specific dogtags to PMC bots
...
removed dogtags from `baseClasses` and placed in `ItemTpl`
2024-06-14 14:38:30 +01:00
Dev
646745c5ef
Added insurance reduction by game edition check
2024-06-13 19:21:00 +01:00
Dev
b34a8ee1f1
Updated JSONS
2024-06-13 19:19:51 +01:00
IsaacSin
58ee2c66d3
Fix GP coin ragfair offers being excluded by "Exclude bartering offers" filter. ( !363 )
...
BSG now considers GP coin to be a currency.
Commit 4788f6b407 (diff-d1c96eaf446b0afaf70c62191c7a688471fca50c)
already added GP coin to the `Money` enum, but it needs to be added to `PaymentHelper.isMoneyTpl()` to prevent it from being filtered by the barter filter as with other money offers.
See attached screenshots for a demonstration of SPT vs live behavior.
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/363
Co-authored-by: IsaacSin <Isaacgsds@gmail.com>
Co-committed-by: IsaacSin <Isaacgsds@gmail.com>
2024-06-13 13:28:37 +00:00
Dev
f8bd65ed90
Replaced various array.find()
with array.some()
...
Rewrote `tagItem()` to use `.find()`
2024-06-13 13:41:29 +01:00
Dev
3327bc916a
Renamed functions to better explain what they do
2024-06-13 11:05:10 +01:00
Dev
8c05345b85
Replaced various magic strings with enum values
...
Added `itemHelper.getItemFromPool()`
2024-06-13 10:53:07 +01:00
Tyfon
836910c1d5
Implement Ragfair sort by barter ( !362 )
...
Not that anyone was clamoring for this, but I noticed it was missing.
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/362
Co-authored-by: Tyfon <tyfon7@outlook.com>
Co-committed-by: Tyfon <tyfon7@outlook.com>
2024-06-13 09:29:48 +00:00
Dev
3c0887172e
Fixed MARK_OF_UNHEARD
incorrectly adjusting insurance return time
...
Added `ItemHelper.hasItem()`
2024-06-13 09:47:03 +01:00
Dev
6c1935f93f
Added nullguard when purchasing trader assort with 0 items
2024-06-12 23:07:38 +01:00
Dev
4e311da111
Refactored InraidHelper
2024-06-12 20:42:29 +01:00
Dev
1caff10d35
Refactoring InventoryHelper
2024-06-12 20:25:27 +01:00
Dev
aac2142706
Refactoring of small functions for better readability
2024-06-12 19:33:55 +01:00
Dev
9d79aa70eb
Moved map marker logic out of InventoryController
and into its own MapMarkerService
2024-06-12 19:32:27 +01:00
Dev
292dadc55e
Prevented NRE being thrown when no weapon found inside getSealedContainerWeaponModRewards()
2024-06-12 12:41:09 +01:00
Dev
16f170f28e
Minor adjustments to profileHelper
, launcherController
and profileController
classes
2024-06-12 10:47:01 +01:00
Dev
624737a036
Regenerated bot JSONs
2024-06-11 19:58:30 +01:00
Dev
a34a31f5dc
Small refactor of createMagazineTemplate()
2024-06-10 22:24:08 +01:00
Dev
53c76a098f
Improved Recursive cloner implementation to preserve null state of data
2024-06-10 18:25:58 +01:00
Dev
ca642b94a7
Reworked gift sending/storage sytem to not store the max sends in profile and use the existing gift data
...
Fixed `sendPraporStartingGift()` not sending gifts
Expanded `GiftService` to include methods to get gift by id / all gifts / all gift ids
2024-06-09 09:13:38 +01:00
Dev
19bcfe2e87
Cleaned up traderBuyRestrictionReached()
2024-06-08 19:49:30 +01:00
Dev
89459b9e5b
Small cleanup of setTraderOfferPurchaseLimits()
2024-06-08 19:38:48 +01:00
Dev
f263f8b0cb
Added implementation of BSG feature Increased personal trader item limits by 20% for Edge of Darkness and The Unheard edition owners who upgraded from Edge of Darkness
...
This fixes EoD/UH/DEV profiles throwing errors when purchasing items near their trader BuyRestrictionMax limits
2024-06-08 19:38:16 +01:00
Dev
5d3ea2ef83
Adjusted addBuffToItem()
to also include ARMOR_PLATE items
2024-06-08 17:58:12 +01:00
Dev
75a34f5ca2
Expanded gift system used by spt bot
...
Gifts can be given multiple times
stash expansions are limited to 5 max by default
dev balaclava can be given 5 times, majority of gifts are 1 use still
Updated data structure to persist gifts received, this will break profiles
2024-06-08 17:54:05 +01:00
Dev
f475d4f6f3
Added ARMOR_PLATE
type to getItemSkillType()
check
2024-06-08 17:07:14 +01:00
Dev
e39654be6a
Simplified generateInventoryId()
2024-06-08 16:16:36 +01:00
Dev
b645e6f51b
Added Error throwing when calling getConfig()
and a config cannot be found
2024-06-08 12:56:24 +01:00
Dev
2fea0d17de
Fixed altering SelectedMemberCategory
in settings page not saving
2024-06-08 09:15:59 +01:00
Dev
8745caf86d
Refactored getHighestSellToTraderPrice()
2024-06-07 23:14:18 +01:00
Dev
3f125593a7
Refactor BotGenerator()
2024-06-07 22:41:30 +01:00
Dev
d9f8ba653a
Refactoring of RepeatableQuestController
2024-06-07 21:33:09 +01:00
Dev
bb4bfc6dcb
Refactoring of generateReward()
2024-06-07 20:19:58 +01:00
chomp
4788f6b407
30473 ( !361 )
...
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/361
2024-06-07 18:25:27 +00:00
chomp
b3b1f76a77
Migrate PMCs (sptBear/sptUsec) To Bsg Types (pmcBEAR/pmcUSEC) ( !360 )
...
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/360
2024-06-06 16:59:44 +00:00
Dev
75b2661f72
Moved pity gift code into chooseMessage()
to group similar functionality together
2024-06-06 12:24:12 +01:00
Scuvy
e0717daa99
Send pity gift codes to player when player dies to other PMC's ( !359 )
...
* This is to address [Issue 652](https://dev.sp-tarkov.com/SPT/Issues/issues/652 ).
* Added messages with gift codes inside project/assets/database/locales/server/en.json
* Update pmcchatresponse.json to include new pity message type.
* Update logic in project/src/services/PmcChatResponseService.ts to now account for pity messages that are sent.
The message's %giftcode% will now be replaced with a random gift code from assets\configs\gifts.json
* Example:
- ![image](/attachments/ade2686a-8dcb-4c11-9457-88e003a47416)
Co-authored-by: Scuvy <Scuvy@gmail.com>
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/359
Co-authored-by: Scuvy <scuvy@noreply.dev.sp-tarkov.com>
Co-committed-by: Scuvy <scuvy@noreply.dev.sp-tarkov.com>
2024-06-06 11:14:38 +00:00
Dev
ccb351a2dd
Expanded craft search code to also check for craft count
2024-06-06 11:34:03 +01:00
Dev
af76a068b4
Fixed incorrect logging values
2024-06-05 21:50:27 +01:00
Dev
2a9cbab762
Fixed issue with PMC post-raid messages not being sent
...
Caused by bot match cache regression resulting in bot data not being stored during generation
2024-06-05 21:50:07 +01:00
Dev
bcb40c8333
Fixed hideout crafts causing server failure
2024-06-04 19:23:37 +01:00
Dev
0574392f28
Added new lootable item blacklist and added checks to bot and map loot generator code
...
Remove event quest item from global blacklist and move to loot item blacklist
2024-06-04 18:57:36 +01:00
Dev
5b4b0c1471
Introduced Set to speed up calls to isItemBlacklisted()
2024-06-04 18:32:22 +01:00
TetrisGG
bef57f4f58
Fix Tournament Profile having access to Fence ( !358 )
...
Fixes SPT/Issues#677
Fence should be locked in Tournament Profile.
Setting Fences base.json `unlockedByDefault` to `false` makes the profile able to lock Fence
Code from Client:
Shows that unlockedByDefault overrides whatever is written in the Profile data on init.
![image](/attachments/7336f96c-31c0-4ea3-848d-65320cf41340)
Working Screen from Game:
![image](/attachments/b94f368e-91c4-4641-a31e-8b0d8c60d239)
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/358
Co-authored-by: TetrisGG <dmiller2606@gmail.com>
Co-committed-by: TetrisGG <dmiller2606@gmail.com>
2024-06-04 17:20:10 +00:00
Dev
dde78b30eb
Cloned blacklist data before returning it
2024-06-04 18:18:52 +01:00
Dev
2a587d80d8
Added system to filter blacklisted items from static and dynamic loot positions
...
Moved seasonal item filter code to different position inside `generateDynamicLoot()`
2024-06-04 17:06:50 +01:00
Dev
e5398f5e4d
Added implementation for Achievement
quest rewards
2024-06-04 15:36:01 +01:00
Dev
aebe1ab606
Updated getItemPrices()
to return each traders next refresh timestamp
2024-06-04 15:17:46 +01:00
Dev
ba8829681d
Fixed flea-banned players being able to buy pmc items from flea
2024-06-03 22:35:09 +01:00
Dev
0aff3c5274
Fixed missing property in addMissingSptVersionTagToProfile()
2024-06-03 22:30:20 +01:00
Dev
7842167595
Stored free daily quest resets in profile per-daily-type
...
Wired up `getClientRepeatableQuests()` to retrieve this value + reduced indentation of function
Updated `changeRepeatableQuest()` to decrement free daily value from profile
2024-06-03 17:33:46 +01:00
Dev
671c57cefb
Cleaned up getClientRepeatableQuests()
2024-06-03 16:51:26 +01:00
Dev
b010ff87c2
Pulled code out of acceptRepeatableQuest()
into new function createAcceptedQuestClientResponse()
2024-06-03 16:20:16 +01:00
Dev
2f21178dc9
Updated JSON data
2024-06-03 15:59:38 +01:00
Dev
5c7f6bc782
Improved comments for deserializeWithCacheCheck()
2024-06-02 14:49:28 +01:00
Dev
a1955d4e7e
Second part of EventOutputHolder
change, updated output
to be keyed by sessionID
2024-05-31 23:28:35 +01:00
Dev
97efad0a79
Updated clientActiveSessionStorage
inside EventOutputHolder
to store data by sessionId
2024-05-31 23:10:18 +01:00
Dev
f20ffe286b
Reworked getBotCap()
to use data from url instead of appContext
2024-05-31 22:01:48 +01:00
Dev
561e8da3db
Improved client/items/prices
handling
2024-05-31 16:16:10 +01:00
Dev
b7a9296fac
Expanded getItemName()
to return short name when full name is not found
2024-05-31 11:09:19 +01:00
Dev
5531f9d03e
Added text to help with finding data
2024-05-30 13:16:28 +01:00
Dev
f341bfcb4b
14.8.6.30268
...
Added new properties to daily quests
Stubbed out quest achievement rewards
Added new Item properties used by unknown radio
Updated data JSONs
2024-05-30 13:05:28 +01:00
Dev
56d135fe6d
Fixed bot generation error
2024-05-30 10:09:04 +01:00
Dev
b8ee834165
Replaced uses of DatabaseServer
with DatabaseService
2024-05-29 15:15:45 +01:00
Dev
2169fd3210
Flagged RarityPvE
as optional
2024-05-29 10:35:18 +01:00
Dev
7d515ad680
Replaced uses of DatabaseServer
with DatabaseService
2024-05-28 22:24:52 +01:00
Dev
5bd49ded59
Updated SaveServer.load()
to log the total time taken to load profiles on server started instead of per profile
2024-05-28 18:40:22 +01:00
Dev
c72834d778
Adjusted load time logging to show a max of 2DP
2024-05-28 18:33:17 +01:00
Dev
0dfbf61ddf
Replaced usages of parameters with fixed values
2024-05-28 18:32:09 +01:00
Alex
e2eb56a60a
Added more nullguards ( !356 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/356
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-28 14:35:38 +00:00
Alex
8727f6150e
primery-dependencies ( !355 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/355
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-28 14:04:20 +00:00
Dev
f56da3c1a8
Updated various classes to make use of databaseService
2024-05-28 14:52:22 +01:00
Dev
584eade530
Added getLocation()
to databaseService
and made use of it across various classes
2024-05-28 14:28:26 +01:00
Dev
c710169e3d
Fixed bad error throw
2024-05-28 14:23:01 +01:00
Dev
7cdac4e38b
Added getTrader()
and utilise inside various classes
2024-05-28 14:13:44 +01:00
Dev
fdb7a2b7d8
Updated various classes to use DatabaseService
instead of DatabaseServer
2024-05-28 13:59:19 +01:00
Dev
9f1e0693f5
Make use of DatabaseService
inside ProfileFixerService
and CustomItemService
2024-05-28 12:27:46 +01:00
Dev
4c08d64ca5
Make use of DatabaseService
inside GameControler
and RagfaiServerHelper
2024-05-28 11:17:38 +01:00
Dev
e78087818f
Add DatabaseService
as safer alternate to DatabaseServer
for accessing db
2024-05-28 11:13:27 +01:00
Dev
3d4447c978
Added ITemplates
interface
2024-05-28 11:11:50 +01:00
Dev
d6f7374a9a
Added IHideout
interface
2024-05-28 10:41:07 +01:00
Dev
17882ddeab
Add interface for database bots object
2024-05-28 10:33:29 +01:00
Dev
65f27a7d8c
Fixed various Object is possibly undefined
warnings
2024-05-28 10:25:23 +01:00
Dev
e0eaadbeef
Added implementation of adjusting hideout area level via mails profileChangeEvents
property
2024-05-27 21:30:40 +01:00
Alex
173a726f33
Removed all null references in favor of undefined ( !354 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/354
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-27 20:06:07 +00:00
Dev
a37664f43a
Localised various errors
2024-05-27 20:06:10 +01:00
Alex
aee391ec1d
Null checks first pass ( !353 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/353
2024-05-27 16:05:16 +00:00
Dev
e5fd26b89c
Add system to purchase all clothing from trader on profile creation - enabled for tourney profile
...
Fixed USEC profiles not having fence locked on tourney profile creation
2024-05-27 16:30:03 +01:00
Dev
edbb6cec19
Updated _proto
inside ITemplateItem
nullable
...
Added `ItemType` enum for `_type` property in `ITemplateItem`
2024-05-27 13:59:25 +01:00
Dev
82c6add9ab
Improved insurance calculation accuracy with help from Doctor
...
Removed `insuranceMultipler` from `insurance.json` config, no longer necessary
2024-05-27 13:42:28 +01:00
Dev
40bc26dfd0
Improved localization text for ragfair-unable_to_find_item_price_for_item_in_flea_handbook
2024-05-27 10:26:11 +01:00
Dev
673256e5fa
Added disableLootOnBotTypes
property to bot.json
config to allow disabling loot on bots by their type
2024-05-26 16:32:39 +01:00
Dev
88242238f9
Peppered fillMagazineWithCartridge()
with guards to assist players with finding cause of error
2024-05-26 12:17:47 +01:00
Dev
86c383c97b
Added trader assort item blacklist system. Can be applied per profile
...
Enabled for Tournament profile
Added support to server to handle `AssortmentUnlockRule` mails
2024-05-25 21:21:23 +01:00
Dev
d3b8138bab
Ignored various property naming lint issues
2024-05-25 15:57:11 +01:00
Dev
ece45f0788
Ignored various property naming lint issues
2024-05-25 15:53:49 +01:00
Dev
923a92169d
Fixed multiple ragfair bans being added on profile creation
2024-05-25 15:46:01 +01:00
Dev
ef8307540b
Fixed issue with redeemProfileReward()
not correctly levelling up traders, causing player to only see level 1 trader items until a restart
2024-05-25 15:45:27 +01:00
Dev
ca737d2f62
Added ability to flag a profile as flea banned via config
...
Updated tournament profiles to use new system
Added `getTimeStampFromNowDays()` helper to `TimeUtil`
Improved accuracy of `Bans` property in profile
2024-05-25 15:09:52 +01:00
Dev
eba65cdd83
Added new Tournament
profile. Flea blacklisted. Has special gift code.
2024-05-25 14:45:36 +01:00
Dev
aa03a002ed
Fixed profileChangeEvent Skill
failing when invalid skill passed in
2024-05-25 14:40:49 +01:00
Dev
e505f86137
Fixed sendGiftToPlayer()
not correctly sending profile change events
2024-05-25 14:33:22 +01:00
Dev
18a5c49812
Add trader id to getItemPrices()
2024-05-25 10:40:32 +01:00
Dev
e2dd677b40
Fixed getLocalesGlobal()
not correctly falling back to english when locale not found
2024-05-24 23:23:59 +01:00
Dev
612b1b7940
Localized more warnings
2024-05-24 16:42:42 +01:00
Dev
ed50a89e85
Added localisation to InsuranceController
2024-05-24 15:51:16 +01:00
Dev
36a43f38ab
Updated locales
2024-05-24 15:33:54 +01:00
Dev
6623a86d0f
Improved how PMC difficulty values are generated to improve PMC vs PMC settings
...
Moved difficulty-related into `BotDifficultyHelper`
Made `typeBeingEdited` property in `addBotToEnemyList()` optional
2024-05-24 10:58:55 +01:00
Dev
f68827bdc2
Added ability to insert custom text into the server watermark at the bottom via core.json config
2024-05-23 21:40:59 +01:00
Dev
198f864fe6
Added additional property
2024-05-23 18:10:24 +01:00
Kaeno
c0d3c5384f
QuestitemInsurance ( !350 )
...
Add ability to tell if we planted the item at a quest location (fishing gear, SV98) and dont return it with insurance
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/350
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-committed-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
2024-05-22 19:57:37 +00:00
Dev
4081508bf3
Improved accuracy of flea offer creation
...
`user` object of each offer matches live
Added `getPmcNicknameOfMaxLength()` to `botHelper`
2024-05-22 13:26:35 +01:00
Dev
961210f73c
Renamed function to clarify what it does
2024-05-22 12:51:04 +01:00
Dev
2b3ee4f15c
Improved how AID is obtained when generating a flea offer
2024-05-22 12:50:19 +01:00
Dev
2edd1695f6
Improved locale text for modloader-outdated_sptversion_field
2024-05-22 11:23:38 +01:00
Dev
cd965bb733
Refactored 2 functions to accept a request object instead of 5+ parameters generateModsForWeapon()
and chooseModToPutIntoSlot()
...
Store meta-data on weapon as its being generated e.g. if it has an optic/front sight/rear sight
use above meta-data to force a low/high profile gas block on weapon during generation
2024-05-21 23:22:16 +01:00
Kaeno
37f4a23acf
Fix flea market error when clicking on user. Handled responses that wasn't been handled correctly ( !348 )
...
:)
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/348
2024-05-21 21:24:57 +00:00
Dev
6656c733a3
Added migration path for 3.8.3
profiles into new 3.9.0
structure
2024-05-21 19:47:01 +01:00
Alex
d13e86ba46
Rebranding to SPT ( !345 )
...
Rebranded src code and scripts to SPT
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/345
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-21 17:59:04 +00:00
Dev
a48e130f1b
Localized various warning messages
2024-05-21 14:28:52 +01:00
Dev
139b139581
Localised various error messages
2024-05-21 12:40:16 +01:00
Dev
7b345b7513
Improved checkForOrphanedModdedItems()
to show more relevant error messages
2024-05-21 11:20:33 +01:00
Alex
d437b5b922
auto-dependency-installer-fix ( !343 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/343
2024-05-20 11:01:35 +00:00
Alex
bf528fd1de
Added Mark of the Unheard buff to the insurance timer ( !342 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/342
2024-05-20 10:44:05 +00:00
Dev
597ea96f34
Added per-profile type redeem times to server
...
unheard has a 72 hour redeem time vs all other profiles 48
renamed `redeemTime` to `mailRedeemTimeHours`
2024-05-20 11:31:45 +01:00
DrakiaXYZ
fcabd68dfc
Fix issues around ragfair and handbook caching ( !334 )
...
- Make `PenetrationDamageMod` optional in ITemplateItem
- Cache handbook values if they're found after initial cache generation
- Refactor how caching in RagfairPriceService is handled
-- Rename `generate` methods to `refresh` to better indicate their purpose
-- If item price isn't found in cache, try to find it and add it
-- Refresh caches prior to returning all flea prices (This is only triggered via a route call, so shouldn't happen often)
-- Remove storage of whether we've generated cache, it should always be done on load, and we dynamically add to it, so it's not necessary to keep track of
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/334
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-05-20 07:58:13 +00:00
Tyfon
66cac910c3
Add scav profile support to InventoryController.swapItem ( !341 )
...
Resolves https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/664
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/341
Co-authored-by: Tyfon <tyfon7@outlook.com>
Co-committed-by: Tyfon <tyfon7@outlook.com>
2024-05-19 12:25:56 +00:00
Alex
5b5bf8bd7c
Added WebSocket handlers for new connections and messages received through the default EFT socket ( !339 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/339
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-18 16:45:21 +00:00
Dev
3163e5cd0c
Added missing IQuestSettings
interface
2024-05-18 14:36:51 +01:00
paulov
0d2afc9c49
Fix RecursiveCloner Null Value Handling ( !338 )
...
This PR fixes an issue in RecursiveCloner where null value properties of any type (i.e. arrays, nullable primitives) were being converted to empty objects.
An example of where this is a problem can occur when starting a raid in 3.9. The client would attempt to convert the empty object (created by the RecursiveCloner) to an Array and it would result in a JSON error.
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/338
Co-authored-by: paulov <v2k4gameplay@outlook.com>
Co-committed-by: paulov <v2k4gameplay@outlook.com>
2024-05-18 09:28:50 +00:00
DrakiaXYZ
2d299b99d2
Fix error in getExperience for over leveled players ( !337 )
...
Fixes an error in getExperience when players are over level 79
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/337
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-05-18 07:36:55 +00:00
Dev
f581b8ff2a
Fixed issue with server failing to generate a green flare as its a weapon without a default preset
2024-05-17 20:38:39 +01:00
Refringe
cb169a18b9
Project Code Format
...
Ran the `npm run format` command to bring the entire project in-line with the formatting rules.
2024-05-17 15:32:41 -04:00
Dev
5def42416b
Merge branch '3.9.0-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-05-16 11:10:41 +01:00
Dev
53b7741e39
Fixed game load issue
2024-05-16 11:10:04 +01:00
Refringe
79781ab8bb
Linting Updates ( !336 )
...
This update now runs Prettier before ESLint (with the Stylistic plugin) for code formatting. This takes care of a lot of the edge cases that ESLint doesn't touch by itself. Also adds the `eslint-plugin-unused-imports` ESLint plugin to remove unused imports and the `eslint-plugin-switch-allman` ESLint plugin to enforce Allman braces on case declarations.
The VSCode format-on-save function now requires two additional extentions to be installed: Prettier and Format Code Action. Links can be found in the README and in the recommended extentions section of VSCode when the workspace is open.
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/336
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-05-16 08:41:05 +00:00
TheSparta
f147bb64eb
restructured Notification interfaces...
...
- Restructured notification interfaces
- Added some missing enums
2024-05-15 23:47:37 +01:00
TheSparta
9d127cbb6c
Add missing types for handled match routes
2024-05-15 23:45:48 +01:00
Dev
2696a2dff2
Linted files edited in previous commit
2024-05-15 19:43:39 +01:00
Dev
d95423b0f1
Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/core.json
# project/package.json
# project/src/models/eft/common/IGlobals.ts
# project/src/routers/dynamic/BundleDynamicRouter.ts
2024-05-15 16:39:41 +01:00
Dev
e0fd7e59e7
Added missing endpoint
2024-05-15 15:43:19 +01:00
Dev
8e78cb0faf
Added missing replyTo
property to Message
2024-05-15 15:42:58 +01:00
Dev
46b630c5ef
Added missing notification types
2024-05-15 15:42:35 +01:00
Dev
c6041514db
Added additional missing endpoints
2024-05-15 14:23:19 +01:00
Dev
5d8d6d7185
Improved accuracy of multiple endpoints
2024-05-15 14:10:06 +01:00
Dev
f45b54a01a
Update to 29997
2024-05-15 10:45:01 +01:00
Dev
1d8bc4537c
Fix issue with getBotDifficultySettings()
cloning assault bot correctly when bot type not found but storing it against the new bot type with preserved caps, resulting in getting difficulty values failing
2024-05-14 15:45:04 +01:00
Dev
ed6e81ab52
Expanded input parameters for getBotGenerationDetailsForWave()
and include change inside returnSingleBotFromCache()
2024-05-14 11:34:09 +01:00
Dev
81c7b8751b
Extracted 2 functions from generateBotsFirstTime()
to allow easier overriding for mod authors
2024-05-14 11:23:02 +01:00
Alex
7dc17acb97
Made commando first check if there's a preset for an item, otherwise if goes through normal logic ( !333 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/333
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-14 07:30:40 +00:00
DrakiaXYZ
adab18e3fb
Fix issues around locales ( !332 )
...
- Remove locale check for give command (Now handled in the localeService itself)
- Fix variable names/spelling/lowercase in LocaleService.getPlatformForServerLocale (should be no change in behaviour)
- Rewrite LocaleService.getPlatformForClientLocale to not depend on serverSupportedLocales, and instead just use the tables for validity checking
- Expand fallback of client locale handling to include the region code (Handles Czech and Korean locales)
- Write tests for locales
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/332
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-05-13 21:42:58 +00:00
Refringe
14e8f8fa19
Take your brackets back!
...
I don't want em'. Grumble. Ahem...
This change allows for "extra" parentheses to be added in situations where, without them, the code could possibly, potentially be seen as maybe a little-bit, tiny confusing.
Also, fixes a bunch of other ESLint errors. Mostly down to naming warnings now. Mostly.
2024-05-13 17:04:23 -04:00
Dev
65e2b87190
Adjusted sendInsuredItems()
to use the globals property Insurance.MaxStorageTimeInHour
2024-05-13 20:34:44 +01:00
Alex
f8d1227dfd
Introduced a new ICloner interface with 3 implementations, one of them being a recursive cloner which is faster and more efficient than its counterparts by more than 50% ( !328 )
...
Co-authored-by: clodan <clodan@clodan.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/328
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-13 17:58:17 +00:00
Dev
f2c7e938cc
Updated various JSONs
2024-05-13 17:05:04 +01:00
clodan
be082ebb71
Fixed give command localization issue
...
(cherry picked from commit 9390759621
)
2024-05-12 22:14:29 +01:00
Dev
02e8b5051c
Added guard against nullref inside updateFenceAssorts()
to protect against modded items
2024-05-12 19:08:11 +01:00
vniehues
3e68297016
[ADD] functionality to read "x-forwarded-for" and "x-real-ip" headers when handling a request ( !329 )
...
I'm currently hosting the Project Fika Docker on a dedicated Server to have the Server up 24/7 without the need to let my PC run.
When hosting this as a docker container behind traefik (reverse proxy), the logger currently logs the internal IP of the traefik container.
This change makes it so that the headers that traefik/nginx can set are actually read and used. If these headers are not present, we fall back to the original method of using the `socket.remoteAdress`.
Since this is for logging only, the security implications are minimal.
Co-authored-by: Vincent Niehues <vincent.niehues@zeitag.ch>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/329
Co-authored-by: vniehues <vniehues@noreply.dev.sp-tarkov.com>
Co-committed-by: vniehues <vniehues@noreply.dev.sp-tarkov.com>
2024-05-12 13:56:03 +00:00
Dev
9323db5b1c
Improved debug logging in filterPlateModsForSlotByLevel()
+ improved variable names
2024-05-12 10:29:18 +01:00
Dev
572f6a5668
Improved getModPoolForSlot()
...
Comment changes
Variable change
Only log debug message when default mod not found + multiple choices exist in pool
Fixed possible nullref if `getMatchingPreset()` returns null
2024-05-12 10:15:08 +01:00
Dev
72a1eb0a34
Improve comments inside modIsFrontOrRearSight()
2024-05-12 09:31:40 +01:00
Dev
ac5103390c
Added nullguard check inside generateLoot()
to prevent 380 mods killing bot generation
2024-05-11 16:21:39 +01:00
Dev
fddbe4cf54
Merge branch '3.8.2-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.2-DEV
2024-05-10 14:51:44 +01:00
Dev
aeee99bae5
updated removeResourceFromArea()
to get FiR status for a fuel item without a upd
property
2024-05-10 14:51:23 +01:00
TheSparta
3b0ee75d7f
Handle all bundles regarless of extension on BundleSerializer
2024-05-09 15:22:10 +01:00
Refringe
8821115cfc
Fixes Duplicate Interface
...
This renames a BTR configuration interface that had the same name as another interface.
IBtrMapConfig --> IBtrPathConfig
2024-05-08 00:26:12 -04:00
Refringe
ba1ac09b0b
Merge branch '3.8.2-DEV' into 3.9.0-DEV
...
# Conflicts:
# project/src/callbacks/ItemEventCallbacks.ts
# project/src/models/eft/common/IGlobals.ts
# project/src/models/eft/common/ILocation.ts
# project/src/models/eft/common/ILocationBase.ts
# project/src/models/eft/common/tables/ILootBase.ts
# project/src/models/eft/common/tables/ITemplateItem.ts
# project/src/models/eft/weather/IWeatherData.ts
# project/src/models/spt/bots/BotGenerationDetails.ts
# project/src/models/spt/config/IPmcConfig.ts
# project/src/models/spt/config/IWeatherConfig.ts
# project/src/models/spt/server/IDatabaseTables.ts
# project/src/models/spt/server/ILocations.ts
# project/src/servers/http/IHttpListener.ts
2024-05-08 00:21:12 -04:00
Refringe
50c7a26a58
ESLint Pass
...
This is the first pass of ESLint on the codebase.
ESLint formatting is less strict when it comes to line-length and line-breaks then dprint/biome, so if you see formatting that you don't like... fix it! It shouldn't require a configuration change.
- This should merge clean into master (when the time comes).
- This will not merge clean into `3.9.0-DEV`, but the conflicts aren't that bad.
2024-05-07 23:57:08 -04:00
TheSparta
cd5179bf39
fixed autoimport resolved wrong path
...
- vscode fumbled my previous commit
2024-05-07 15:14:49 +01:00
TheSparta
65f062a3f9
merged equal uid request interfaces into one
2024-05-07 15:09:25 +01:00
Dev
d8f2153009
Fixed flares not being sent when using give
command from commando
bot
2024-05-07 13:45:29 +01:00
Dev
eb0fb09a37
Fixed profile creation failing when player alt+f4s partially through profile creation process
...
Added nullguard to `userbuilds` code inside `checkForOrphanedModdedItems()`
2024-05-07 09:02:44 +01:00
Refringe
735624eb9c
Merge branch '3.8.2-DEV' into 3.9.0-DEV
2024-05-06 21:52:21 -04:00
TheSparta
f991382d66
Fixed unable to send bundle if path had spaces
2024-05-06 21:53:30 +01:00
Dev
fa76578880
Updated insurance tests
...
Added logging of items attachments that are being removed
Only add items with a price to weight dictionary
2024-05-06 19:33:44 +01:00
Dev
77a5b0a4b4
Reworked how insurance picks attachments to delete before return
...
Now has a chance to not pick any to remove (default 10%)
Now only removes attachments that are above a rouble price (default 2000)
Stores attachments in a dictionary weighted by rouble price
Picks random amount of attachments to remove and then picks from pool by price, removing items from pool as they're picked
2024-05-06 15:54:29 +01:00
Dev
9fb1d9728e
Fixed PMC loot generator only using flea price not flea or handbook price. Now uses whatever is higher
2024-05-06 15:21:35 +01:00
Dev
17296fabfd
Moved reduceWeightValues from PMCLootGenerator into weightedRandomHelper and made public
2024-05-06 15:20:44 +01:00
Alex
c33773a318
Added more resiliency to the give command for modders who dont want to add localization for their mods ( !325 )
...
Fixed cases for modded items causing problems with Commando.
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/325
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-06 07:17:40 +00:00
Alex
c552c7ad67
Removed exception thrown in compare util and instead assume two objects dont match ( !324 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/324
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-05 11:33:18 +00:00
Dev
6d8311150e
Made traderOffersNeedRefreshing()
more resilent to incorrectly installed trader mods
2024-05-05 11:50:24 +01:00
Alex
84d5462955
Fixed give command to use dice coefficient making it more precise. Fixed give command giving invalid items to players. ( !323 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/323
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-05 08:01:18 +00:00
Dev
509e208fb9
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/pmc.json
# project/src/helpers/ItemHelper.ts
# project/src/models/spt/config/IPmcConfig.ts
2024-05-04 21:41:44 +01:00
TheSparta
d3ac83e63b
expose websockets ( !321 )
...
- Added 2 methods that expose the websocket server and each session's websocket
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/321
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
2024-05-04 18:02:20 +00:00
TheSparta
d2e1624618
dialogs-profiles-refresh ( !320 )
...
This PR updates a few interfaces and consequently a few functions returned data,
it also handles 2 new routes:
`/client/friend/request/decline`
`/client/friend/request/accept-all`
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/320
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
2024-05-03 22:54:48 +00:00
Dev
99444c7237
Added config to not included secure container loot in PMCs - set to false by default
2024-05-03 21:31:24 +01:00
Dev
096c8471dc
Fixed incorrectly logging insurance mesage
2024-05-03 20:04:29 +01:00
Alex
03c914f9e8
Fixed ragfair memory leak ( !319 )
...
Fixed ragfair memory leak where NPC player ids would continuously get added into the cache map, when those offers expire the entry on the dictionary would be left empty but the string allocation on the key would remain in memory, overtime it would stack up to massive amounts of memory usage
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/319
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-02 13:18:34 +00:00
Alex
bccda0302f
ragfair-safety-net ( !318 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/318
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-02 08:56:40 +00:00
Alex
0502257093
Added functionality for Fence to resell items sold to him by PMCs, and fixed give command giving incomplete preset items and bugged ammo boxes ( !317 )
...
Fixes https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/625
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/317
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-01 20:17:09 +00:00
Dev
3a464af5f4
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-05-01 12:27:28 +01:00
acidphantasm
3d2fd7b40a
Add stash row quest reward functionality ( !316 )
...
This functionality is currently not in use and would be nice to have for mod developers. There have been 'seasonal' quests in the past that had stash rows as a reward but this was never implemented in SPT.
Co-authored-by: acidphantasm <127812106+acidphantasm@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/316
Co-authored-by: acidphantasm <acidphantasm@noreply.dev.sp-tarkov.com>
Co-committed-by: acidphantasm <acidphantasm@noreply.dev.sp-tarkov.com>
2024-05-01 08:22:11 +00:00
Dev
bddf87a4e2
Prevented drawAmmoTpl()
failures from killing loot generation when cartridge data cannot be found inside staticAmmoDist
2024-04-30 23:23:00 +01:00
Dev
06b35ddde8
Improved how Level specific PMC levels are handled, not included min and max - stored in pmc.json
2024-04-30 23:21:52 +01:00
Dev
297e35a1ff
Added system to set min level for PMCs spawned on sandbox_high to 20
2024-04-30 21:52:26 +01:00
Dev
8ff241b7b9
Add new map to Interface
2024-04-30 20:54:48 +01:00
Dev
267efdc7ea
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-29 21:50:12 +01:00
chomp
b6926c1bf9
Improved about 5-10% performance on botgen and fixed bug that would skip containers when generating items that wouldnt fit in pockets ( !314 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/314
2024-04-29 13:27:07 +00:00
Alex
55d913d0f6
Fix give command for multiple profiles and added blacklist filter ( !313 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/313
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-04-29 10:13:10 +00:00
Dev
a1070f941c
Added extra guard against adding cartridges to box sold by fence
...
Skip adding cartridges to ammo box inside `addCartridgesToAmmoBox()` if cartridge already exists
2024-04-28 23:04:37 +01:00
Dev
995d50dba4
made use of function addUpdObjectToItem()
2024-04-28 22:50:39 +01:00
Dev
b9973e609f
Fixed issue with water bottles having no upd
object in rare cases killing client
2024-04-28 22:39:17 +01:00
Alex
65a804dc01
pushing merge conflict resolution to previous commit ( !312 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/312
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-04-28 14:47:55 +00:00
Alex
2172c29640
First iteration of async work on callbacks ( !311 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/311
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-04-28 13:45:36 +00:00
kiobu
44583f40ac
fixes to get in raid (customs only) ( !310 )
...
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/310
Co-authored-by: kiobu <kiobu@sdf.org>
Co-committed-by: kiobu <kiobu@sdf.org>
2024-04-28 08:01:27 +00:00
Dev
9dff3e0790
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-27 22:58:05 +01:00
Alex
a1e48ca245
Added profile and trader commands to commando ( !309 )
...
Added new spt commands for commando to alter profile levels and skill, as well as trader rep and money spent.
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/309
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-04-27 16:56:28 +00:00
Dev
f566ea8620
Fixed barter traders that required multiple of a stack removing the entire stack instead
2024-04-26 15:54:43 +01:00
Dev
dd6d7e192f
Fixed coop exit usage not updating scav profile fence rep value in a similar way to car extracts do
2024-04-26 14:06:18 +01:00
kiobu
001def56a5
feat: add /client/game/mode handling ( !308 )
...
add `/client/game/mode` endpoint handling. gets into main menu
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/308
Co-authored-by: kiobu <kiobu@sdf.org>
Co-committed-by: kiobu <kiobu@sdf.org>
2024-04-26 07:37:42 +00:00
Dev
7f56cee388
29862
2024-04-25 21:37:22 +01:00
DrakiaXYZ
ea38e50cca
If the trader updateTime is missing min/max use defaults ( !307 )
...
This is just another catch for people trying to run outdated trader mods, will use default refresh time instead of returning null for the trader update seconds.
Lets users know in the console right off the bat that there's a problem with the trader
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Co-authored-by: Refringe <refringe@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/307
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-25 17:46:27 +00:00
Dev
f07637cf63
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-24 21:23:14 +01:00
Dev
a3c8faaaaa
Remove core from getAllBotDifficulties()
2024-04-24 13:05:37 +01:00
Dev
fc6d84ad7d
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.1-DEV
2024-04-24 10:09:51 +01:00
Dev
60eb6bfe80
Improve data returned from getAllBotDifficulties()
2024-04-24 10:09:37 +01:00
DrakiaXYZ
316234e9ae
Fix TradersInfo nextResupply if it is null in profile data ( !305 )
...
Add test covering fixNullTraderNextResupply
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/305
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-24 07:13:31 +00:00
Dev
6e262a228f
Add optional param to ignore raid settings chosen by player during getAllBotDifficulties()
2024-04-23 22:41:00 +01:00
Dev
d49bf4a378
Replace single letter variables with better names
2024-04-23 21:07:34 +01:00
nader
96208ed95f
add getters (and additional setter) to FenceService ( !304 )
...
resubmitting PR targeting 3.8.1-DEV
Co-authored-by: Nader <nader@cloudkraken.dev>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/304
Co-authored-by: nader <nader@noreply.dev.sp-tarkov.com>
Co-committed-by: nader <nader@noreply.dev.sp-tarkov.com>
2024-04-23 19:21:21 +00:00
Dev
0ab5ca6dee
Prevent check from failing when upd object is missing
2024-04-23 19:38:45 +01:00
Dev
522306b9b1
Fixed error message inside isModCompatible()
not showing the name of a mod correctly
2024-04-23 17:08:20 +01:00
micyael
1881a0842a
Fixed incorrect handbook price using CustomItemService ( !301 )
...
The handbookPriceRoubles member of base class NewItemDetails was never used to create the new item.
Co-authored-by: Refringe <me@refringe.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/301
Co-authored-by: micyael <micyael@noreply.dev.sp-tarkov.com>
Co-committed-by: micyael <micyael@noreply.dev.sp-tarkov.com>
2024-04-23 10:15:29 +00:00
Dev
57557d6063
Migrate loot generation code to use per-map static data - ONLY WORKS WITH CUSTOMS (other maps to follow later)
2024-04-23 10:27:09 +01:00
Dev
a4bb5a2f60
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
2024-04-23 10:03:48 +01:00
Dev
8366dd355d
Added logging to removeRandomItemFromAssorts()
when no upd object found
2024-04-23 10:01:41 +01:00
Dev
d2cf495426
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.1-DEV
2024-04-23 09:34:58 +01:00
Dev
f82cbc189b
Improved how drawAmmoTpl()
handles bad static ammo distribution data input
2024-04-23 09:34:01 +01:00
Refringe
01d97953fa
Fixes Linting Issues
...
Fixes a number of Biome linting issues:
- Variable implicitly has the any type.
- Use a function type instead of a call signature.
- Reassigning a function parameter is confusing.
- Suppression comment is not being used
2024-04-22 23:43:35 -04:00
Refringe
a572e8e67e
Runs Style Fix
2024-04-22 15:53:07 -04:00
Dev
be841fbe3f
Improved handling of a missing upd
object inside removeRandomItemFromAssorts()
2024-04-22 17:54:32 +01:00
Dev
fe7d09e075
Improved logic inside isModValidForSlot()
to better handle edge cases
2024-04-22 09:39:32 +01:00
Dev
2bfa9ab40c
Revert changes to file
2024-04-21 10:28:53 +01:00
Dev
bba169127c
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/bot.json
# project/assets/configs/core.json
# project/assets/database/bots/types/arenafighterevent.json
# project/assets/database/bots/types/assault.json
# project/assets/database/bots/types/bear.json
# project/assets/database/bots/types/bossboar.json
# project/assets/database/bots/types/bossboarsniper.json
# project/assets/database/bots/types/bossbully.json
# project/assets/database/bots/types/bossgluhar.json
# project/assets/database/bots/types/bosskilla.json
# project/assets/database/bots/types/bossknight.json
# project/assets/database/bots/types/bosskojaniy.json
# project/assets/database/bots/types/bosskolontay.json
# project/assets/database/bots/types/bosssanitar.json
# project/assets/database/bots/types/bosstagilla.json
# project/assets/database/bots/types/bosszryachiy.json
# project/assets/database/bots/types/exusec.json
# project/assets/database/bots/types/followerbigpipe.json
# project/assets/database/bots/types/followerbirdeye.json
# project/assets/database/bots/types/followerboar.json
# project/assets/database/bots/types/followerboarclose1.json
# project/assets/database/bots/types/followerboarclose2.json
# project/assets/database/bots/types/followerbully.json
# project/assets/database/bots/types/followergluharassault.json
# project/assets/database/bots/types/followergluharscout.json
# project/assets/database/bots/types/followergluharsecurity.json
# project/assets/database/bots/types/followerkojaniy.json
# project/assets/database/bots/types/followerkolontayassault.json
# project/assets/database/bots/types/followerkolontaysecurity.json
# project/assets/database/bots/types/followerzryachiy.json
# project/assets/database/bots/types/gifter.json
# project/assets/database/bots/types/marksman.json
# project/assets/database/bots/types/peacefullzryachiyevent.json
# project/assets/database/bots/types/pmcbot.json
# project/assets/database/bots/types/ravangezryachiyevent.json
# project/assets/database/bots/types/sectantpriest.json
# project/assets/database/bots/types/sectantwarrior.json
# project/assets/database/bots/types/shooterbtr.json
# project/assets/database/bots/types/usec.json
# project/assets/database/globals.json
# project/assets/database/locales/global/ch.json
# project/assets/database/locales/global/cz.json
# project/assets/database/locales/global/en.json
# project/assets/database/locales/global/es-mx.json
# project/assets/database/locales/global/es.json
# project/assets/database/locales/global/fr.json
# project/assets/database/locales/global/ge.json
# project/assets/database/locales/global/hu.json
# project/assets/database/locales/global/it.json
# project/assets/database/locales/global/jp.json
# project/assets/database/locales/global/kr.json
# project/assets/database/locales/global/pl.json
# project/assets/database/locales/global/po.json
# project/assets/database/locales/global/ro.json
# project/assets/database/locales/global/ru.json
# project/assets/database/locales/global/sk.json
# project/assets/database/locales/global/tu.json
# project/assets/database/templates/achievements.json
# project/assets/database/templates/handbook.json
# project/src/generators/BotLootGenerator.ts
# project/src/generators/LootGenerator.ts
# project/src/models/eft/common/tables/IBotType.ts
# project/src/models/spt/bots/IBotLootCache.ts
# project/src/servers/HttpServer.ts
# project/src/services/BotLootCacheService.ts
# project/src/services/FenceService.ts
# project/tests/controllers/InsuranceController.test.ts
2024-04-20 23:29:54 +01:00
Dev
00691becd1
Add extra protection against null objects inside itemAllowedInContainer()
2024-04-20 20:33:36 +01:00
Dev
716df08983
Revert "Revert "Inverted check to allow correct server comms""
...
This reverts commit f873edb456
.
2024-04-20 15:24:21 +01:00
Dev
5f9c51f1e3
Revert "Revert "Split out debug heading into 2 headers, one each for request/response""
...
This reverts commit 7fd9dadb13
.
2024-04-20 15:24:07 +01:00
Dev
f63da802b2
Fix addPlayer
not correctly assigning location value
2024-04-20 15:23:24 +01:00
Dev
7fd9dadb13
Revert "Split out debug heading into 2 headers, one each for request/response"
...
This reverts commit e2f3191212
.
2024-04-20 14:19:35 +01:00
Dev
f873edb456
Revert "Inverted check to allow correct server comms"
...
This reverts commit 8bcb47b391
.
2024-04-20 14:19:10 +01:00
Dev
8bcb47b391
Inverted check to allow correct server comms
2024-04-20 13:12:32 +01:00
Dev
ef65074dc3
Resolve server error inside removeRandomItemFromAssorts()
when the item being processed has no upd
object
2024-04-20 13:05:44 +01:00
Dev
b8b72e593d
Added nullguards insode addPlayer()
to prevent server errors when profile not found or inraid
object not found
2024-04-20 10:10:58 +01:00
Dev
e2f3191212
Split out debug heading into 2 headers, one each for request/response
...
0 = no zlib compression
1 = use zlib compression
2024-04-20 09:58:06 +01:00
Brent
df93245e9d
Fix incompatible default mods being used in required slots ( !299 )
...
This prevents weapons from getting the default mods for their base preset when they won't fit other required mods.
This was observed on the AK-74M, where the weapon generator would choose the VDM CS gas tube, which is incompatible with the default AK-74 polymer handguard (6P20 Sb.9).
When this occurs, the generator will bypass the default mod selection and instead choose from the loot pool assigned to the handguard in the bot configs.
https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/596
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/299
Co-authored-by: Brent <wiggyvidyadev@gmail.com>
Co-committed-by: Brent <wiggyvidyadev@gmail.com>
2024-04-18 14:29:16 +00:00
Dev
b305ffdc24
Add currency
to generation configuration for each bot
...
Fix various missing properties in some bot jsons
2024-04-18 11:56:45 +01:00
DrakiaXYZ
0d553e8ea6
Move setting of the generated
bools to inside the cache methods ( !298 )
...
Also make `generateDynamicPrices` public to match the static method, and allow mods to refresh the cache
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/298
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-18 07:55:39 +00:00
DrakiaXYZ
820a5caccb
Bake build data directly into the executable ( !297 )
...
This is primarily to stop confusion when a user overwrites their `aki_data` folder with an old version, the data shown in logs/server console is now based on compile time data instead of runtime data.
- New build.json file added to the `obj/ide/` folder that gets populated with the build data on build
- Moved asset copying prior to packaging, so that `obj/ide/build.json` is available at package time
- Updated all references of core.commit, and core.buildTime to use globalThis
- Updated all references of core.akiVersion to use globalThis with a fallback if not found (When running in VSCode for example)
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/297
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-18 07:54:16 +00:00
Brent
c71aaa7fb3
Use dynamic ragfair pricing for insurance deletion sorting ( !294 )
...
Change sort value for insured attachments to use dynamic ragfair prices.
Small change to method to return directly instead of setting passed-by-value parameter.
https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/618
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/294
Co-authored-by: Brent <wiggyvidyadev@gmail.com>
Co-committed-by: Brent <wiggyvidyadev@gmail.com>
2024-04-17 13:10:43 +00:00
DrakiaXYZ
acb02ed53d
Update client/server/list to use the right backend ip ( !295 )
...
Update missed property to use new IP config value
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/295
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-17 07:39:11 +00:00
Dev
0bc807a6b8
Added ability to send insurance mail after Labs raid via editing of labs `base.json/insurance property
2024-04-16 17:28:00 +01:00
Dev
f50a400cde
Add missing validation checks to ammo cache generation for scav case
2024-04-16 16:05:33 +01:00
Dev
d609d4b41a
Improved local request log handling
2024-04-16 15:53:54 +01:00
Dev
4e936572e5
Update filterInsuredItems()
to log when insurance items are found
2024-04-16 10:57:27 +01:00
Dev
62a0731cd1
Merge branch '3.8.1-DEV' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.1-DEV
2024-04-16 09:57:45 +01:00
Dev
82d568a428
Cleaned up findAndAddRandomPresetToLoot()
...
Added nullcheck for an empty presetPool parameter
Cleaned up comments where possible
Cleaned up variable names where possible
2024-04-16 09:57:19 +01:00
Brent
c2b376e697
Add missing weapons to WeaponType enum, fix assort comments ( !292 )
...
Added RSh-12 and 40mm GLs to WeaponTypes.ts
Fixed incorrect comments on assort functions
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/292
Co-authored-by: Brent <wiggyvidyadev@gmail.com>
Co-committed-by: Brent <wiggyvidyadev@gmail.com>
2024-04-16 07:34:08 +00:00
DrakiaXYZ
521cf51f0e
Fix multiple server instances overwriting profiles with old data ( !291 )
...
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/291
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-04-16 07:15:49 +00:00
Dev
ffbeefba6f
Allow 3.8.0 mods to load into 3.8.1 with warning
2024-04-15 14:12:16 +01:00
Cj
37ec7bc9d1
Type fixes ( !290 )
...
Adds missing weapon and ammo types to enums for generated types.
Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/290
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
2024-04-15 12:47:44 +00:00