The online racing simulator
New admin command: setlap_all
Since 0.6H, we have had a command /setlap USERNAME X. With that, we can set the lap that the user is currently on.

However, with that command, we can only change that lap amount for one driver at the time. Even if you use that "multiple commands in single line" feature, you can only do that change for few drivers at most.

What I suggest is an additional version of that command: /setlap_all X, with X being the lap parameter. That command will set the lap to all drivers on track at once. It will not affect checkpoints being passed.

We already have a command /zero_all which resets all lap counters and checkpoints passed from the race, so I don't think it should be too difficult to add this command.

And by the way, this /zero_all may seem very similar to what /setlap_all 0 or 1 would be, but there is actually one difference. /setlap_all would not affect to checkpoints being passed, while /zero_all resets them.

Examples where this command would be really useful:

1) We do have some races, where race length is set by kilometers/miles. However, in LFS, if your lap amount is over 100, you can only have lap amounts that you can multiply by ten. And in case you don't know, LFS developers cannot easily add a feature which would support 101, 102 etc. lap amounts, because that change would break existing InSim scripts, replay parsers etc., for little gain.

With this command, you could add that lap amount for all drivers at once, so they will actually drive that fixed distance amount! Example: race length is set to 230 kilometers, but you want a 300km race, which would actually be achieved by driving 228 laps. With this command /setlap_all, you could just set parameter to 3, which results all of them actually driving "just" 228 laps, which is that correct distance, instead of 230!

2) Imagine a situation, where we have server problems and most, if not all, drivers time out in the middle of the race. And then it's decided to restart the race and admins want to continue on from where they were left off.

Instead of subtracting from that original lap amount, admins could just set that lap where those server issues occurred for all drivers at once. For lapped cars, admins can then set that correct lap amount afterwards by using command /setlap USERNAME X with X being negative.

Not to mention that there's always a chance you will face some other situation where this command would be needed Smile

FGED GREDG RDFGDR GSFDG