I'm currently running a medieval server and have taken certain items out of the vending machines, but every time I restart the server, the items reappear. Once I refresh the plugin after the restart it fixes itself. I have daily restarts and can't refresh the plugin everytime it restarts so i'm just wondering if there's a fix for this.
Vending machines resetting after server restartFixed
i use TimedExecute for it u can add in TimerOnce this command
"o.reload CompoundOptions": 90,it will reload the plugin self after 1:30 minutes, after restart. Right now I have a scheduled command in the rcon to refresh it twice two minutes and three minutes after restart. I don't see the need to add another plugin to fix the issue with this one so i'm hoping there's a fix for this plugin. Currently, when I refresh the plugin the first time, it works, but it empties the component vending machine, so I have to refresh it again to fill it.
Merged post..
Well i'm using the TimedExecute plugin, but there's two vendors in the bandit town that don't show up on the map or allow people to puchase things. Are you having this issue also?
Merged post..
Well i'm using the TimedExecute plugin, but there's two vendors in the bandit town that don't show up on the map or allow people to puchase things. Are you having this issue also?
yeah its random sometimes its sold out so u cant buy it, i let the plugin reload all 1h so sometimes there are items and sometimes no, its random now and not all the time items that u can buy. i know its not perfect but for me enough, and its random so players need look first at the map, to go in outpost/bandit camp for items what they need.
edit: u can test it self if you reload the plugin more times u see thats random sometimes there are items sometimes not.
edit: u can test it self if you reload the plugin more times u see thats random sometimes there are items sometimes not.
I actually put...
"oxide.reload CompoundOptions": 10,
"o.reload CompoundOptions": 30
After you refresh the plugin twice the component vending machine is filled, but the TimedExecute plugin wont do the same command twice in a row so I did it like that and it automatically refreshed it twice and filled the vending machine.
"oxide.reload CompoundOptions": 10,
"o.reload CompoundOptions": 30
After you refresh the plugin twice the component vending machine is filled, but the TimedExecute plugin wont do the same command twice in a row so I did it like that and it automatically refreshed it twice and filled the vending machine.
I fixed this by using a timed RCON event, one 5 minutes after reboot then again the next minute later. This a rust issue or a script hook issue? maybe needs some delays between calls? (TCAdmin has this ability if your host provider has this functionality)
Locked automatically