cpm-support
textPage 39 of 801
50 messages on this page
Monday, November 4, 2024
User 602ca8
if thats the issue make a custom message
User 602ca8
well i used to reset regions every restart
User 602ca8
If i remember correctly you could set a timeout
User 23fa64
The problem is the custom hook.
User c66f41
or is that not possible
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.
User 23fa64
It will fire for every restart.
User c66f41
no the cron job would fire normally then the hook would capture the in game chat
User c66f41
oh
User 23fa64
But you can't add a cron job to a custom hook.
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
User c66f41
You could probably do it with a custom shutdownba and filter the in game chat message as the custom hook
User 23fa64
That will only work for every restart, I think.
User 23fa64
Actually, can you do that on only a weekly reset?
User c66f41
Thats a good idea. Ill do that. Thanks @User 53398683
User 23fa64
That's a great idea.
User 602ca8
so if any players gets bugged it will be fixed by the restart
User 602ca8
That way it will always run when the server is actually going to restart
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.User 602ca8
I'm going to say the best way to do it but don't ask me how 😛
User 23fa64
That would be best.
User c66f41
so a separate command for the weekly one.
User c66f41
Once a week
User 23fa64
No
resetregions; wait(180); rdd; shutdownba 10
User 23fa64
How often do you reset your regions?
User c66f41
Could I do something like
resetregions; wait(180); shutdownba 10 or
resetregions; wait(180); rdd; shutdownba 10
User 23fa64
Usage: rdd <name/entityId/platformID>```
User 23fa64
They will be kicked from the server if they are online.
User 23fa64
It is done individually for each player.
User c66f41
can rdd be processed in Server automation or is that something I would need to enter in the command console?
User 602ca8
Do it before shutdown sometimes it bugs player they cannot open inventory
User 23fa64
If your players can't deploy new drones because theirs was deleted, you need to do the
rdd command.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.User c66f41
sorry for getting confused terrible at multi tasking
User c66f41
Thank you
User 23fa64
Just
shutdownba 10.User 23fa64
Ugh, will you listen to me.
User c66f41
ok so just shutdownba reset
User 23fa64
When the server shuts down, because you have the remove drones and vehicles enabled, it will delete them automatically.
No command required.
No command required.
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
User 23fa64
Yes, every minute.
User c66f41
does that come with a counter?
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.User 23fa64
No, the last line won't restart the server.
User c66f41
last line restarts server
User 23fa64
How are you doing that currently?
User c66f41
10 minutes in chat verbal warning then shutdown after promptly
User c66f41
can i paste the code for reference?
User c66f41
So prior to shut downI have a chat message that goes out that warns people and does a 10 minute clock timer
User 23fa64
How long of a countdown do you want?