Could this not be done with the run at command? Post a file to the relevant server, after each signup and then setup intervals where the mxs script gets run?jlv wrote:It could be done. Not sure I want to bother with it though. The easy thing to do would be to reserve everyone who signed up for the last round and let the new riders qualify on an open server.
Qualifying Servers
-
kawy949
- Posts: 977
- Joined: Sat Feb 11, 2012 11:33 pm
- Location: UK
- Contact:
Re: Qualifying Servers
-
jlv
- Site Admin
- Posts: 15289
- Joined: Fri Nov 02, 2007 5:39 am
- Team: No Frills Racing
- Contact:
Re: Qualifying Servers
Sure, make a script like this:
10minuterepeater.mxs:
#mxserverscript
at +1 exec reserve.mxs
at +600 exec 10minuterepeater.mxs
reserve.mxs:
#mxserverscript
unreserve all
reserve 123 456 789
Then make another script using perl/python/whatever which updates the reserve.mxs script. The only thing you need to be careful about is the update to reserve.mxs. You want to use an atomic operation to update it so the server never reads it in a partially updated state. So don't write directly to reserve.mxs, write to a temporary file and then rename that file to "reserve.mxs".
10minuterepeater.mxs:
#mxserverscript
at +1 exec reserve.mxs
at +600 exec 10minuterepeater.mxs
reserve.mxs:
#mxserverscript
unreserve all
reserve 123 456 789
Then make another script using perl/python/whatever which updates the reserve.mxs script. The only thing you need to be careful about is the update to reserve.mxs. You want to use an atomic operation to update it so the server never reads it in a partially updated state. So don't write directly to reserve.mxs, write to a temporary file and then rename that file to "reserve.mxs".
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
-
wheels1758
- Posts: 4132
- Joined: Tue Oct 21, 2008 5:20 pm
- Location: Washington, USA
- Contact:
Re: Qualifying Servers
I didn't think recursive scripts were allowed. I remember trying to run a script that executed another script and it wouldn't let me.
-
jlv
- Site Admin
- Posts: 15289
- Joined: Fri Nov 02, 2007 5:39 am
- Team: No Frills Racing
- Contact:
Re: Qualifying Servers
You can't directly use "exec" but you can use "at" to schedule an exec command.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
-
bdownen323
- Posts: 2949
- Joined: Mon Nov 28, 2011 11:00 pm
Re: Qualifying Servers
Bump. I'm down to make my server a seeded server if rf would like, maybe top 20 in each class in points or something
-
Sweendoggy
- Posts: 3649
- Joined: Sat Feb 21, 2009 5:10 am
- Team: Lone Wolf
- Location: California, US
Re: Qualifying Servers
oh I like it! At some point I DO want to stray from the way the AMA does everything, and create some of our OWN rules.jlv wrote:Any interest in setting part of the field with a qualifying race? That would be way more fun than trying to set a lap time.
Also I think if we did anything it would either just be giant reserve lists based on licenses, OR I would take say the top 20 in points from each class and have a seeded pro, seeded AM, then open pro open am servers.
-
JTmoto
- Crushed Dissenter
- Posts: 485
- Joined: Sun Feb 12, 2012 2:06 am
- Team: Eleven10 Mods Suzuki
Re: Qualifying Servers
Strictly arcade physics only heat racesSweendoggy wrote:oh I like it! At some point I DO want to stray from the way the AMA does everything, and create some of our OWN rules.jlv wrote:Any interest in setting part of the field with a qualifying race? That would be way more fun than trying to set a lap time.
Also I think if we did anything it would either just be giant reserve lists based on licenses, OR I would take say the top 20 in points from each class and have a seeded pro, seeded AM, then open pro open am servers.

-
bdownen323
- Posts: 2949
- Joined: Mon Nov 28, 2011 11:00 pm
Re: Qualifying Servers
I'll make mine seeded pro if you wanna I can get it set upSweendoggy wrote:oh I like it! At some point I DO want to stray from the way the AMA does everything, and create some of our OWN rules.jlv wrote:Any interest in setting part of the field with a qualifying race? That would be way more fun than trying to set a lap time.
Also I think if we did anything it would either just be giant reserve lists based on licenses, OR I would take say the top 20 in points from each class and have a seeded pro, seeded AM, then open pro open am servers.
-
brendenNWmx31
- Posts: 8
- Joined: Fri Nov 09, 2012 4:36 pm
- Team: Privateer
Re: Qualifying Servers
I think RF should add a D-Class, so that more people get a chance to race. To qualify this week in C class you had to get less than a 59.1. I think the addition of a d-class will make it more fun for everyone and keep the beginners out of the faster servers.