Page 1 of 1

Dynamic erode server setting

Posted: Thu Dec 07, 2017 1:49 am
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.

Re: Dynamic erode server setting

Posted: Thu Dec 07, 2017 2:47 am
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

Re: Dynamic erode server setting

Posted: Thu Dec 14, 2017 2:23 pm
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.

Re: Dynamic erode server setting

Posted: Thu Dec 14, 2017 7:02 pm
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.

Re: Dynamic erode server setting

Posted: Thu Dec 14, 2017 8:56 pm
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 :)

Re: Dynamic erode server setting

Posted: Fri Dec 15, 2017 3:57 pm
by ShackAttack12
I mentioned this in the online erode snapshot thread back in July:

http://forum.mxsimulator.com/viewtopic. ... de#p790230

Re: Dynamic erode server setting

Posted: Wed Dec 20, 2017 4:52 am
by cale726
ShackAttack12 wrote:I mentioned this in the online erode snapshot thread back in July:

http://forum.mxsimulator.com/viewtopic. ... de#p790230
congrats