MXSLauncher | Server Launcher

Post anything about MX Simulator here. Please. I'm begging you.
Ascaped
Posts: 13
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

MXSLauncher | Server Launcher

Postby Ascaped » Mon Dec 03, 2018 6:22 am

MXSLauncher
Any updates to this project will be posted to the github. To download the latest release, click download then the MXSLauncher.zip link. Any suggestions please let me know down below. Don't be to harsh, this was my first program in C#.
Source Code:https://github.com/Ascaped/MXSLauncher
Download: https://github.com/Ascaped/MXSLauncher/releases
Image

User avatar
Cantrell
Posts: 40
Joined: Fri Jul 13, 2012 7:28 am
Team: Privateer

Re: MXSLauncher | Server Launcher

Postby Cantrell » Mon Dec 03, 2018 6:25 am

+1 Well done sir. I will be using this. Player count is huge. 8)

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

Re: MXSLauncher | Server Launcher

Postby Wahlamt » Mon Dec 03, 2018 7:02 am

Is it player count currently, or last race?

Ascaped
Posts: 13
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Postby Ascaped » Mon Dec 03, 2018 7:15 am

Wahlamt wrote:Is it player count currently, or last race?

It is the last race player count. It is currently impossible to get a live count without the servers running some script posting the player count.

User avatar
mx201
Posts: 1620
Joined: Sat Feb 06, 2016 5:05 pm
Team: Madcape
Location: London, Japan
Contact:

Re: MXSLauncher | Server Launcher

Postby mx201 » Mon Dec 03, 2018 7:44 am

Actually really cool props to you
Logan "Indiana Jones" Leitzel
Image

Ascaped
Posts: 13
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Postby Ascaped » Mon Dec 03, 2018 8:24 am

mx201 wrote:Actually really cool props to you

Thank you!

User avatar
broland278
Posts: 1171
Joined: Sat Dec 20, 2008 4:28 am
Team: MotoSavage
Location: Kansas
Contact:

Re: MXSLauncher | Server Launcher

Postby broland278 » Mon Dec 03, 2018 2:45 pm

wow were is my credit... :wink:
Image

Ascaped
Posts: 13
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Postby Ascaped » Mon Dec 03, 2018 6:59 pm

broland278 wrote:wow were is my credit... :wink:

Its in the github lol

User avatar
broland278
Posts: 1171
Joined: Sat Dec 20, 2008 4:28 am
Team: MotoSavage
Location: Kansas
Contact:

Re: MXSLauncher | Server Launcher

Postby broland278 » Mon Dec 03, 2018 8:03 pm

Ascaped wrote:
broland278 wrote:wow were is my credit... :wink:

Its in the github lol

who are you
Image

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

Re: MXSLauncher | Server Launcher

Postby LKR47 » Mon Dec 03, 2018 8:59 pm

Super cool, thanks!

Since this really isn't a connected application it would probably be a hassle to get current players since this seems to only be reading from the servers page.
If you could make remote calls to a server you could use

Code: Select all

mxserver.schedule_command(commandline)
to run "server, listplayers" every x seconds. Or maybe even use

Code: Select all

mxserver.connect_handler(slotnumber)
and

Code: Select all

mxserver.disconnect_handler(slotnumber)
, but in the documentation it says you can get disconnects without a connect if the players client fails to connect.

It may be a lot more work, but if you wanted to get server info in real-time you can write a service that runs on the server so you can make requests remotely to the IP addresses you already have from the server list and those requests can be executed from the service since it is localhost. Then the server info can be sent as JSON back to the server launcher. That may be too many requests to make depending on how many servers are "active" on the server list.
You'll have to take a look at the documentation for a complete list of functions you'd have to use in the production script. If nobody has any interest in writing an info service, I may give it a go if I have time.
Image

Ascaped
Posts: 13
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Postby Ascaped » Mon Dec 03, 2018 11:16 pm

LKR47 wrote:Super cool, thanks!

Since this really isn't a connected application it would probably be a hassle to get current players since this seems to only be reading from the servers page.
If you could make remote calls to a server you could use

Code: Select all

mxserver.schedule_command(commandline)
to run "server, listplayers" every x seconds. Or maybe even use

Code: Select all

mxserver.connect_handler(slotnumber)
and

Code: Select all

mxserver.disconnect_handler(slotnumber)
, but in the documentation it says you can get disconnects without a connect if the players client fails to connect.

It may be a lot more work, but if you wanted to get server info in real-time you can write a service that runs on the server so you can make requests remotely to the IP addresses you already have from the server list and those requests can be executed from the service since it is localhost. Then the server info can be sent as JSON back to the server launcher. That may be too many requests to make depending on how many servers are "active" on the server list.
You'll have to take a look at the documentation for a complete list of functions you'd have to use in the production script. If nobody has any interest in writing an info service, I may give it a go if I have time.


Do you know where that documentation is?

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

Re: MXSLauncher | Server Launcher

Postby LKR47 » Tue Dec 04, 2018 12:00 am

Ascaped wrote:Do you know where that documentation is?

It's in the latest server download in the JS folder. forum.mxsimulator.com/viewtopic.php?f=1&t=49636
Image

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

Re: MXSLauncher | Server Launcher

Postby Holt_619 » Wed Dec 05, 2018 6:26 am

LKR47 wrote:Super cool, thanks!

Since this really isn't a connected application it would probably be a hassle to get current players since this seems to only be reading from the servers page.
If you could make remote calls to a server you could use

Code: Select all

mxserver.schedule_command(commandline)
to run "server, listplayers" every x seconds. Or maybe even use

Code: Select all

mxserver.connect_handler(slotnumber)
and

Code: Select all

mxserver.disconnect_handler(slotnumber)
, but in the documentation it says you can get disconnects without a connect if the players client fails to connect.

It may be a lot more work, but if you wanted to get server info in real-time you can write a service that runs on the server so you can make requests remotely to the IP addresses you already have from the server list and those requests can be executed from the service since it is localhost. Then the server info can be sent as JSON back to the server launcher. That may be too many requests to make depending on how many servers are "active" on the server list.
You'll have to take a look at the documentation for a complete list of functions you'd have to use in the production script. If nobody has any interest in writing an info service, I may give it a go if I have time.


All great points, but the thing is he would still need the ability to run the service locally wherever the servers are actually hosted since all those calls require local access to the server just like xcommand does. I can't think of a way to request the info from a remote server without something already running locally listening for those calls.

Also, great job on the launcher Ascaped. Really cool stuff!

motocross_will
Posts: 791
Joined: Sun Mar 16, 2014 2:26 am
Team: MV Films

Re: MXSLauncher | Server Launcher

Postby motocross_will » Wed Dec 05, 2018 7:10 am

Hey man nice background pic for your program! Would of been cool to know you were using mine! :D :D :D :D
Image
Image

motocross_will
Posts: 791
Joined: Sun Mar 16, 2014 2:26 am
Team: MV Films

Re: MXSLauncher | Server Launcher

Postby motocross_will » Wed Dec 05, 2018 7:24 am

DP but nah i dont really care. Actually thought it was kinda cool that you used mine. Just giving you a hard time. <3
Image


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests