mxserver-2018-06-30-1412

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

mxserver-2018-06-30-1412

Postby jlv » Sun Jul 01, 2018 12:38 am

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.

User avatar
onefoureight
Posts: 922
Joined: Sun Dec 23, 2012 2:54 am
Team: Not Splitfire
Location: Shit Posting Capital of the world

Re: mxserver-2018-06-30-1412

Postby onefoureight » Tue Jul 03, 2018 3:03 pm

Thanks mate
2015 Australian Supercross 450 champion | rF Villain | Wolf Pack Racing Leader | CBL Gaming

User avatar
LKR47
Posts: 836
Joined: Fri Jan 18, 2013 4:26 am
Team: LCQ Studios
Location: Chicago, Illinois
Contact:

Re: mxserver-2018-06-30-1412

Postby LKR47 » Tue Jul 03, 2018 8:07 pm

I think I'm going to have the most fun with chat filter :D
Image

jlv
Site Admin
Posts: 13131
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: mxserver-2018-06-30-1412

Postby jlv » Wed Jul 04, 2018 12:42 am

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.

User avatar
Holt_619
Posts: 597
Joined: Tue Jan 24, 2012 5:29 am
Team: FlowTech Racing
Location: California
Contact:

Re: mxserver-2018-06-30-1412

Postby Holt_619 » Mon Jul 09, 2018 6:32 am

Thank you so much for this, jlv!

User avatar
mxholmes
Posts: 7
Joined: Fri Mar 09, 2018 6:50 am
Team: Mx Formula
Location: Victoria, BC. Canada

Re: mxserver-2018-06-30-1412

Postby mxholmes » Mon Jul 09, 2018 6:30 pm

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

User avatar
Wahlamt
Posts: 7034
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2018-06-30-1412

Postby Wahlamt » Mon Jul 09, 2018 8:52 pm

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: 11
Joined: Thu Oct 29, 2015 5:59 am
Team: Mikes Head Bobbers &

Re: mxserver-2018-06-30-1412

Postby jz38 » Wed Sep 19, 2018 7:13 am

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.
"Snort lines and fuck dimes." - Charlie Sheen.

User avatar
Wahlamt
Posts: 7034
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2018-06-30-1412

Postby Wahlamt » Wed Sep 19, 2018 8:40 am

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.

User avatar
cmusg
Posts: 4
Joined: Sun Nov 25, 2018 6:57 pm
Team: Bad

Re: mxserver-2018-06-30-1412

Postby cmusg » Wed Nov 28, 2018 4:06 am

Dont forget to download Hamachi
2013 CRF250r

Image

User avatar
MxSimulatorMods
Posts: 53
Joined: Fri Aug 03, 2018 6:37 pm

Re: mxserver-2018-06-30-1412

Postby MxSimulatorMods » Mon Feb 04, 2019 2:29 pm

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

User avatar
Wahlamt
Posts: 7034
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2018-06-30-1412

Postby Wahlamt » Mon Feb 04, 2019 4:44 pm

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?

User avatar
MxSimulatorMods
Posts: 53
Joined: Fri Aug 03, 2018 6:37 pm

Re: mxserver-2018-06-30-1412

Postby MxSimulatorMods » Mon Feb 04, 2019 5:37 pm

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: 13131
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: mxserver-2018-06-30-1412

Postby jlv » Tue Feb 05, 2019 3:30 am

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.

User avatar
MxSimulatorMods
Posts: 53
Joined: Fri Aug 03, 2018 6:37 pm

Re: mxserver-2018-06-30-1412

Postby MxSimulatorMods » Tue Feb 05, 2019 10:56 am

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 <= ) 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


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests