Responsive Fence 2.2.0

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.

Regenerate Fence trade offerings every time you refresh.

Do you long for the days of betas past where you could re-generate Fence's wares every time you hit the refresh button without having to wait for trader cooldowns? Well then this is the mod for you, as it does just that - removes the time limit check from Fence so that his wares will always regenerate.

  • Version 2.2.0

    Updated to SPT-AKI 2.2.0

  • Version 2.1.1

    Tentative fix for "invalid version string" error on startup.

  • Version 2.1.0

    DO NOT DOWNLOAD, YOU WILL GET AN ERROR REGARDING "invalid version string"


    Updated to support SPT-AKI 2.1.0 - added "akiVersion" to package.json


    WARNING! These changes are untested - I've checked and nothing in AKI 2.1.0 should cause any issues with this, however I'm still on AKI 2.0.1 and as such cannot confirm that these changes work.

  • Version 2.0.0

    Updated to be compatible with SPT-AKI 2.0.0

  • Version 1.0.0

  • Returns "ReferenceError: Logger is not defined" on 3.5.8 :(

    Any thoughts on how to fix?

  • Hello !

    Any plans of updating this for 3.0.0 please ? :)

  • 2.3.1?

  • Does this still work with SPT-AKI 2.3.0? Will it be getting an update? Or can we just update the package.json ("akiVersion": "2.2.0",)? Thanks

    • It shouldn't need an update, and should work if you just update akiVersion in package.json to the latest AKI version, but unfortunately I can't confirm that as I'm still running 2.2.1 myself.

  • Is this fixed? Sorry I am lazy.

    • It works as expected up until your Fence trader refresh timer hits 0, then you'll need to restart your server to make it work again, as that's when it starts aggressively refreshing.

  • So I seem to be having a weird issue with this mod, in that it is regenerating fence offers way too rapidly, and without me even doing anything. If I remain on the fence screen, without moving my cursor, it wont do anything, but the second I begin to scroll, or go to examine an item, it instantly refreshes. I barely having any time to buy anything before the stock refreshes.


    If I uninstall this mod, everything is fine again, but then I face issues with having to wait for Fence to refresh as dictated by the assortTime. I thought it might've been a conflict with other mods like AKI Configurator/Andrudis QoL/SVM, but even with this mod's folder, and .js name renamed to be a last loader, it still occurs and I can't for the life of me figure out why. There are no errors within my server log, but the [WARNING] generating fence message every couple of seconds when it regenerates the stock.

    • Hmm yep you're right, that is what's happening - something must've changed with how the traders refresh as you always used to have to manually click the refresh button. For now, there is an option in the config to disable the fence refreshing if you want to use the rest of the mod.

    • Wait, theres a config file? I don't seem to have in my mod folder at all unless I'm being the big dumb and somehow missing it? Even just downloaded a fresh copy of the latest version and still can't seem to find it..


      Unless I'm misunderstanding what you said, and you'll be including one in the next release/update?

    • Sorry, I did a big dumb and thought these comments were on my Bigger Bang mod instead! There is no config for this mod, it only has one feature so that would be kind of pointless haha. I think I have a fix for the issue, as it appears to only happen once Fence's refresh timer has run down to 0 - I just need to test to make sure I have fixed it before releasing an update.

    • I think this might actually be a bug in SPT-AKI, as even with my change that should have fixed the issue, Fence is still constantly refreshing once his timer hits 0.

    • Luckily the quick fix is to restart your game + server whenever this happens, then you have another hour before it crops up again.

  • Thanks for the update!

    Like 1
  • I was on the hunt for a mod like this and here it is! Does Fence refresh after every purchase or when the timer hits 00:00:00?

    • Fence will refresh any time his inventory needs to be "loaded" - so if you buy something from him, or even if you look at his wares then switch to another trader and back again.

    • Ah man that's a shame! Is it even possible to not have Fence update his inventory after buying or selling items but only when the timer hits zero? Also, is there a way to stop Fence having meta gear weapons, armour and very rare items in his inventory? I miss having common loot there and actually searching in game for loot.

  • Hey Thunder, just wanted to tell you to keep up the great work man. After every update and new game, this is my FIRST mod I install. You're awesome dude!

    Thanks 1
  • Hey Thunderbags i just started using this but it seems after you purchase one item it auto refreshes, so you cant make multiple purchases. i'm on version 2.1.2 using 2.1.0 version.

    IF you want ill test whatever changes and report back, thanks!

    • That's the only way I could get Fence to refresh constantly without having some sort of timer involved unfortunately - when you buy an item it causes Fence to refresh as if you'd pressed the refresh button.

    • ah ok i like the mods thanks, just wish the refresh button was the only way to do it, because if i push that it works, as if buying something.

    • Like always was. Old versions SPT forced Fence to do this without mod anyway))) Now it's fixed, but I like this mod. Sometimes, guys at flea not selling, f.e., full Surv12, so I can to abuse it. I have a lot examples like this, believe me. And, I will give you an advice: if you using AkiConfigurator, you can to enable "EnableFenceOffers" option (by default it's disabled), and current generated trader's staff will be appeared at ragfair lists. Bying items through flea NOT refreshing Fence's assort.

  • Mod is great, Fence refreshes, but I've run into a problem with all examined items in the shop being reset to undiscovered after a raid? Running the 2.1.1 version in the proper game, Server said it might've been out of date?

    • I don't think that problem will be related to this mod - if you want to get rid of the version warning, you can open package.json and change the akiVersion to be 2.1.1  :thumbup:

    • Thank you, will try!!

  • When the server starts, it shows

    Mod Backups is missing package.json

    [ERROR] Invalid mod encountered


    how can i fix it?

    • Sounds like you've got a mod folder in your mods directory called "Backups" - nothing to do with this mod.

  • Server says this when I start it up,
    Mod Thunderbags-ResponsiveFence package.json contains an invalid version string

    [ERROR] Invalid mod encountered.

    Anything I can do about it? :)

    • Can you try the latest version I've just uploaded and let me know if you have the same issue please?

      Thanks 1
    • Works like a charm now! Great mod! :D

    • Glad to hear it, thanks for letting me know!

    • Thanks for updating it!

  • @Thunderbags , should we wait for adaptation to a AKI 2.1.0?

    • You can try the latest version I just uploaded - it should work without any issues, however as I'm still on AKI 2.0.1 myself I cannot test to confirm this.

  • @Mambius if you're using AKI Configurator, it will remove meds. Otherwise idk I'm getting meds with AKI Configurator (I just removed the line of code that removed meds.)

    Also wanted to report an interesting bug that happens because of this mod (or maybe because of base AKI. I'm not entirely sure):
    Every time you refresh Fence, the price of things gets cheaper and cheaper. I'm currently looking at a brand new Ghzel going for 58k, where the price started at 110k. Closing fence and reopening doesn't change it. So for anyone wanting to get really cheap equipment and doesn't mind refreshing Fence constantly... there ya go :)

  • it seems (withthe new patch) Fence wont sell medicine anymore.

  • Sorry i know its offtopic since i use bleeding edge version a5 but anyone could explain me what shall be changed in order for this mod to work ?


    TypeError: Cannot read property 'TradersInfo' of undefined

    at Function.getFenceInfo (C:\tarkov\obj\bundle.js:54436:34)

    at Function.generateFenceAssort (C:\tarkov\obj\bundle.js:54293:76)

    at Function.getAssort (C:\tarkov\user\mods\Thunderbags-ResponsiveFence\src\ResponsiveFence.js:16:61)

    at Object.getAssort [as aki] (C:\tarkov\obj\bundle.js:47768:50)

    at Function.getResponse (C:\tarkov\obj\bundle.js:55861:62)

    at Function.sendResponse (C:\tarkov\obj\bundle.js:56090:29)

    at Inflate.cb (C:\tarkov\obj\bundle.js:56125:22)

    at Inflate.zlibBufferOnEnd (zlib.js:153:10)

    at Inflate.emit (events.js:315:20)

    at endReadableNT (internal/streams/readable.js:1327:12)

    • You shouldn't be using mods on bleeding edge without knowing what you're doing, none of my mods have been updated to be compatible with that version, and they won't be until it's stable and ready for modders + the general public to use.

  • Not sure if it's a bug or not, but buying items automatically refreshes Fence's page.

    • That's down to the trader refreshing their stock when you buy something, not sure I am able to make it only refresh when you hit the button unfortunately.

    • Interesting. Thanks for the response.

  • Dunno it's bug or planed, but quest items popup at Fence

  • Thanks :02smug:

  • Thank god, here I was thinking I would never get it figured out. You did everyone a good deed today.

    Like 1
  • The mod is working exactly as intended. It is a great mod. Thanks and Congrats.