Page 1 of 3

mxserver-2018-06-30-1412

Posted: Sun Jul 01, 2018 12:38 am
by jlv
Changes:
  • Padded ping packets for buggy routers that drop short packets.
  • Integrated Javascript interpreter. (See js/README.TXT for more info.)
  • Rewrote timeout/disconnect code to be more reliable.
mxserver-2018-06-30-1412.zip

Tutorial on how to run a server, compiled by yzmxer608 located here.

Re: mxserver-2018-06-30-1412

Posted: Tue Jul 03, 2018 3:03 pm
by onefoureight
Thanks mate

Re: mxserver-2018-06-30-1412

Posted: Tue Jul 03, 2018 8:07 pm
by LKR47
I think I'm going to have the most fun with chat filter :D

Re: mxserver-2018-06-30-1412

Posted: Wed Jul 04, 2018 12:42 am
by jlv
The example filter might be the most useless profanity filter ever made. Have fun!

Re: mxserver-2018-06-30-1412

Posted: Mon Jul 09, 2018 6:32 am
by Holt_619
Thank you so much for this, jlv!

Re: mxserver-2018-06-30-1412

Posted: Mon Jul 09, 2018 6:30 pm
by mxholmes
Hey JLV, having a problem with the Server Dashboard on my MXSLobby server, the top heading on my dashboard is commands, so I cant see players in lobby, timing and scoring, or even what track is on the server. Any help with this bug would be greatly appreciated!

Re: mxserver-2018-06-30-1412

Posted: Mon Jul 09, 2018 8:52 pm
by Wahlamt
mxholmes wrote:Hey JLV, having a problem with the Server Dashboard on my MXSLobby server, the top heading on my dashboard is commands, so I cant see players in lobby, timing and scoring, or even what track is on the server. Any help with this bug would be greatly appreciated!
PM the guy above, Holt_619, he's the owner of MXSLobby. I'll quote him to get his attention.
Holt_619 wrote:Previous poster said stuff.

Re: mxserver-2018-06-30-1412

Posted: Wed Sep 19, 2018 7:13 am
by jz38
I'm having an issue with opening the "mxserver" in the folder. It opens and then immediately closes. How do I fix this? I've tried deleting the folder and re-downloading several times and it is not working, still.

Re: mxserver-2018-06-30-1412

Posted: Wed Sep 19, 2018 8:40 am
by Wahlamt
jz38 wrote:I'm having an issue with opening the "mxserver" in the folder. It opens and then immediately closes. How do I fix this? I've tried deleting the folder and re-downloading several times and it is not working, still.
You're not meant to that one. Execute the .bat file, that runs the .exe file correctly. Also edit the .bat file to your UID, so you're the admin by default.

Re: mxserver-2018-06-30-1412

Posted: Wed Nov 28, 2018 4:06 am
by cmusg
Dont forget to download Hamachi

Re: mxserver-2018-06-30-1412

Posted: Mon Feb 04, 2019 2:29 pm
by MxSimulatorMods
Is it possible to add hook when riders have finished to load the track after restart ?

I would like to send message if the rider is in spectator status after restart.
For now, I use "at +X" but if the rider take lot of time time to load the track, he didn't see the message.

Re: mxserver-2018-06-30-1412

Posted: Mon Feb 04, 2019 4:44 pm
by Wahlamt
MxSimulatorMods wrote:Is it possible to add hook when riders have finished to load the track after restart ?

I would like to send message if the rider is in spectator status after restart.
For now, I use "at +X" but if the rider take lot of time time to load the track, he didn't see the message.
Maybe --result-cmd could be something? Have 1 first to send the result file, then have a 2nd one to execute a custom command to restart the server, like an xcmd one?

Re: mxserver-2018-06-30-1412

Posted: Mon Feb 04, 2019 5:37 pm
by MxSimulatorMods
My problem is not the restart, it's to know when players are ready and wait behind the gate.
I could use starttime and date in the result file but theses values have a big bugs (It's why the timer of my leaderboard doesn't work correctly, the leaderboard which S.Y.S use for his stream).

It's still the same with --result-cmd.
I think it's currently impossible to know if the player is in loading or if is ready.

Re: mxserver-2018-06-30-1412

Posted: Tue Feb 05, 2019 3:30 am
by jlv
MxSimulatorMods wrote:Is it possible to add hook when riders have finished to load the track after restart ?

I would like to send message if the rider is in spectator status after restart.
For now, I use "at +X" but if the rider take lot of time time to load the track, he didn't see the message.
No good way right now. This might work but it's definitely not pretty (and not tested either):

tail -f log.txt | grep '^All ready!$' | (while read line; do echo "x/mypassword/customallreadycmd" >/dev/udp/127.0.0.1/19800; done)

Probably would be a good idea to add an all ready hook.
MxSimulatorMods wrote:My problem is not the restart, it's to know when players are ready and wait behind the gate.
I could use starttime and date in the result file but theses values have a big bugs (It's why the timer of my leaderboard doesn't work correctly, the leaderboard which S.Y.S use for his stream).

It's still the same with --result-cmd.
I think it's currently impossible to know if the player is in loading or if is ready.
"starttime" is when the gate dropped in 1/128 second units. "date" is seconds since the beginning of time in 1970.

Re: mxserver-2018-06-30-1412

Posted: Tue Feb 05, 2019 10:56 am
by MxSimulatorMods
jlv wrote: "starttime" is when the gate dropped in 1/128 second units. "date" is seconds since the beginning of time in 1970.
I konw that but the date have a bug. When I totally restart the server, the date is right and my leaderboard work correctly. But after few hours, the result date is not the same than real date. There is a gap between both.

I use this function to know when the start will begin in php :

Code: Select all

$h_debut = $race[date] + convertHumanGap($race[starttime]);

function ConvertHumanGap($time)
{
    if ( $time <= 0 ) return "";

    $time = $time / 128;

    $sec = floor($time);
    $ms = round(($time - $sec)*10);
    if ($sec<=99) {
    $time = "";
    $time .= "$sec.$ms";
    }
    else {
        $time=$sec;
    }
    return $time;
}