Dynamic erode server setting

Post your suggestions here
Post Reply
Lnxa
Crushed Dissenter
Posts: 1161
Joined: Thu Jan 19, 2012 4:36 am
Team: Privateer

Dynamic erode server setting

Post by Lnxa »

Could you make it so the erode number automatically changes based on how many people are in the server? Would be great for qualifying servers where an admin isn't in the server 24/7 to change the erode number.
[center][b]|[/b] 2013 EMF MX1 Champion - 3x rF 450 MX Champion ('15/'16/'17) [b]|[/b]
[url=http://www.youtube.com/Lnxamxs]Youtube[/url] [url=https://www.twitch.tv/lnxa]Twitch[/url]
"I hit my desk too hard again and my game crashed" -Rush[/center]
[img]https://yip.su/1w7sq7[/img]
jlv
Site Admin
Posts: 14912
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Dynamic erode server setting

Post by jlv »

Wouldn't be too hard to make a script do that and it'd probably be a good idea for a fun server. Wouldn't qualifying with erode on be a terrible idea though?

Here's an attempt at the script (for bash). Not tested at all.

Code: Select all

password=myserverspassword
lineupfile=lineup
while sleep 60
do
    count=$(wc -l <${lineupfile})
    erode=$((count > 35 ? 5 : 40 - count))
    echo -e x${password}erode $erode >/dev/udp/127.0.0.1/19800
done
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.
Jakob Hubbard
Posts: 1148
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: Dynamic erode server setting

Post by Jakob Hubbard »

jlv wrote: Wouldn't qualifying with erode on be a terrible idea though?
I agree, people qualifying with erode would allow people to either be at an advantage or disadvantage based on how the erode evolves. It just doesn't seem really fair when it comes to qualifying in different servers with different lines.
Image
Lnxa
Crushed Dissenter
Posts: 1161
Joined: Thu Jan 19, 2012 4:36 am
Team: Privateer

Re: Dynamic erode server setting

Post by Lnxa »

Jakob Hubbard wrote:
jlv wrote: Wouldn't qualifying with erode on be a terrible idea though?
I agree, people qualifying with erode would allow people to either be at an advantage or disadvantage based on how the erode evolves. It just doesn't seem really fair when it comes to qualifying in different servers with different lines.
Mainly Just want it for public servers so if theres no one on to change the setting it will change automatically depending on if there's 5 or 20 people.
[center][b]|[/b] 2013 EMF MX1 Champion - 3x rF 450 MX Champion ('15/'16/'17) [b]|[/b]
[url=http://www.youtube.com/Lnxamxs]Youtube[/url] [url=https://www.twitch.tv/lnxa]Twitch[/url]
"I hit my desk too hard again and my game crashed" -Rush[/center]
[img]https://yip.su/1w7sq7[/img]
Jakob Hubbard
Posts: 1148
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: Dynamic erode server setting

Post by Jakob Hubbard »

Lnxa wrote:Mainly Just want it for public servers so if theres no one on to change the setting it will change automatically depending on if there's 5 or 20 people.
Totally understandable dude :)
Image
ShackAttack12
Posts: 3131
Joined: Fri May 09, 2008 1:51 am
Location: San Diego, CA

Re: Dynamic erode server setting

Post by ShackAttack12 »

I mentioned this in the online erode snapshot thread back in July:

http://forum.mxsimulator.com/viewtopic. ... de#p790230
ShackAttack12
| 2010 Supercross Champ | 2011 Supercross Champ | 2019 Supercross Champ |
cale726
Posts: 593
Joined: Mon Aug 31, 2015 3:11 pm
Team: ks1999

Re: Dynamic erode server setting

Post by cale726 »

ShackAttack12 wrote:I mentioned this in the online erode snapshot thread back in July:

http://forum.mxsimulator.com/viewtopic. ... de#p790230
congrats
jlv wrote:This unban is going to last maybe two days...
I figured I'd give him a chance after winning the 450 main. Bad idea I know.
Image
Post Reply