So Let's say I use maspawn npcvendingmachine at banditcamp... I load the machine up with what I want to sell, place the scrap for cost and change the name of the machine... I come back 2 hours later and its reset back to the default Output Outfitters layout... This only happens on Certain Vending MAchines... I have tested and tested and cannont figure out what causes this... Your Plugin is the only plugin I have installed to manage vending Machines... Let me know thanks ;)
Certain Vending Machines Reset to Default on there own...Solved
First question, can you check whether the Custom Vending Setup (CVS) data file indeed has the customization you saved? If so, try reloading CVS to see if it temporarily resolves the issue.
Second question, did either CVS or Monument Addons (MA) get reloaded (or did the server restart) between when you customized the vending machine and when you came back to check? I ask because, to my recollection, once CVS has customized a Vending Machine (VM), it's not possible for it to randomly change after a period of time. It can only change if either the VM is respawned, or if CVS is reloaded, or if a player with permission customized the VM again. You can rule out the last possibility by verifying that the data file has the customizations you made.
Third question, did you move the vending machine after customizing it? Currently, CVS only assigns customizations to the VM if its Monument and position match what's in the CVS data file. In my testing, I haven't had any issues with the positions matching except for when moving the VM. If the cause of the issue is that you moved it, you should be able to resolve the issue by copying and pasting the VM position from the MA profile data file into the CVS data file, then reloading CVS.
Also, an upcoming update to Monument Addons will allow it to take control of saving the VM data so that it can be saved in the MA profile rather than in the CVS data file, which should allow you to safely move the vending machine after customizing it without having to edit any data files. If you want, you can download the prerelease of that on the GitHub develop branch of MA and enable the new config option that will be generated.
I probably moved it to align it better... Will do some more testing and keep you posted.
UPDATE:
With your advice, I was able to fix my issue and confirm using Telekinesis on npcvendingmachine is the culprit. It will not reset right away. But like you mentioned, restarts or plugin reloads. Thanks
My Solution:
Once The Vending Machine is Placed, It should not get Moved. It will Overtime Reset the Vending Machine.
If you need to move the vending machine for better aignment, It's best to "makill" the vending machine and
re "maspawn npcvendingmachine" with monumentaddons until you spawn it in place to your satisfaction.
The Telekinesis Feature does infact break the vending machine. It will look fine at first, But when you come check on it later. It will be reset back to default.
Thanks for the help WhiteThunder. Can't wait to see the future updates you mentioned ;)
Locked automatically