mxserver-2018-06-30-1412

Post anything about MX Simulator here. Please. I'm begging you.
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

mxserver-2018-06-30-1412

Post 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.
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.
onefoureight
Posts: 924
Joined: Sun Dec 23, 2012 2:54 am
Team: Not Splitfire
Location: Shit Posting Capital of the world

Re: mxserver-2018-06-30-1412

Post by onefoureight »

Thanks mate
2015 Australian Supercross 450 champion | rF Villain | Wolf Pack Racing Leader | CBL Gaming
LKR47
Posts: 893
Joined: Fri Jan 18, 2013 4:26 am
Team: LCQ Studios
Location: McHenry, Illinois
Contact:

Re: mxserver-2018-06-30-1412

Post by LKR47 »

I think I'm going to have the most fun with chat filter :D
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: mxserver-2018-06-30-1412

Post by jlv »

The example filter might be the most useless profanity filter ever made. Have fun!
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.
Holt_619
Posts: 599
Joined: Tue Jan 24, 2012 5:29 am
Team: FlowTech Racing
Location: California
Contact:

Re: mxserver-2018-06-30-1412

Post by Holt_619 »

Thank you so much for this, jlv!
mxholmes
Posts: 14
Joined: Fri Mar 09, 2018 6:50 am
Team: BRXTN
Location: Victoria, BC. Canada

Re: mxserver-2018-06-30-1412

Post 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!
Image
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2018-06-30-1412

Post 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.
jz38
Posts: 49
Joined: Thu Oct 29, 2015 5:59 am
Team: Privateer

Re: mxserver-2018-06-30-1412

Post 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.
Snackin and Jackin since '98
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2018-06-30-1412

Post 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.
cmusg
Posts: 5
Joined: Sun Nov 25, 2018 6:57 pm
Team: Bad

Re: mxserver-2018-06-30-1412

Post by cmusg »

Dont forget to download Hamachi
2013 CRF250r

Image
MxSimulatorMods
Crushed Dissenter
Posts: 62
Joined: Fri Aug 03, 2018 6:37 pm

Re: mxserver-2018-06-30-1412

Post 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.
Image
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2018-06-30-1412

Post 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?
MxSimulatorMods
Crushed Dissenter
Posts: 62
Joined: Fri Aug 03, 2018 6:37 pm

Re: mxserver-2018-06-30-1412

Post 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.
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: mxserver-2018-06-30-1412

Post 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.
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.
MxSimulatorMods
Crushed Dissenter
Posts: 62
Joined: Fri Aug 03, 2018 6:37 pm

Re: mxserver-2018-06-30-1412

Post 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;
}
 
Image
Post Reply