Dynamic pricing work correctly?

Hello, are you sure that dynamic prices work correctly when the plugin is running? I can’t point to something exactly or show any evidence, but in Bandit Camp there are a lot of products on which there is always a markup (when buying) and a reduction in price (when selling), even on unpopular products, I have a small online presence, but people anyway they started asking about it more and more often, I tried to test the parameters of dynamic prices, but I notice no changes, maybe a restart is required, maybe something else, I'm completely confused..

If you could double-check this point or test it yourself, that would be great.. thanks :(

I have in all vending's notes "Bypass Dynamic Pricing: False" and convar "npcvendingmachine.dynamicpricingenabled" - true

I tested today. It seems to be working as expected.

The dynamic pricing system is pretty simple overall. Basically the plugin just needs to make sure that it records purchases into the dynamic pricing system, queries the dynamic pricing system for price adjustments, and records transaction data between reloads/restarts. What the plugin is doing in this regard is very simple, so not much can go wrong.

I remember somebody reported a few months ago that they were seeing strange results, but the issue turned out to be that their dynamic pricing convars had some invalid values, such as multipliers set to 0 which doesn't make sense. The resolution was to compare their convars to the default values and fix anything that didn't make sense. I suggest you do the same if you haven't already.

You can run the npcvendingmachine.printallpricechanges command to help debug the dynamic pricing system. It will output something like this for each vending machine.

Output Outfitters
==============
Item Name       Original Price Discount/Surcharge Final Price Avg Sales/Interval Current Sales/Interval Total Sales Intervals
tshirt          5              175%               9           0                  0                      0           5
tshirt.long     10             175%               18          0                  0                      0           5
jacket.snow     20             175%               35          0                  0                      0           5
shoes.boots     20             190%               38          1                  0                      5           5
tactical.gloves 40             175%               70          0                  0                      0           5

the fact is that I didn’t do anything at all with dynamic prices, and complaints about the Bandit Camp began, I looked and there really were strange prices, almost everywhere -50%, as if people were buying every product in every store, while while at Outpost the prices were similar to adequate, some more expensive, some cheaper. And after that I started to change something, but I set adequate values ​​in the parameters, I tried to enable/disable dynamic prices by reloading the plugin, because... without rebooting they did not switch, set the change time to 1 minute, buy, sell, and did not notice any changes in prices..

As for the table, I did not find some stores in it, while this command displayed all stores: server.listvendingmachines
It’s rare that I can’t understand something after testing, but here I’m confused, either these are some kind of flaws from the developers, or I don’t know..



Merged post

and yes, my online varies about 10 players..)

You could try running forward the "clock" by running a command such as npcvendingmachine.addhours 24. This is what I usually do when testing anything related to dynamic pricing. This should help you determine whether the system is working overall.

What I sometimes do is spawn 2 vending machines, customize one (Edit -> Save, without actually changing anything, just to get the plugin to control it), then advance the time, to confirm they have the same prices.

and I didn't understand what this command was for, thanks) could the problem fixed in the last update be the reason for this topic?

No, the latest update is unrelated.

after the wipe in all stores 100%, and in two -50%, this is the Bandit Camp:
Produce Exchange and Scrap 4 Sale

if I'm not mistaken, then I only made any changes with the plugin to them..

npcvendingmachine.dynamicpricingenabled Whether to run the the dynamic pricing system (True)
 npcvendingmachine.maximumpricemultiplier The maximum point that a price can increase to (2 = 200%) (2)
 npcvendingmachine.minimumpricemultiplier The Minimum point that the price can drop to (0.5 = 50% off) (0.5)
 npcvendingmachine.pricedecreaseamount How much to decrease the price for if it is underselling (0.05 = 5%) (0.05)
 npcvendingmachine.priceincreaseamount How much to increase the price by if it is selling a lot (0.05 = 5%) (0.1)
 npcvendingmachine.priceupdatefrequencybiweekly How many realtime hours are checked when looking for price increases. Max 72 (10 days), min 0.5 (half an hour) (2)
 npcvendingmachine.priceupdatefrequencydefault How many realtime hours are checked when looking for price increases. Max 72 (10 days), min 0.5 (half an hour) (3)
 npcvendingmachine.priceupdatefrequencyweekly How many realtime hours are checked when looking for price increases. Max 72 (10 days), min 0.5 (half an hour) (1)
 npcvendingmachine.startingpricemultiplier What discount surcharge should be applied to items when the server starts (2)
 vendingmachine.max_history  (10000)
 vendingmachine.max_processed  (10000)
 vendingmachine.max_returned  (100)


Merged post

and I also don’t understand why it’s 100% everywhere if the multiplier after the wipe is set to 2..

Merged post

I'm now running a local server to see how it behaves in vanilla..

Merged post

this is strange, but it’s the same on vanilla... some kind of nonsense, I don’t understand anything..