Razer-VAF Posted December 27, 2020 Posted December 27, 2020 Hi everyone, i hope you are all well and had a fantastic holiday season. It has come to mind on how 24/7 servers are run and in the configuration of my own i have seen some servers have custom scripts that they have used to call functions such as: -Taxi Speed Limit set to 50knts - Penalty 20 second caution - after 20 second caution, if still over 50knts - kick user back to spectators. - Weapons on aircraft - penalty 20 second caution - after 20 second caution, if weapons still active before animation 'x' (call x wheel rotation.) kick user back to spectators. - Server Notification 2/4/6 hour notifications - action : after 6 hours RESTART Server. I have looked over trigger zones and through the flag conditions but the only thing that can be active is Conditions: This is a concept and not the actual script..... Server Start -> Flag 1 = True -> Message to all ("Message") Once -> Flag 1 = true -> Message to all ("Message") Time is 600 Seconds Increase Flag to 2 Once -> Flag 2 = true -> Message to all ("Message") Time is 1200 Seconds Increase Flag to : 3 Once -> Flag 3 = true -> Message to all ("Message") Time is 1800 Seconds Increase Flag to : 4 End -> Flag 4 = True -> Load Mission : Mission/Track ID. .Miz I am able to get the config to work correctly but as for the simple task of restarting it does not seem to like the configuration. Is there anything that is not calling correctly as i do wish this to run on a 24/7 server for my group. Kind Regards Razer. [sIGPIC][/sIGPIC]
hancerPL Posted December 28, 2020 Posted December 28, 2020 That's what the scripts are for. You add moose and then another lua. with the entry Quote ATC_Ground = ATC_GROUND_CAUCASUS :New() :SetKickSpeedMiph(60) :SetMaximumKickSpeed(150) :Start() As for the mission restart info, you can add it to the same file Quote local Restart_Serwera_1 = SCHEDULER:New( nil, function() trigger.action.outText('Note server reboot too 4h', 10) end, {}, 3600 ) local Restart_Serwera_2 = SCHEDULER:New( nil, function() trigger.action.outText('Note server reboot too 3h', 10) end, {}, 7200 ) local Restart_Serwera_3 = SCHEDULER:New( nil, function() trigger.action.outText('Note server reboot too 2h', 10) end, {}, 10800 ) local Restart_Serwera_4 = SCHEDULER:New( nil, function() trigger.action.outText('Note server reboot too 1h', 10) end, {}, 14400 ) local Restart_Serwera_6 = SCHEDULER:New( nil, function() trigger.action.outText('Note server reboot 15 minut\nThe mission runs in a loop every 5 hours.', 10) end, {}, 17100 ) local Restart_Serwera_7 = SCHEDULER:New( nil, function() trigger.action.outText('Note server reboot too minute', 10) end, {}, 17940 ) Of course, you also need to set the trigger to reset the mission. Specialization A-10C https://vbw304.pl/
Havy Posted January 15, 2023 Posted January 15, 2023 @hancerPL Where do you add the mission restart script to? I have a dedicated server and wish to have it auto restart every so often. Thanks for your help.
Recommended Posts