The Gambler - Trader 0.1.8

Please do not ask when mod authors will update their mods to v3.8.3. Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

The Gambler offers various mystery boxes and sealed containers for PMCs who desire to gamble their way to riches or want a way to randomize player loadouts through Weapon, Armour, etc. mystery boxes.

SPT 3.8.3 ONLY

This Trader is in BETA development, not finished, and can be buggy. Down Below I have listed development details proposed for future updates to this mod. I plan on supporting this mod for the foreseeable future as I find it fun to slowly build this trader from the ground up. This is my first mod for SPT and I'm still learning the ins and outs of the SPT API. Community feedback is very much welcomed and appreciated. If you have an idea for a new mystery container comment the idea below. Thanks!


The Gambler offers a variety of customizable mystery containers to enhance your Tarkov journey. If you are looking to gambler your roubles and items at a chance of striking it rich or looking for a way to randomize your gear for your next raid, this trader is just for you.


Current Available Mystery Boxes:

  • Mystery Wallet
  • Mystery Key
  • Mystery Keycard
  • Mystery 50/50 (50% 5 Million Roubles, 50% Nothing)
  • Mystery Bitcoin 50/50, Mystery GP Coin 50/50
  • Weapon Mystery Box / Premium Weapon Mystery Box
  • Armour Mystery Box / Premium Armour Mystery Box
  • Tactical Rig Mystery Box
  • Helmet Mystery Box
  • Headset Mystery Box
  • Backpack Mystery Box
  • Melee Mystery Box

Current Development Plans:

  • Mystery Medical Container, Food Mystery Container, Loadout Mystery Container, and more...
  • Quest Tree
  • More weapon variety in Weapon Mystery Box
  • More config settings

Future Development Plans

  • Planned Mystery Containers:
    • Mystery Food, Barters For Mystery Loot, and more...
  • Planned Custom Gambler Items:
    • Gambler Casino Chip - Rare Barter item hidden throughout Tarkov that can offered to the Gambler for services and rewards
  • Quests (PlannedTM) - Once I'm satisfied with the state of the Mystery Containers I'll work on a quest tree


Installation:

  1. If you are updating this mod, delete the mod folder "TheGambler" in SPT/user/mods
  2. Download the mod, unzip it and drag and drop into your SPT directory
  3. If u have Raid Overhaul installed, make sure TheGambler loads before Raid Overhaul in the Load Order. Or else error messages will be spammed in the server console, which can be annoying.


Config settings: TheGambler\config\config.jsonc

  • Ability to change mystery container prices, stock, and odds of each outcome (Current Odds are subject to change in updates)

Known Compatibility Issues:

  • Raid Overhaul - Make sure The Gambler loads before Raid Overhaul. The console will spam handbook price issues if not properly loaded before Raid Overhaul

Recommended Mods:

Support:

Suggestions are welcomed! If you find a bug, you can message me Hood on discord or write a comment explaining it here and I'll work on patching it


This mod was inspired by VIKTORIYA and contains a few mystery containers I enjoyed from that mod as I don't think it will ever be updated.


  • Version 0.1.8

    If you are updating this mod be sure to delete the mod folder "TheGambler" in SPT/user/mods, then install the new version


    Update 0.1.8 includes fully automated price balancing of mystery containers and a few new mystery containers in preparation for update 0.2.0, which will include the Loadout Mystery Box. This update addresses most balancing issues for many mystery containers and will make adding new mystery boxes in the future much easier as balancing of all new containers is now fully automated.


    NEW

    • Mystery Tactical Rig
    • Mystery Ammo
      • Mystery Ammo is available for every caliber of ammo available in Tarkov
    • Mystery Bitcoin 50/50
    • Mystery GP Coin 50/50

    BALANCING

    • Added - Mystery Container Automatic Price Balancer
      • All Mystery Containers (excluding Weapon Mystery Box and Helmet Mystery Box for now...) will now automatically price balance itself upon server startup and the generated prices depend on three factors:
        1. Flea market price of all rewards available from the Mystery Container
        2. Mystery container odds (configurable)
        3. Expected profit percentage of the mystery container (configurable)
      • Now no matter if you are using another mod that manipulates flea market prices like the Live Flea Prices mod, or have manually configured prices of items yourself, all Mystery Containers prices will compensate for such changes. The goal is to have all containers as precisely price balanced as possible and this is the first step I have taken to accomplish this.
      • This addition is NOT perfect and relies on a NEW 'Override' feature I have created in the config file that updates the prices of many blacklisted ammos and armors that should be much more expensive than they really are. This helps mystery containers generate much more realistic prices.
    • Rebalanced - Mystery Wallet odds and rewards
    • Rebalanced - Mystery Headset

    CONFIG

    • Added price multiplier to easily alter the price of all Gambler mystery containers at once
    • Added expected profit for each Mystery Container which will influence its price with the new automatic price balancer.
    • Added range of minimum to maximum rounds that are generated when unboxing a Mystery Ammo Container per ammo caliber
    • Added Odds and stock of each new Mystery Ammo Container
    • Added "Override" prices for blacklisted ammo/armor that I though were too cheap. This helps the automated price balancer generate more realistic prices as I believe some blacklisted ammos/armors should be much more expensive than its handbook price. This is of course configurable and you can turn this override off if you have a mod that alters blacklisted ammo/armor prices and you are satisfied with those prices

    FIXES

    • Fixed error when inventory cannot locate opened mystery container
    • Fixed Backpack Mystery Container not rewarding extremely rare backpacks
    • Fixed a few missing high-end armors from the Mystery Armor Box
  • Version 0.1.7

    Added

    • Headset Mystery Box
    • Backpack Mystery Box
    • Added 66 new weapons to the Weapon Mystery Box including a new weapon category "Scav Weapons"
    • Added 45 new keys to the Mystery Key
    • Ability to change trader inventory refresh time in the config

    Balancing

    • Altered odds and prices of multiple mystery containers
  • Version 0.1.6

    Fixes

       - Fixed invalid Armor from Armor Mystery Box that caused game crashes. (Thanks Käs)

  • Version 0.1.5

    Major Bug Patch


    Fixes

    - Fixed missing weapon stocks unboxed from the Weapon Mystery Box that caused game crashes


    Balancing

    - Balanced more odds and prices of a few mystery boxes. Some mystery boxes were cash cows and I have increased prices accordingly.

    - Reduced how much stock the trader has.

  • Version 0.1.4

    If you are updating this mod be sure to delete the mod folder "TheGambler" in SPT/user/mods then install the new version

    Fixed:

    - Sealed Weapon Case unbox error

  • Version 0.1.3

    If you are updating this mod be sure to delete the mod folder "TheGambler" in SPT/user/mods then install the new version


    Added

    Helmet Mystery Box

    - Contains Over 77 different helmet possibilities

    - Helmet tiers are divided into common, uncommon, rare, and extremely rare T-7 thermal helmets


    Balancing

    Stimulant Mystery Box

    - Increased price and rebalanced odds


    Fixed

    - Refactored gambling code

    - Removed a certain weapon stock from the Mystery Weapon Container that crashes the game

    - Mystery Containers will now not open if player inventory is full. Console will receive error code for now. Currently Working on a way to message the player that their inventory is full.

    - Fixed Item Attachments from not being toggled by default

    - Added debug logging for every Mystery Box. If your game is crashing when opening a mystery box follow the instructions included at the top of the config.jsonc


    Known Issues (solved)

    - Weapon Mystery Box causes game to die if generated weapon fails to attach weapon stock. If this happens to you please post a screenshot of the broken weapon in the mod page comments and the console error code and item information This will help me a ton thank you! :)

  • Version 0.1.2

    If you are updating this mod be sure to delete the mod folder "TheGambler" in SPT/user/mods then install the new version


    CHANGES:


    Weapon Mystery Box:

    - Added 76 New Guns

    - Added New Weapon Category Meme Weapons (16 Meme guns so far)

    - Adjusted Price And Odds


    Mystery Wallet:

    - Added 1 Million Rouble Chance

    - Adjusted Price and Odds


    - Adjusted Prices And Odds Of Several Mystery Containers

  • Version 0.1.1

    If you are updating this mod be sure to delete the mod folder "TheGambler" in SPT/user/mods then install the new version


    Added:

    - New Stimulant Mystery Box (includes every stim in 3.8.3 SPT)

    - Added 45 new keys to the Key Mystery Box


    Balancing:


    Keycard Mystery Box

    - Adjusted all rarities

    - Lowered price drastically


    Key Mystery Box

    - Adjusted rare and extremely rare keys chances to be lower.

    - Lowered price drastically.


    Melee Mystery Box

    - Adjusted rare and extremely rare keys chances to be lower.

    - Lowered price drastically.


    Fixes:

    - Trader profile image location fixed to prevent other modded traders from sharing the same image.

    - Attempt to fix virus detectors from flagging The Gambler as a virus by removing unnecessary files



    These changes are meant to make mystery boxes more obtainable and hopefully more fun to open

  • Version 0.1.0

    BETA VERSION 0.1.0

  • Have a suggestion for this mod or want to share an idea for a new mystery box? Please comment your feedback. This is my first mod and I appreciate all community feedback as I want to make this mod more enjoyable for all.

  • Ammo that you get from gambling and is getting sold in Flea Market will eventually return as -1 item from Ragman. Happened to me twice already, the ammo was 23x75 (KS-23 ammo).


    Author, plz fix, it maybe not only the gambling 23x75 ammo, it could be ALL the ammo that you added as gambling stuff.


    If anyone gets the same -1 ammo, DO NOT sell it, you don't want to risk with that or even sell that in a Flea. Just DESTROY the item, and nothing bad will happen.

    • For now I'll just have the ammo generate as not found in raid till I can find out why this happens.

      Thumbs Up 1
    • Thx!

  • is it normal for all the boxes to appear on flea for really cheap

    • Ahh I see what you mean, that is my fault I never tested that. I'll fix that in the next update.

  • love the mod would just have a simple option to turn on / turn off categories.

    dont like to have the ammo f.e.

    • This is one of the features I forgot to include in the recent update. Sorry, this will be available in 0.1.9

    • nice tyvm!

  • Hi there my bro is trying to open a case (SH Loot) but he gets this error
    https://i.imgur.com/39QU0GT.png
    this is showing on my server I run.
    he said he purchased the case from a seller called Sasha (different mod).

    thank you in advance

    • I'd like to add compatibility in the future for mods that add custom mystery boxes, but that loot box you listed doesn't even work in the first place with just using that base mod.

    • Oh dman does it not.
      I did post in the Sasha mod page and was told it needed fixing your end.
      I shall pop back over to them and mention it.

      Thanks for looking into this though

    • Try removing my mod and opening that loot box cause on my end it doesn't work at all even with only just that mod installed

    • I will see if I can I know removing mods might mess up stuff to and we are deep into this current playthrough.
      I shall see if i can create a new instance with just that mod plus prerequisites to run Sasha.

      thanks

    • Reporting the same issue

  • Made myself a custom icon for Gambler, thought I'd share here :)

    A7NdtdP.jpeg


    some others here

    https://imgur.com/a/EokeSBE

  • Another mystery box idea that could be really fun but might take a bit to setup. Full Mystery Kit, gives you a random set of:

    • Weapon with compatible ammo type and 1-X mags (unless no mags needed).
    • Rig and Armor, or if it rolls an armored rig no armor.
    • Helmet and ear pro, can roll nothing
    • Backpack
    • Meds and Food, could probably randomize usages too.

    If its a pain to do all the rolls in one Kit box, can always make it unpack into the mystery boxes you already have.

    • 1 x% Armor Mystery Box or x% Premium
    • 1 x% Weapon Mystery Box or x% Premium
    • 1 Backpack Mystery Box
    • 1 x% Nothing x% Helmet Mystery Box?
    • 1 x% Nothing x% Headset Mystery Box?
    • x Water and MRE. Or maybe a new Provisions Mystery Box? Gives random set of meds and food
    Thumbs Up 1
  • Is it possible to make containers with a limit of 1 purchase per day? Curious cause i wanted to try a kind of zero to hero account with the caveat that the only gear you can "buy" is the containers and whatever you get is what you get unless you pull it out from a scav/pmc run

    • That's a good idea. I'll try adding something like this in a future update. In the meantime, update (0.1.7) will add the ability to change the trader inventory refresh timer in the config file.

  • Either adding the mystery boxes themselves or a barter item to trade for these boxes (Poker chip maybe?) in the loot tables could be a fun.

    • I do want to add barters for containers at some point. Once I learn how to add custom items items to the loot pool I'll add rare containers for an exchange of some form of chip or custom currency

    • Take a look at other mods like Collectables, see how they add custom items to the loot pool :) Good luck!

  • I am playing a famine / hardcore playthrough and in future versions could find it useful early game if there was an additional low tier of the loot containers or even containers that gave used / damaged equipment


    Not sure if other hardcore players would agree but here is what I mean:


    At the beginning of the zero to hero / hardcore ( I have other trader inventories heavily modified and no flea) - I could only buy a med crate for 50k and it might have a chance of several AI2s, a bandage or 2 and a tourniquet - but no guarantee of any specific item so it could end up being a case of 8 bandages or if using fence's logic- even used AI2s that have like 30/100 on them


    Same concept with food, and soviet era "ammo crates" that just give you whatever would've been stored in a soviet era bunker


    maybe 80 rounds of 545 fmJ and a few paper packs of 9x18 ammo


    Cold maybe even do gear this way


    Imagine pulling a gasmask, 6B5 and a PP helmet out of a crate all at 75% durability and paying 75000 for it


    Or getting 4 PP helmets and no rig


    Anyway


    I am not sure if you are interested in adding these "scav" level loot tables but no worries if not


    It is niche at best- but hey that why we're here lol


    Not a demand or even a request... just an idea to make this interface well with hardcore, if you feel like it would be a good addition!


    Great mod :D

    Thumbs Up 1
    • Yeah this should be totally possible in the future. My goal at the moment is to add many more weapons to the weapon box to have maximum randomness Currently the case has like 170 weapons and I want to get this number to at least 500. I have been wanting to add a weapon category that includes low tier damaged early wipe weapons. When I get the weapon variety just right and create the mystery boxes I plan on adding, I wouldn't mind creating a config option for hardcore playthroughs.

    • With the newest version can we config the odds of each category in each box or edit the assort to limit the boxes ourselves? :)

  • Think the new update broke something as I can't even open crates from airdrops now

    • Oh damn you are right. I uploaded a hotfix

  • Such a good mod but i fell like the injectors case is a money glitch xDD


    and what does the Sealed Weapon case give u exactly it doesnt have a discription.

    • Yeah the random injector isn't exactly balanced in the latest version. Each new update I try to adjust unbalanced mystery boxes. The sealed weapon case is the same sealed case you would get from an airdrop, I need to add a description for it.

    • There is a bug i opened the case and hadn't enough space and the just disappeared.

    • This has been fixed and will be patched in update 0.1.3

  • When opening a weapon crate, if the weapon fails to pull a stock on the weapon it causes the game to hang

    • What do you mean by "weapon crate"?

    • the premium weapon case

    • I'm having the same problem

    • Is this happening every time you open the premium weapon case or only for a certain weapon in the case? What weapon is this happening with if you can remember. I can't seem to reproduce this bug as every possible gun in the premium weapon case works fine on my client. Also are you on SPT version 3.8.3 and the latest version of TheGambler 0.1.2?

    • I think its only certain weapon in the case fails to pull the stock

  • Would love to have a helmet/faceware box too!

    • I plan on adding this in the future.

  • is there a list of new guns added? Or is it all left to chance

    • It's all left to chance ig, just let yourself be surprised ;)

  • Windows Says Virus detected

    Trojan:Script/Wacatac.H!ml

    • I noticed others have been having this issue in the SPT discord. I'm looking into it, but in the mean time there is a VirusTotal link in the file details or Here that scans my mod file and says it is clean.

    • Dont know if this will help but for me i says the affected file is "TheGambler.zip->user/mods/TheGambler/src/Armors.js"

    • I removed all the .js and .map files in the new version I just released so hopefully this fixes this.

    • Now the launcher gives me this error

      The application had a critical error and failed to run

      Exception produced: Error


      Stacktrace:

      Error: UNKNOWN: unknown error, open 'D:\SPT 2\user\mods\TheGambler\src\Armors.js'

      at Object.readFileSync (node:fs:453:20)

      at Object.readFileSync (pkg/prelude/bootstrap.js:1079:36)

      at Object.Module._extensions..js (node:internal/modules/cjs/loader:1397:18)

      at Module.load (node:internal/modules/cjs/loader:1207:32)

      at Function.Module._load (node:internal/modules/cjs/loader:1023:12)

      at Module.require (node:internal/modules/cjs/loader:1235:19)

      at Module.require (pkg/prelude/bootstrap.js:1851:31)

      at require (node:internal/modules/helpers:176:18)

      at Object.<anonymous> (D:\SPT 2\user\mods\TheGambler\src\itemCreator.ts:6:1)

      at Module._compile (node:internal/modules/cjs/loader:1376:14)

    • Delete the mod folder "TheGambler" in /user/mods then reinstall

  • On version 3.8.0 the trader is not displayed although the mod is loaded

    • sorry this mod is not supported for 3.8.0

  • anyone else having issues with the trader image? I have the Hephaestus mod and this will duplicate the picture so they both have the same trader picture. I tried renaming the image and updating the name in the json file, but that just makes it a white box.

    • Thanks for sharing this issue. This issue has been fixed and will be patched in the next update to this mod

  • Thank youuu <3

    Yeah i gave up on updating it since i am in college and i dont have much free time or energy anymore. Makes me really happy to see people did enjoy it and that Viktoriya evolved further :D

    • Lol I didn't realize you actually made mods, saw your name on a PMC I killed the other day and figured SPT devs were making fun of Nikita

  • YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS. I need gambling in this game XD

  • GAMBING ADDICTION SHALL CONTINUE

  • Cool! I was thinking I'd like try VIKTORIYA but it was outdated, will give this a go.


    Any plans for customs assets for the mystery containers?


    Also does this include custom modded items in the loot pools automatically or would that require a patch?


    Thanks.

    Thumbs Up 1 Heart 1
    • Customs assets will be something ill look into adding in the future. For each mystery box I use a pregenerated loot pool that currently doesn't take into account any other custom items added by other mods. I'll try to add a way to add custom items in the future.

    • Ok nice, thanks for the reply, look forward to future updates!