Unedited Vendors changingSolved

Unable to pinpoint this to Custom Vending Setup or Vending In Stock as I loaded both around the same time, and unloaded both with no changes.

Now I am seeing two vendors at Bandit (which I did not edit) showing strange values.

The "Food Market" vendor at Bandit changed its Pickles value, now it only sells 1 Pickle for 1 scrap. Supposed to be 6 pickles for 1 scrap.  Also it now only sells 1 tuna can, supposed to be 5 tuna cans.
The "Scrap Exchange" vendor at Bandit nows sells everything for just 1 scrap.

I went in and manually edited everything to fix in the mean time.

The behavior you describe sounds like the vanilla vending machine manifests have been edited.

Vending In Stock cannot affect this. All it does is detect when an item was purchased, and then adds a copy of the item back to the vending machine inventory to replace it.

I believe Custom Vending Setup v1 used to edit the manifests, but v2 doesn't touch them, which is the safer option as it should avoid any issues like what you are describing. V2 simply disables the vanilla vending machine logic and runs custom logic to alter the current sale orders and refill the vending machine inventories. When Custom Vending Setup unloads or when you click the "reset" button, CVS calls a vanilla function which clears the sale orders, clears the inventory, and then installs the vanilla sale orders from the manifests, so the behavior you are describing is not expected to be caused by this plugin.

If vending machines you have not ever edited are showing different prices, one hypothesis is that the sell orders are using pooling, but that is clearly false from looking at the vanilla code for installing a sale order, which this plugin calls. Another hypothesis is that you are using a vending machine prefab that you have edited elsewhere, where the manifests had been modified, because the manifests are shared across all instances of the same vending machine prefab. However, as I mentioned, CVS v2 does not edit manifests, so it sounds like another plugin is related.

My only working theory is that you previously had another vending machine plugin during the same server session (server had not been restarted), such as CVS v1 or Compound Options, which irrevocably altered the vanilla manifests. If that is the cause, the issue will not be fixed until the next restart.

So I tried rebooting and that didnt fix.  And the only CVS i have ever used are the two most recent.  Other than that I have never used a vending machine plugin.

Thanks for the info. Then it sounds like we may be looking at this plugin as the cause.

Can you start by baselining the expected behavior is working on your server? To do so, modify any vending machine that was previously not customzied, click save, then click "reset" and verify that it reverted correctly. Additionally, after editing a vending machine, unload the plugin to verify that it reverted correctly. If you find any issues, take note of which vending machine you modified, including the before/after sale orders. This data will help us get closer to the root cause.

Also, if restarting the server without the plugin doesn't fix the issue, then we are likely looking at a different cause.

Large Fishing Village - Fish Exchange
Added 1 HV 5.56 for 1000 scrap. Saved.
Reset > reverted correctly.

Did same. Unloaded plugin.  Reverted correctly to default sales.  Reloaded and custom sale order returns.

Unfortunately i cannot reboot at this time.

edit: Though I did reboot earlier while I was troubleshooting and it did not revert, which led me to just manually edit the vendors to the correct values.

Thanks for your help!

@Rockefeller Since your report, I've seen at least two other reports of this issue, from people not using Custom Vending Setup. We're still trying to figure out what's causing it. Are you using RustEdit by chance? If so, can you try rebooting your server without RustEdit installed? I don't have much cause to think that RustEdit is causing it, but it would be nice to rule it out as a possibility.

I do not have RustEdit installed.

I just saw the exact same report in the Stack Modifer help forum.

Locked automatically