I already made a simple schedule module for Lapper in the past, but for a long time I had a wish to make a system which makes server admins sit down and relaxed, once all the information was entered into a system. Recently I started coding it in Lapper and now it's time to share some information about this project with the community.
The Schedule module is build in two parts, with the first part being used my server admins, while the second part is used by the users of that server.
First of all it has the option to specify up to 8 server names, so you can just enter a schedule being logged on to one server, but will be used on another. Furter it's possible to schedule up to 14 races, for which you can specify Date,Time,Track,Car(s),Laps,a Comment and a Password. Of course all can be saved into the LFS Lapper database. (see Capture1.PNG)
The user side of things is showing the scheduled races for the server you are connected with, but when more schedules are entered into the system, you can simply click on the displayed server names, to read the other schedules as well. (see Capture2.PNG)
But that's not everything. Every night at 00:00 hour, a check is done when then next race on that specific server will be and if the right track for that race is already loaded or not. If that isn't the case, it pulls the needed trackcode from the database, changes the server to the right track, and sets all the other things like the allowed cars and DefaultTopCar as well. On the race day it self, it changes the password of the server to the specified password for that race. So an admin has to put all the details into the schedule at the start of a league season, and then the rest of the season, Lapper takes care of all the needed settings.
At the moment this new module is undergoing some final testing and I want to add a few things I just found out that would be needed to run schedules for multiple raceteams on multiple servers. After that, I will release the scripts to the community.
The Schedule module is build in two parts, with the first part being used my server admins, while the second part is used by the users of that server.
First of all it has the option to specify up to 8 server names, so you can just enter a schedule being logged on to one server, but will be used on another. Furter it's possible to schedule up to 14 races, for which you can specify Date,Time,Track,Car(s),Laps,a Comment and a Password. Of course all can be saved into the LFS Lapper database. (see Capture1.PNG)
The user side of things is showing the scheduled races for the server you are connected with, but when more schedules are entered into the system, you can simply click on the displayed server names, to read the other schedules as well. (see Capture2.PNG)
But that's not everything. Every night at 00:00 hour, a check is done when then next race on that specific server will be and if the right track for that race is already loaded or not. If that isn't the case, it pulls the needed trackcode from the database, changes the server to the right track, and sets all the other things like the allowed cars and DefaultTopCar as well. On the race day it self, it changes the password of the server to the specified password for that race. So an admin has to put all the details into the schedule at the start of a league season, and then the rest of the season, Lapper takes care of all the needed settings.
At the moment this new module is undergoing some final testing and I want to add a few things I just found out that would be needed to run schedules for multiple raceteams on multiple servers. After that, I will release the scripts to the community.