Vending machine resets back to default after restart or reloadSolved

I don't know why the custom vending machine keeps resetting after server restart or even just by reloading it. I didn't touch the cs file or config file at all, i just added the required plugin, then this plugin and edited the vending machine in-game. but everyday it resets back to default.
Please help. :(

What spawned the vending machines? Are they a vanilla part of a vanilla monument, or are they part of a custom monument created with RustEdit, or are they spawned by a plugin?

i used the "entity.spawn npcvendingmachine" command and spawn it at the bandit camp.

So you are saying that when you open the shop, you see the edit button, which you click, then you customize it, then you save, and you can see the edits have applied and the Reset button is visible? Then you reload the plugin, and when you open the shop again, the customizations are gone, and the Reset button is also gone?

If the above steps/observations are correct, I'm not aware of anyone else experiencing that issue, nor do I have any ideas off the top of my head why that would happen. It means that something is going wrong in the plugin, but it could be one of multiple things. As an initial troubleshooting step, I suggest you look at the oxide/data/CustomVendingSetup.json data file to see if the edits had even been saved.

One slightly common issue that people face is that after spawning a vending machine, the user moves the vending machine with a plugin, then customizes it. This causes the edits to be saved at the original vending machine's position, not the position it was moved to, which causes the plugin to think the customizations aren't associated with that vending machine. There are some good reasons that the plugin works the way it does, but I could probably add a check to verify that the vending machine has not moved, in order to mitigate this issue (not as straight forward as it sounds unfortunately). If you had moved the vending machine after spawning it, please reload the plugin before making any edits to the vending machine, then don't move it again.

NKXTQs24ExGTuL8.jpg WhiteThunder

So you are saying that when you open the shop, you see the edit button, which you click, then you customize it, then you save, and you can see the edits have applied and the Reset button is visible? Then you reload the plugin, and when you open the shop again, the customizations are gone, and the Reset button is also gone?

Hello @WhiteThunder,  Yes. And also OMG! yes i was using another plugin to  move the vending machine. That could be what's causing it! Now i know what to do. Thank you so much for taking time to respond to my post. I really appreciate it a lot. Have a great day! <3

Locked automatically