Boxes at ReF (BARF) 0.3.1

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

This mod adds lootboxes and other items from EFT:Arena to the new trader Ref.

This mod adds blue lootboxes from EFT:Arena to the new trader Ref.

Newest version also adds other items inaccessible in SPT due to them being tied to Arena progress.


!!!!! IMPORTANT INFO REGARDING THE NEWEST UPDATE (0.3.0) !!!!!

Before updating please delete any previous BARF versions as the file structure has changed!

- added loot pool rewards for Valuables and Supply crate (Weapon and gear boxes are still WIP cause they were causing profile corruptions)

- Added Woods gladiator key that i forgot to add (Ref has a barter for it using Lega medals which are really hard to obtain in SPT)

- Lowered price on Supply lootbox to 10 and increased the price on Valuables lootbox to 50

- Supply box reward pool includes: Items for crafting, Hideout upgrade items, Electronics, Barter items, Batteries, Flammable materials, Household utilities etc

- Valuables box reward pool includes: Bitcoin, figurines, info items like intel folder and rare crafting books

- Supply box gives out 5 rewards

- Valuables Box gives out 3 rewards due to the smaller pool of items to pull from



Thanks to Kiki this mod now includes config files where you can set the amount of rewards per box and what the boxes give out!

Configs can be found in: BARF\src\database

ItemsToAdd.json - controls which items are added to Ref and their price

crateContents.json - Includes the amount of items each box gives out and their loot pools



Melee weapon and secure container can be bought from Ref directly using large amount of GP Coins as they are supposed to be "Hard to get" items.


Future plans: Fix the weapon and gear crates


installation: Like any other server mod.


Huge thanks to Kiki for helping me figure out the code for the mod! Without them this mod would not be possible. <3 <3 <3

  • Version 0.3.1

    Tiny update for 3.9.2


    - Added blue weaponcrate to Ref for 25 GP Coins as it now has lootpools assigned in SPT by default. Thank you Chomp <3



    If you have not updated to 3.9.2 the crate will give out nothing!

  • Version 0.3.0

    !!!!! IMPORTANT INFO REGARDING THE NEWEST UPDATE (0.3.0) !!!!!

    Before updating please delete any previous BARF versions as the file structure has changed!

    - added loot pool rewards for Valuables and Supply crate (Weapon and gear boxes are still WIP cause they were causing profile corruptions)

    - Added Woods gladiator key that i forgot to add (Ref has a barter for it using Lega medals which are really hard to obtain in SPT)

    - Lowered price on Supply lootbox to 10 and increased the price on Valuables lootbox to 50

    - Supply box reward pool includes: Items for crafting, Hideout upgrade items, Electronics, Barter items, Batteries, Flammable materials, Household utilities etc

    - Valuables box reward pool includes: Bitcoin, figurines, info items like intel folder and rare crafting books

    - Supply box gives out 5 rewards

    - Valuables Box gives out 3 rewards due to the smaller pool of items to pull from


    Thanks to Kiki this mod now includes config files where you can set the amount of rewards per box and what the boxes give out!


    Configs can be found in: BARF\src\database

    ItemsToAdd.json - controls which items are added to Ref and their price

    crateContents.json - Includes the amount of items each box gives out and their loot pools


  • Version 0.2.5

    Added in more items that are inaccessible in SPT due to them being obtained in Arena or using currency from Arena.


    Keys - 50gp coins per key

    - Grumpy's hideout key

    - Voron's hideout key

    - Leon's hideout key


    Melee weapon - 500gp coins

    - APOK Tactical Wasteland Gladius


    Secure Container - 1000gp coins

    - Secure container Theta


    I made the Gladious and SC Theta stupid expensive as they are locked behind late game Ref quests which cannot be completed without the use of mods. The gladius also costs currency that is unobtainable in SPT without use of mods.


    Special thanks: Kiki as always

  • Version 0.2.0

    Updated offers for Ref to only include containers that you can actually unlock at the workbench. Edited the price to 40 gp coins per container.

    In my testing sometimes the containers don't give out any reward and throw out an error in the server window. I'll take a look into it later and hopefully come up with some solution.


    Once again, thank you Kiki for putting up with my awful coding and being helpful <3 <3 <3

  • Version 0.1.0

  • Hi guys. I see many of folks here in the comments wanted to switch currencies for items that are usually paid by "Lega" medals. I took liberty of adjusting the code of the mod to make it happen.


    Here's how you can do it:


    I. Edit ./src/mod.ts file


    1) after line 13, (import of itemsToAdd), add another import line. Here's what you should get:

    Code: ./src/mod.ts
    import * as itemsToAdd from "./database/itemsToAdd.json";
    import * as itemsCurrencies from "./database/itemsCurrencies.json";

    2) after line 41 ("<...> push(BoxItem);"), add the code from below. You should receive the following code:

    Code: ./src/mod.ts
    ref.assort.items.push(BoxItem);
    
    let currency = "";
    for (let currencyItem of itemsCurrencies.items) {
        if (currencyItem._id == item._id) {
            currency = currencyItem.currency;
            break;
        }
    }

    3) replace line 55 ("_tpl: "5d235b4d86f7742e017bc88a") with the line below:

    Code: ./src/mod.ts
    "_tpl": currency


    II. Create new file ./src/database/itemsCurrencies.json. Add the following code in a new file, itemsCurrencies.json:

    III. Edit the prices in ./src/database/itemsToAdd.json to your liking. The prices for these trades will be set up according to the freshly added itemsCurrencies.json file.


    That's it. You should now have Lega medal based items sold for Lega medals. Make sure to place reasonable Lega count for Theta container. I don't know which is tbh.


    @SomeoneNamedAdam feel free to add it to your main mod, so it sets Lega medals by default.

    P.S. Must mention that the keys were added separately by the mod author, so such change may cause duplicate key offers in Ref sales.

    • Thanks for the excellent writeup and changes <3 !!!!!

      I will add them for the next release which is probably not going to happen until next SPT patch drops due to time constraints and personal life commitments.

    • Hi.


      It's fine, we all have them cursed time constraints, eheh.


      You can later refactor it to be in one config and not two separate configs, should you wish so. As in, include items array as a data structure within some other data structure. I just did a quick fix, so to speak.


      You're most welcome.

  • cant unpack "unloced valuables case" server console shows:

    [Client Request] /client/game/profile/items/moving

    {"Action":"OpenRandomLootContainer","item":"f82a88230ee1ad2262321288","to":[{"id":"66b7e71f0004e21f1ec6da22"}]}

  • Hi, how i can change GPs id to Lega Coins id in price menu ? I prefer to buy keys for lega medals, not for GPs. Didnt find this in cfg. Found only "price", but can change price id item.

  • I feel like this should be combined with a bunch of other mods to form a "better package".

    Like, this mod adds the keys to Ref, but its for GP coins...

    Ref - SPT Friendly Quests

    This one modifies the quests and gives you lega medals, this way, you can also obtain the theta container and the gladius.
    However, SPT devs also added the ref arena quests to vanilla SPT, so now we have duplicate quests, but with different conditions...

    There's also Bosses Have Lega Medals mod, which would make it possible to obtain even more Legas in-game, but Ref doesn't have the Keys and such in his vanilla SPT inventory.
    Your mod adds the keys, but it's for GP coins :)

    I feel like we are really close but we need some sort of coherent solution to fixing Ref for SPT and making all items available and obtainable, quests and loot.

    Thank you!

    • If having the barters is important to you I rewrote the mod to have them for myself and I can share the files with you.

    • @someonefromcanada38, yes, this will be rly good

    • Sure, it's a step closer to fully adapting Ref for SPT from the live game, so why not, if you have the time, please share.

    • @someonefromcanada38


      Would you still be willing to share the one you rewrote to have the proper barters?

  • How to open the crates?

    • On the workbench(level 2)

      Thumbs Up 1
    • Yeah I looked up a basic tutorial for them. I've never even touched Arenas so I thought they just opened once you got them. Thanks for the reply tho!

      Thumbs Up 1
  • maybe I am messing somthin but is ther a tutorial how to open the big blue crate ?

  • IDK maybe I mess something.

    I buy big blue container (as for misc item) for 10 gp coins, but it just put in my inventory. I can't open it (no context button etc).

    Am I missing something? How to open a container?


    In server console I found this red label:

    SPT 3.9.2, mod version 0.3.1

    Also I use latest version of FIKA if it is important


    UPDATE: Found it as craft on Workbench (I never play new official tarkov and dont know what these boxes open via craft lol)

    Thumbs Up 1
  • hi is there a way i can change to buy items with lega medals like just the keys?

  • Great mod! Do you plan on adding the new clothes from Arena as well?

    • Thanks!


      Didnt know that there are new clothes added. I will take a look and see if i can implement them :)

      Heart 1
    • The new clothes are under Ragman but require Ref standing and the use of GP coins or LEGA medals.

  • Не получается купить ящик с ресурсами (Который не с ценностями), пишет недостаточно места в схроне, а там почти весь схрон пустой. Так же сразу лег сервер. На скриншоте видно что место есть и монет хватает, так же ошибку.




    3LuiS

    • Привет,


      Извините, я не носитель языка, мой русский очень заржавел, поэтому я использую переводчик.

      Какая у вас версия SPT? Какую версию моего мода вы используете? Другие моды используете?

    • Latest version of SPT. Yes I use other mods. Here is the list of my mods:


      bosseshavelegadals

      refsptfriendlyquests

      BARF version 0.2.5

      LootValue

      MoreCheckmarks

      SVM

      LootingBots

      SWAG

      uifixes

      WTT-PackNStrap

      SAIN


      I don’t know how the translator translated it for you, let me try again. When purchasing a case for 10 GP - the error “There is not enough free space in the storage” + what you see in the console.

    • UPD
      and mod:

      AmandsGraphics
      BossNotifier
      BigBrain
      AutoDeposit
      UseItemsFromAnywhere

    • Heya, please download the newest version.


      Old version is no longer supported as the file structure and codebase has changed to be much more flexible. Lemme know if that error still happens.

    • Hello, I downloaded the latest version of the mod. A container with weapons appeared. But when buying, he also writes "there is not enough free space in the cache."

      The console is just as red as in the screenshot above.
      What can be done?

      I can't even buy a weapon for 8 coins. He also writes "there is not enough space in the cache." But the cache is empty...

      I can't buy one duct tape either.

      And I also got 10k GP in airdrop, which was impossible to carry because of the advantage :D I think so much shouldn't fall there

  • When i want to open a "unlocked rare equipment case" than i get this error:


    Unable to add loot to container: 665730fa4de4820934746c48, no rewards found


    i am on 3.9.2 and its happen only with the EQUIPMENT Case.

    • Heya, this is an issue in base SPT because the crate does not have a reward pool assigned. Adding them manually using my mod can corrupt your profile thats why i removed it from Refs list of items while we work on a proper solution to that issue.

      Thumbs Up 1
  • Getting a timeout error when trying to open the blue box.


    I'd post an error log but it seems it won't let me.


    An yes I did a clean install

    • Strange,I cant reproduce this issue on my end. Are you on 3.9.2?

    • Yes

    • what blue box are you trying to open, weapon,supplies or valuables? Are you using the latest version of my mod?

    • Latest version an it's the blue weapon box

  • The trader Ref is locked, im not sure if there is another mod i need to have to allow him to be unlcoked or if im just missing something

    • Ref is quest locked you need to finish easy money part 1 by Skier to unlock him. :)

      Thumbs Up 2 Happy 1
  • I'm guessing this overlaps/conflicts with Ref - SPT Friendly Quests?

    • I'm actually doing a playthrough right now with that mod installed and have seen no conflicts so far :). Some barters will be doubled due to being able to complete those quests but shouldnt be anything gamebreaking.

    • Oh cool, might do the same then