cpm-support

textPage 39 of 801
50 messages on this page
Monday, November 4, 2024
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
if thats the issue make a custom message
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
well i used to reset regions every restart
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
If i remember correctly you could set a timeout
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
The problem is the custom hook.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
or is that not possible
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
This would be a weekly restart cron job. Seperate from the normal ones. We had the normal restart cron job so shutdownba
Then the special one which is pretexted with the global say. Those would fire at different times.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
It will fire for every restart.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
no the cron job would fire normally then the hook would capture the in game chat
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
oh
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
But you can't add a cron job to a custom hook.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
ex: say"[00ffff] Weekly reset zone restoration is in process. You may experience some lag. We thank you for your patience[-]"; shutdownba;
Then filter for the say portion
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
You could probably do it with a custom shutdownba and filter the in game chat message as the custom hook
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
That will only work for every restart, I think.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Actually, can you do that on only a weekly reset?
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
Thats a good idea. Ill do that. Thanks @User 53398683
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
That's a great idea.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
so if any players gets bugged it will be fixed by the restart
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
That way it will always run when the server is actually going to restart
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
When i used to use cpm and csmm i did it this way;
Since cron might trigger during blood moon it would reset regions while players are online. This can cause issues like i said with player inventory and weapons not reloading.
The solution is to run a cron with
shutdownba 10
and than hook the message at a certain minute you want to run resetregions.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
I'm going to say the best way to do it but don't ask me how 😛
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
That would be best.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
so a separate command for the weekly one.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
Once a week
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
No
resetregions; wait(180); rdd; shutdownba 10
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
How often do you reset your regions?
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
Could I do something like
resetregions; wait(180); shutdownba 10 or
resetregions; wait(180); rdd; shutdownba 10
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Usage: rdd <name/entityId/platformID>```
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
They will be kicked from the server if they are online.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
It is done individually for each player.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
can rdd be processed in Server automation or is that something I would need to enter in the command console?
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
Do it before shutdown sometimes it bugs player they cannot open inventory
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
If your players can't deploy new drones because theirs was deleted, you need to do the
rdd
command.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Reset regions can be done at any time, while the server is online.
Most of us are doing it a few minutes before the restart.
If you start the restart at 10:50, do the
resetregions
command at 10:57.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
sorry for getting confused terrible at multi tasking
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
Thank you
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Just
shutdownba 10
.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Ugh, will you listen to me.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
ok so just shutdownba reset
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
When the server shuts down, because you have the remove drones and vehicles enabled, it will delete them automatically.
No command required.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
oh nice. How would I set it up so that I initiate reset zone resets , clear drones, and vehicles that have been placed then. Been having no luck with getting that to work. Nearly everyones reach max drone limit lol
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Yes, every minute.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
does that come with a counter?
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
The problem with doing it this way is if there is a bloodmoon and the shutdown get's delayed, this all fires anyway.
You should just use
shutdownba 10
.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
No, the last line won't restart the server.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
last line restarts server
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
How are you doing that currently?
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
10 minutes in chat verbal warning then shutdown after promptly
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
can i paste the code for reference?
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
So prior to shut downI have a chat message that goes out that warns people and does a 10 minute clock timer
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
How long of a countdown do you want?