Lua's The Gacha Box Trader 1.0.0

Are you addict to Gacha? Here, You can gacha in the SPT!






The Gacha Box

Check the comments section for sharing gacha config files

  • The new trader for the gacha box!
    • little bit of example gacha included! (Thanks to Choccy and kiki)
  • You can make your own gacha box with high customizaiton config
  • There are two type of config
    • config/config.json for global setting
    • config/gacha/*.json for each gacha config
  • Create JSON file in config/gacha folder and automatically loaded as gacha
    • Check the Gacha Config Infos.txt file for some infos to use on gacha config
  • Version 1.0.0

    • Updated trader functions for AKI 2.3.1 and 2.3.0
      • Only tested on 2.3.1, If you have any issues with 2.3.0, please update the game.
    • Fixed restock doesn't update properly
    • Added "Restock Time" on each Gacha's description
    • Supported "akiVersion": 2.3.x
  • Version 0.9.4-rev

    • Supported "akiVersion": 2.2.x
  • Version 0.9.4

    • Supported "akiVersion": 2.2.0
  • Version 0.9.3

    • Fixed bug for new profile
    • Supported "akiVersion": 2.1.1 ~ 2.1.2
  • Version 0.9.2

    • Fixed typo >:(
      • Thanks to Theta!
    • Supported "akiVersion": 2.1.1 ~ 2.1.2
  • Version 0.9.1

    • Changed amount of failed prize, it only select one from failed prize list instead of giving all items.
      • You can use item preset to set prize for multiple items.
    • Supported "akiVersion": 2.1.1 ~ 2.1.2


    All previous version download links are disabled.

  • Version 0.9.0

    • Added server connect dialouge message upon game start or server restart while eft client is running
    • Added BaseDummyItem to support Weapon Presets
      • Lua Weapon Preset Example.json updated for it
    • Added more detailed error logs for Item/preset check
    • Updated some of locales
    • Updated Gacha Config Infos.txt
    • Updated Lua Weapon Preset Example with more weapon presets
      • It's now 32 Weapon Presets!
      • Thanks to Sarix and CWX
    • Updated Choccy Milk and kiki Daily Fish to have correct restock time
    • Fixed some of prebuilt weapons having incorrect item sizes
    • Supported "akiVersion": 2.1.1 ~ 2.1.2
  • Version 0.8.1

    • Fixed bug for AIO mod
    • Supported "akiVersion": 2.1.1 ~ 2.1.2
  • Version 0.8.0

    • Item and Weapon Presets are now supported
      • Example gacha also included
      • (Thanks to Sarix, CWX, Fin, Choccy, Katto, RED_DESIGN for the Weapon Presets!)
    • Restock resupply time is now on each gach config instead of Trader's nextResupply time
    • "Success" log message added in the server and global config
    • Mod load method changed, Now Aki server's websocket connection will be checked upon server start
      • restart the server while eft is running, something will shows up in the barter list until connection is recovered
    • Some of codes refactored
    • Some of bugs get killed
    • Supported "akiVersion": 2.1.1 ~ 2.1.2


    Old version download links are all removed by config changes

  • Version 0.7.3

    • Fixed 1 Ruble item prices from gachas to other traders
    • Loop tries increased to 1000
    • Now weapon mods are also checked by blacklist/excluded items and ruled out from prebuilt
    • Supported "akiVersion": 2.1.1 ~ 2.1.2
      • Thanks for the help Czepig, Fin!
  • Shared Gacha Config Files List


    You can reply on this comment for sharing gacha config files.



    • :)

    • Collection of various Gacha configs:
      Ultimate AK Gacha (randomly built AK family rifle)
      Ultimate AR Gacha (randomly built AR family rifle)
      Optik Box

      KGB Secret Case (updated with presets)


      Google drive link

      Thanks 1 Like 2
    • To Be Rich...

      Scratch Offs
      The Lottery
      Big Lottery

      To Be Healty...

      Check Up

      To Be Strong...

      Fenah's Ammo Shop
      Weapon Lottery
      I am Rambo

      And To Be Happy

      The Hangover
      Hideout Maker


      Google Drive Link

      Thanks 1
    • https://www.dropbox.com/s/9nfr…in%27s%20Gachas.json?dl=0


      Have a couple more, on me. (Updated with 44 new weapons since the last time, about 84 weapons total)

      Thanks 1
    • Are you tired of living a lame PMC life, and wish you were more in-tune with the local Scavs? Look no further, as Prapor's Scav Kit, Prapor's Premium Scav Kit, and Prapor's Scav Guns will bring you back to your roots as a true rat! Also included is Fence's Kappa Kit, and a Cash Dev Kit.

      - - - - -

      DL: https://www.dropbox.com/sh/vxc…WZIz2HEn2Op4MaXe-nia?dl=0

      - - - - -

      Please let me know how the deals feel, worked probably way too hard on all of these. I'm also sure there's an easier way to do what I did. But it works pretty well at least :) Thanks Lua for the awesome mod, changed how I play the game, and will continue to.

      Thanks 1
  • is this mod going to be updated and if not are there any mods similar to this ... and if not is there a way to update this myself and run as a personal trader for sp tarkov? I just want to open loot boxes and run random loadouts in factory with boosted ai spawnrates lol

    • It's been two years so I would be surprised unless someone else did.

  • Would there be a possibility that someone could remaster this for the most updated version of SPT?!? Asking for a friend ;)

  • Please update this mod

  • Would love to see this be updated for current versions of SP-Tarkov. I loved this back in the day.

    Thumbs Up 1
  • my favorite mod, didn't work on 3.1.1 ;(

  • :)

  • 6

  • so nice

  • how do we add other gacha config files? Do we just put them in the config folder?

    • I just put the config files into the config folder

    • I'll try it thank you

  • Hi Lua , I can reshare your module in oddba?


    Thx!

    • with Credits, Sure and adds a link to here please :)

    • Hi good morning ,Do you mean I need to set up points redemption after sharing this mod?

    • For updates and sharing users gacha list, yes, I would like to have a URL in the post to visit here.

      I don't mind upload and share mod file directly in Oddba but would be nice people visits this comment to get and share more gacha presets

      Like 1
    • Of course will put the URL on the post, for more people to discover the fun gacha here. :)

      Like 1
  • suggestions:


    unlimited quest for free Gacha box (kill boss, raiders, rogues / FIR rare loot)

    • I thought it about it but I'm not gonna maintain more stuff than Trader, quest is easily broken each update also trader too, don't want to double the job.

  • If anyone would want Gacha I made for SPO feel free to use ;)
    https://drive.google.com/file/…mfQhnHPd/view?usp=sharing

  • Soo... Im know it's not game breaking but is there any ETA on updating Gacha locking restocks in trader restocks in 2.3.1? 😅

    Would be great not having to restart server each time...

    • Probably a day or two, been too lazy to update mods :/

  • If you get nextResupply profile error in SPT AKI 2.3.1,


    go to Lua-TheGachaBox\src\thegachabox.js


    change value

    line 549, 558, 562, 1202, 1222


    TraderConfig.updateTime -> TraderConfig.updateTimeDefault


    I share it for those who can't use it due to an error.

    :)

    • Thanks, I'm aware of that but too lazy to push the update right now.

    • Tried this and it shows

      "Path "[8].nextResupply', line 1, position 17318"

      welp :notlikethis:

    • Backup your profile and Delete the value of 'GachaBox' from your profile and retry.

    • So delete the mod folder?

    • go to {SPTarkov Folder}\user\profiles


      Edit {userid}.json file :)

  • Hi,


    nice mod, but for some reason I'm receiving tons of weapon configurations issues inraid and bots are missing parts sometimes..

    I'm using personal customized bot loadouts.

    Without the mod I'm good.

    Any idea what could cause this?

    • you can ignore the error/warning, there is no solution atm

    • Especially with All In Weapon mod 90% of the bots are using cursed un-fireable weapons and ammo mismatch notification of any unlucky PMC on the map will show up on the player's end. Interesting.

  • I just wanted to let Fin know that I keep getting an Error from his Gacha file. https://gyazo.com/5ce64c095f71ba33b0531fd0bd75cea1


    I'm not sure if its because of this Error my game keeps crashing on Lighthouse or not but i will be deleting it to see if it stops me from crashing.

    • I get the same error. Any fix yet?

    • that's one of removed items (Balaclava_dev), you can ignore the message or remove item from config

  • Wondering if you can help with something. I keep getting rewards of millions of roubles euro and dollars from the 300,000 rouble item preset box. I've checked through the configs and searched for the item string for the different currencies but haven't found a way to fix this issue.

    • remove "Lua Item Preset Example.json" or edit "Money Bundles" preset and read the "Gacha Config Infos.txt" for more infos.

    • Thanks!

  • Hey again! Quick question; Is there any way to make it so that multiple PrizeList items are won at the same time? It seems you cannot win multiple separate items in the PrizeList at once.. so I figured I'd throw everything to the FailedPrizeList, with a 1% chance to win on PrizeList. This has worked, but is there any weight to the "Chance": value of a FailedPrizeList item? It doesn't seem to have any difference. Or am I crazy? I want to limit the chance of things like meds, food, face covers, etc. inside a certain gacha box, but I don't want to only have one item per box. Hope that makes sense, maybe there is a smarter way to what I am doing! :)

    • You can use ItemPresets, check the item preset example.

      also you can put preset in Item Preset too like

      Thanks 1
    • Thanks for the help with presets, I have somewhat adapted them to work for my Gacha. I'll hopefully release a Scav Kit and others soon.


      I think version 0.9.1 has a typo in thegachabox.js. Console was spitting out errors about line 476, I changed "failedPrize" to "failPrize" and it works again. Just me? Thanks!

      Thanks 1
    • woops, that's typo, here we go 0.9.2, thanks!

    • There is something wrong about mod "WeaponPrebuiltModsChance", I'm currently busy with other thing so, it could take some times to be fixed

      Like 1
  • Hi, I have an error occuring, was wondering if you could help, or if it could help for bug fixing!


    Version 2.1.0 AKI using 0.9.0 GachaBox mod, error is:

    I load the server fully, then the client, then am presented this:

    [SUCCESS] Lua-TheGachaBox @ Total 8 Gacha boxes loaded!


    Next, I try to use any GachaBox and am presented with this:

    [ERROR] Lua-TheGachaBox - Aki server is not yet connected with the eft client, try again in a minute...


    Any ideas? Thanks!

    • have you restart the server while game is running? Server will be reconnected in a minute, wait for the server connected log from the server like [INFO] [WS] Player: c2fa95e8e9b2376434f0a45c has connected


      Nevermind, SPT 2.1.0 has notification issue, update to 2.1.1 or 2.1.2

  • Awesome mod, thank you very much :)<3 A couple notes, nothing of real importance.


    I was making custom prebuilt weapon boxes, and attempted to make a BaseDummyItem "5bf3e0490db83400196199af" (AKS-74 5.45x39), with BaseDummyItemPrebuilt as true. However, the resulting prebuilt weapon image in the Gacha store will range in cell-size wildly. After more snooping, it seems it is caused by the chosen BaseDummyItem not having the "regular" parts of the other guns, like a +1 left barrel or a 1x1 receiver. Changing the width and height of the BaseDummyItem does not affect the size of the overall gun, as only the mods given to the gun will dictate the size of the listing in the store (plus 1x1). Buying the gun does not cause problems, and the bought gun is correct in all ways.



    Also, this is not your problem, but adding this in with Fin's AI will cause console spam about errors in the bot's primary weapon loadouts. Adding `Lua-TheGachaBox` under var problemMods in Fin's AI' mod.js fixed the issue.


    TL;DR: Any prebuilt weapon that doesn't have a 1x1 base item size will show the wrong cell-size in the Gacha store. I.E. Any AK, pistols, SMG's, etc.. The M4 & others are fine because the receiver is 1x1. Much love, thank you!

    Thanks 1
    • That's correct and I forget about that I temporary set it to 1x1 size for dummy weapons which is works fine on M4A1 but other weapons like AKS-74 have 4x1 causing problem like that, will do fix on next update when I releases the new weapon library mod, Thanks!


      PS. FAIT - problemMods isn't used at all, it may one time or random problem

    • If you'd like, you can post your FAIT config here in a spoiler tag, and I can try to replicate the issue. Using the default config and default Gachabox, I haven't been able to find any errors on my end x.x

      Haha 1
    • Thanks for the quick assistance, both of you! :)

      And Lua, you right, it doesn't seem to do anything. Correlation is not causation, I must have changed something else. lol.


      Fin- Don't even worry, it doesn't seem to cause any crashes or serious bugs. It LOOKS like the custom boxes are being added to the bot's primary weapon pool? Every single 'class' has an ERROR followed by a listing of all the bot's possible primary weapons.... I think. Note the two Gacha box prebuilt weapons.


      I have no confirmation that this has any effect in-game, but I would assume that it means the specified class can acquire a randomly generated Gacha gun? I do have "Allow bots to use weapons from other mods" enabled for PMC. See spoiler if you wanted to look into it, but I ain't fussed about it. Please tell me if I am stupid or wrong! Have a great day.


    • Size problem is fixed on v0.9.0 and It doesn't make any new weapons into database by gacha so, that won't be the problem.

      Thanks 1
  • How does this mod work exactly?


    So I buy a box from this trader and get a random set of loot, like a loot box in other games?


    Also does it come with a preset box on installation or do I have to make my own box straight away?

    • yes and it does have example gacha boxes, you can easily make your own gacha or use others gacha configs

  • For 0.8.0


    TypeError: (base._props.Weight + ((config.items.WeightChanger / 100) * base._props.Weight)).toFixed is not a function

    at Object.ApplyItemsModifications [as AioMod-items] (G:\EFT 15680\user\mods\ZEreshkigal-AllinOneMod\src\items.js:41:155)

    at Function.executeMods (G:\EFT 15680\obj\bundle.js:26082:28)

    at Function.load (G:\EFT 15680\obj\bundle.js:25971:15)

    at Object.load [as aki-mods] (G:\EFT 15680\obj\bundle.js:16417:15)

    at Function.load (G:\EFT 15680\obj\bundle.js:27461:27)

    at Function.main (G:\EFT 15680\obj\bundle.js:15143:9)

    at Object.103../Lib.js (G:\EFT 15680\obj\bundle.js:15148:9)

    at o (G:\EFT 15680\obj\bundle.js:1:265)

    at G:\EFT 15680\obj\bundle.js:1:316

    at Object.191.../Program.js (G:\EFT 15680\obj\bundle.js:25908:1)

    I didn't change anything in AIO mode. There is no problem with 0.7.3. I just tried it with the Gacha Configs included when I downloaded it. I did not throw any config from the pinned message.

  • Hello, very good Mod. The only thing is that the seller's image is endlessly spinning and never loads. Otherwise all good!

    • that's a game problem, give it a time will fix it

  • Hey Lua! Love the idea, sadly I'm getting a trace error from the Example Key Gacha on SPT-AKI 2.1.2 with minimal mods; here's the readout if you're curious :)nXYT4W5.png
    edit: This also occurs with Milk's Gacha Config, and Example Anything Gacha

    • Thanks, It should be fixed on 0.7.2

      Thanks 1
  • for some reason it wont let me buy a box it just keeps loading and nothing happens

    • there is only one possible to be infinite loop but it only happens when you don't have enough weapon mods to build

    • I also encountered this problem

    • it happens when i get the example anything gacha box and milk red keycard.

    • you may bought too many gacha at once, random item could take some times

  • Could the weapon presets technically be "randomly" generated? That way modded attachments or weapons could appear in the weapon boxes, for example.

    • sure It's possible

  • I stuck on infinate load after purchased weapon gacha box

    • thats happening to me too

  • Maybe I am doing something wrong but could you give a hand it says invalid mod (modname) is missing package.json

  • wow gambling addiction: the mod.

    • honestly this could be be used as a loadout lottery if done right.