Vending machine configuration not applying

I have set in config
"SellItem": {
"ShortName": "scrap",
"Amount": 1
},
"CurrencyItem": {
"ShortName": "metal.refined",
"Amount": 1
}
},

however I get 2 HQ for 1 scrap, I hace to log on and eidt via gui 1:1 and it will be ok until wipe, after wipe it go back to 2 HQ for 1 scrap.

Do you have any other vending machine plugins? If so, try unloading them to see if it still happens.

I don't. I tried reloading plugin, starting server with only this plugin etc and same issue. Once I change it via GUI it will be ok for wipe.

Just so I understand, you have configured the vending machine to do 1 HQ -> 1 scrap (1 scrap on the left, 1 HQ on the right), but you observed it functioning as 1 scrap -> 2 HQ (you said "I get 2 HQ for 1 scrap"). That's inverted, meaning the item being sold got swapped with the currency. Is that correct?

I just tested and wasn't able to reproduce the issue. I tried reloading the plugin, as well as restarting the server, and I got exactly what was configured. I tried 1 HQ -> 1 scrap, as well as 1 scrap -> 1 HQ.

Please answer the following questions, as they will help me narrow down what the issue is.

  1. What kind of map are you using? Procedural or RustEdit or RustMaps? If custom, do you have any extensions installed, such as the RustEdit extension (or Harmony mod equivalent)?
  2. Which monument?
  3. Which vending machine?
  4. Which original sale offer did you edit/replace (if applicable)?
  5. Are you using Oxide, or a different framework?
  6. When you are experiencing the problem, when you open the shop UI, does it show the "Reset" button? If the "Reset" button is present, that means the plugin thinks it has modified the vending machine. If the "Reset" button is absent, that means the plugin probably didn't detect the vending machine properly.
  7. When you are experiencing the problem, when you open the shop UI, does it show what you configured (1 scrap on the left, 1 HQ on the right), or does it show what you will get? If what you configured is visible, but doing the transaction results in something else, then that means the plugin successfully modified the vending machine but something went wrong when overriding the transaction logic.
If you share the full data file with me, I can answer questions 2-4 myself, and I may be able to spot other issues that could be related.

Hi and thanks,
I use usually procedural maps, sometimes maps generated by rustmaps and yes rustedit is loaded to the server as need it for rustmaps. Using oxide to.
Problem seems to be with one specific vending machine, all others look fine. I can modify problematic vending machine with UI and reset button is always active. In config is set 1 scrap to 1 HQ but on vending machine it display 2 scrap on left and 1 HQ on right ( just like you would click reset) however it happens only on map change, when I modify it in UI again it will be fine for wipe. Any other machine load correctly from config, even one next to broken one.
I will start again with everything and double check config on test server .