
Add Missing Quest Weapon Requirements 1.6.0
Created by GuiltyMan
6.1K Downloads
SPT 3.11.4 Compatible
Dynamically reads and applies overrides to the weapon restrictions of kill/eliminate conditions of quests based on override files. Normally, the conditions' weapons need to be manually updated for every added gun. This mod aims to automate this process.
Make sure this loads after any mod that registers quests; otherwise, they will not be processed. For example Virtual’s Custom Quest Loader
A More Detailed readme can be accessed at the Github repo
The rules/overrides stored in the MissingQuestWeapons folder. The mod checks for every folder inside user/mods directory for MissingQuestWeapons folder.
Other mods can also add their overrides by adding a MissingQuestWeapons folder to their root. (Anyone can also create a new folder in user/mods to add/save their custom overrides instead of adding them to this mod’s. This way, they won’t be overridden when the mod updates.) The mod’s config and overrides have comments that explains them.
Example folder:
- user/mods/<yourfolder>/
- MissingQuestWeapons/
- OverriddenWeapons.jsonc
- QuestOverrides.jsonc
- MissingQuestWeapons/
A weapon can:
- be in more than one category (e.g. MP-133 is in shotgun, pump-shotgun and 12ga)
- have other weapons that can be used whenever original exists (e.g. vanilla M4A1 and M4A1s added by mods)
Upon the game’s database loading, the mod initializes and reads its configuration. It then scans every folder inside the user/mods directory for overrides, processes and combines them (if the same weapon/category exists multiple times), and applies them to the quests. Each weapon condition of a quest is matched with the best-matched weapon type or category, and missing ones are added.
By default, logging is only done to a file inside its directory called “log.log”. You can check this file to see how weapons are categorized and quests are updated. In the config, you can set debug to true to increase the details. If there is a problem with the mod, be sure to send this file.
763 Downloads
- Introduced OverrideBehaviour for better handling of weapon overrides between mods
- Added condition-based handling to the quest overrides
- Added blackListedCalibres, weaponTypes and blackListedWeaponTypes to the custom weapon categories
- Fix error handling in tryReadJson
More information about how to use newly added fields can be found in the repository’s readme.
629 Downloads
Error handling for incorrect overrides
288 Downloads
Better handling of missing weapons
186 Downloads
Updated for SPT 3.11.x
1.0K Downloads
Only updated the sptVersion to ensure compatibility with SPT 3.10. If you are still using 3.9, there is no need to update.
I could not thoroughly test with version 3.10; if any issues arise, please let me know.
666 Downloads
Load the mod after all weapon mods for better compatibility.
What’s Changed:
- Removed references to Pettan weapons since they’re probably not coming back
- Redid Massivesoft IDs and added some missing ones
- Removed carbine type from non-carbines
- Added more WTT weapons
- Added weapons from WTT & Viper.
by Therkelsen
Details
-
GUID
Not Available
-
License
-
Source Code
https://github.com/theGuiltyMan/SPT-Add-Missing-Quest-Weapon-Requirements
-
Latest Version VirusTotal Result
https://www.virustotal.com/gui/file/f954e2dcbc3976fce8c711d047c2912b9074a665fbc5cfc7714ed6bb31275622
This mod is a true game changer for people who can’t stop adding content to their installs, thank you
I already asked this on the Quest Randomizer page but do you think it is at all possible to make these two work together?
The github link to download this is currently coming up with “not found”
also would be awesome if u can add coverage of quest conditions like finding and planting things
for example:
“67967ab15d7bf2bff7ff9cec”: “Stash the 9x39 Guns in the Shower inside of Sanitar’s Office”,
and target is hardcoded in quest conditions, so any modded 9x39 guns are not suitable for
sup once more,
have feature 3 requests:
1) for quest overrides add “condition” filter field, as quests can have few different conditions at once and now u can’t configure them separately, only add into quest all needed categories for whole quest and hope that algo will catch things right (that mostly happens right, but there are still cases when not, especially if there are more than 2 different “kill with xxxx” conditions in quest)
2) for “CustomCategories” object (overrideWeapons.jsonc) please add optional filter by weapon type. Now it’s kinda hard to catch only needed weapon type with filters.
For example: I need to get all 7.62x51 bolt action and marksman rifles, but I can’t do adequate filtering and always do have either extra wrong items or something missing (as mod authors are not always accurate enough to fill everything correctly)
3) additional folder for compat patches files (instead of drippin everything in single “questOverride” file)
Also caliber filter works a bit weird:
“020020F15FF15F0000000000”: “AssaultRifle,AssaultCarbine”, // Expedite Firearms ISO Hemlock 5.56x45 assault rifle “020020F15EF15E0000000000”: “AssaultRifle,AssaultCarbine”, // Expedite Firearms ISO Hemlock .300 Blackout assault rifle “020020F15DF15D0000000000”: “AssaultCarbine,MarksmanRifle”, // Expedite Firearms ISO Hemlock 7.62x51 marksman rifle …. // if any two weapons’ short names are the same or differs only by these words, they will be considered the same “CanBeUsedAsShortNameWhitelist”: [ “.300 Blackout”, “.300”, “FDE”, “OD”, “furry”, “black”, “OD”, “BK”, “GRY”, “.277”, “red”, “gold”, “multi” // “caliber” // “MCX” ], // any weapon with these short names will be skipped from the previous list “CanBeUsedAsShortNameBlacklist” : [ “MCW”, “ISO”, “Hemlock”, “Remington”, “M700”, “SR-25”, “Expedite” ] ……. { “name”: “BA_MR_762x51”, “ids”: [ “020020AA14AA140000000000”, “020020F15DF15D0000000000”, “5f2a9575926fd9352339381f”, “8d59d8b10a4c2e85b871c317”, “664a5b945636ce820472f225 “ ], “whiteListedKeywords”: [ “\\b(bolt|bolt-action|marksman|DMR|m14)\\w*” ], “blackListedKeywords”: [ “\\b(Expedite|5.56x45|blackout|300)\\w*” ], “allowedCalibres”: [ “Caliber762x51” ], “alsoCheckDescription”: true } and as result I get
Quest PMC Training - Marksmanship - Part 5 (66c40852e32a65ddf98e38f8) Potential types: { “MarksmanRifle”: [ “Knight’s Armament Company SR-25 7.62x51 marksman rifle (5df8ce05b11454561e39243b)”, “Remington R11 RSASS 7.62x51 marksman rifle (5a367e5dc4a282000e49738f)”, “Springfield Armory M1A 7.62x51 rifle (5aafa857e5b5b00018480968)”, “HK G28 7.62x51 marksman rifle (6176aca650224f204c1da3fb)” ], “SR-25_like”: [ “Knight’s Armament Company SR-25 7.62x51 marksman rifle (5df8ce05b11454561e39243b)” ], “BA_MR_762x51”: [ “Knight’s Armament Company SR-25 7.62x51 marksman rifle (5df8ce05b11454561e39243b)”, “Remington R11 RSASS 7.62x51 marksman rifle (5a367e5dc4a282000e49738f)”, “Springfield Armory M1A 7.62x51 rifle (5aafa857e5b5b00018480968)”, “HK G28 7.62x51 marksman rifle (6176aca650224f204c1da3fb)”, “ORSIS T-5000M 7.62x51 bolt-action sniper rifle (5df24cf80dee1b22f862e9bc)”, “Remington Model 700 7.62x51 bolt-action sniper rifle (5bfea6e90db834001b7347f3)”, “Lobaev Arms DVL-10 7.62x51 bolt-action sniper rifle (588892092459774ac91d4b11)” ], “HK”: [ “HK G28 7.62x51 marksman rifle (6176aca650224f204c1da3fb)” ], “SniperRifle”: [ “ORSIS T-5000M 7.62x51 bolt-action sniper rifle (5df24cf80dee1b22f862e9bc)”, “Remington Model 700 7.62x51 bolt-action sniper rifle (5bfea6e90db834001b7347f3)”, “Lobaev Arms DVL-10 7.62x51 bolt-action sniper rifle (588892092459774ac91d4b11)” ], “BoltActionSniperRifle”: [ “ORSIS T-5000M 7.62x51 bolt-action sniper rifle (5df24cf80dee1b22f862e9bc)”, “Remington Model 700 7.62x51 bolt-action sniper rifle (5bfea6e90db834001b7347f3)”, “Lobaev Arms DVL-10 7.62x51 bolt-action sniper rifle (588892092459774ac91d4b11)” ], “BoltAction”: [ “ORSIS T-5000M 7.62x51 bolt-action sniper rifle (5df24cf80dee1b22f862e9bc)”, “Remington Model 700 7.62x51 bolt-action sniper rifle (5bfea6e90db834001b7347f3)”, “Lobaev Arms DVL-10 7.62x51 bolt-action sniper rifle (588892092459774ac91d4b11)” ] } Added weapon of type BA_MR_762x51: Kel-Tec RFB 7.62x51 rifle (5f2a9575926fd9352339381f) Added weapon of type BA_MR_762x51: SIG MCX SPEAR 7.62x51 assault rifle (8d59d8b10a4c2e85b871c317) Added weapon of type BA_MR_762x51: Expedite Firearms ISO Hemlock 7.62x51 marksman rifle (020020F15DF15D0000000000) Added weapon of type BA_MR_762x51: Springfield Armory M14 7.62x51 rifle (020020AA14AA140000000000) Added can be used as weapon: Expedite Firearms ISO Hemlock 5.56x45 assault rifle (020020F15FF15F0000000000) Added can be used as weapon: Expedite Firearms ISO Hemlock .300 Blackout assault rifle (020020F15EF15E0000000000) Quest: PMC Training - Marksmanship - Part 5 (66c40852e32a65ddf98e38f8) - Chosen Weapon Type: BA_MR_762x51 Lobaev Arms DVL-10 7.62x51 bolt-action sniper rifle (588892092459774ac91d4b11) Remington R11 RSASS 7.62x51 marksman rifle (5a367e5dc4a282000e49738f) Springfield Armory M1A 7.62x51 rifle (5aafa857e5b5b00018480968) Remington Model 700 7.62x51 bolt-action sniper rifle (5bfea6e90db834001b7347f3) ORSIS T-5000M 7.62x51 bolt-action sniper rifle (5df24cf80dee1b22f862e9bc) Knight’s Armament Company SR-25 7.62x51 marksman rifle (5df8ce05b11454561e39243b) HK G28 7.62x51 marksman rifle (6176aca650224f204c1da3fb) +++ Springfield Armory M14 7.62x51 rifle (020020AA14AA140000000000) +++ Expedite Firearms ISO Hemlock 7.62x51 marksman rifle (020020F15DF15D0000000000) +++ Expedite Firearms ISO Hemlock .300 Blackout assault rifle (020020F15EF15E0000000000) +++ Expedite Firearms ISO Hemlock 5.56x45 assault rifle (020020F15FF15F0000000000) +++ Kel-Tec RFB 7.62x51 rifle (5f2a9575926fd9352339381f) +++ SIG MCX SPEAR 7.62x51 assault rifle (8d59d8b10a4c2e85b871c317) } I can’t get rid of that mf ISO Hemlock in .300 and 556 and that makes me mad
I’ve already checked props of that ISO objects and calibers are right for IDs… Have no idea what happens here. Tried already changing short names for ISO guns (as it was same) though it didn’t help
P.S. preparing fat and rich update for Lotus quests compatibility, but having heavy fight with filters xD
I can pass cleaned and updated overrides json to update in git
Bro, add please crash on invalid config json or at least any RED error message to server log ( or any other message that default fallback config is used), I’ve fkd up 4 hours because of one extra semicolon xD and as I see i’m not alone with that
MP-18 and MTs-255-12 seems to be causing problems.
Despite MTs-255-12 being set as ‘Shotgun,Revolver’, it is not considered ‘Shotgun’ in Prepared weapon types section but only as Revolver, as a result affecting quests containing this weapon, MP-18 has similar problem.
Example:
Patching quest The Tarkov Shooter - Part 1 (5bc4776586f774512d07cf05)
-------------
Checking type SniperRifle
potentialTypes[SniperRifle].length 10 newWeaponCondition.length 11
Checking type BoltActionSniperRifle
potentialTypes[BoltActionSniperRifle].length 10 newWeaponCondition.length 11
Checking type Shotgun
potentialTypes[Shotgun].length 1 newWeaponCondition.length 11
Quest The Tarkov Shooter - Part 1 (5bc4776586f774512d07cf05) best candidate:
Type: BoltActionSniperRifle
Weapons: Accuracy International AXMC .338 LM bolt-action sniper rifle (627e14b21713922ded6f2c15), ORSIS T-5000M 7.62x51 bolt-action sniper rifle (5df24cf80dee1b22f862e9bc), Molot Arms VPO-215 Gornostay .366 TKM bolt-action rifle (5de652c31b7e3716273428be), Remington Model 700 7.62x51 bolt-action sniper rifle (5bfea6e90db834001b7347f3), Remington Model 700 .277 Sig Fury bolt-action sniper rifle (0af5f6a5aa9712e11c733fb9), Remington Model 700 6.5x48 bolt-action sniper rifle (68324e7849e4f772900f58e8), Lobaev Arms DVL-10 7.62x51 bolt-action sniper rifle (588892092459774ac91d4b11), SV-98 7.62x54R bolt-action sniper rifle (55801eed4bdc2d89578b4588), Mosin 7.62x54R bolt-action rifle (Sniper) (5ae08f0a5acfc408fb1398a1), Mosin 7.62x54R bolt-action rifle (Infantry) (5bfd297f0db834001a669119)
Missing: MP-18 7.62x54R single-shot rifle (61f7c9e189e6fb1a5e3ea78d)
Quest: The Tarkov Shooter - Part 1 (5bc4776586f774512d07cf05) - Chosen Weapon Type: null
While in OverriddenWeapons.jsonc MP-18 is set as
“61f7c9e189e6fb1a5e3ea78d”: “BoltActionSniperRifle,SniperRifle,Shotgun,PumpActionShotgun” which does contain BoltActionSniperRifle
I have Just posted a new update that resolves this issue
I will look into it