MXSLauncher | Server Launcher

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

MXSLauncher | Server Launcher

Post by Ascaped »

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
Cantrell
Posts: 41
Joined: Fri Jul 13, 2012 7:28 am
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Cantrell »

+1 Well done sir. I will be using this. Player count is huge. 8)
Wahlamt
Posts: 7659
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: MXSLauncher | Server Launcher

Post by Wahlamt »

Is it player count currently, or last race?
Ascaped
Posts: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

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.
mx201
Posts: 1727
Joined: Sat Feb 06, 2016 5:05 pm
Team: Madcape
Location: London, Japan
Contact:

Re: MXSLauncher | Server Launcher

Post by mx201 »

Actually really cool props to you
Logan "Indiana Jones" Leitzel - 31st on the RF Gaming All Time Wins List
Image
Ascaped
Posts: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

mx201 wrote:Actually really cool props to you
Thank you!
broland278
Posts: 1249
Joined: Sat Dec 20, 2008 4:28 am
Team: MotoSavage
Location: Kansas
Contact:

Re: MXSLauncher | Server Launcher

Post by broland278 »

wow were is my credit... :wink:
Image
Ascaped
Posts: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

broland278 wrote:wow were is my credit... :wink:
Its in the github lol
broland278
Posts: 1249
Joined: Sat Dec 20, 2008 4:28 am
Team: MotoSavage
Location: Kansas
Contact:

Re: MXSLauncher | Server Launcher

Post by broland278 »

Ascaped wrote:
broland278 wrote:wow were is my credit... :wink:
Its in the github lol
who are you
Image
LKR47
Posts: 873
Joined: Fri Jan 18, 2013 4:26 am
Team: LCQ Studios
Location: McHenry, Illinois
Contact:

Re: MXSLauncher | Server Launcher

Post by LKR47 »

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: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

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?
LKR47
Posts: 873
Joined: Fri Jan 18, 2013 4:26 am
Team: LCQ Studios
Location: McHenry, Illinois
Contact:

Re: MXSLauncher | Server Launcher

Post by LKR47 »

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
Holt_619
Posts: 599
Joined: Tue Jan 24, 2012 5:29 am
Team: FlowTech Racing
Location: California
Contact:

Re: MXSLauncher | Server Launcher

Post by Holt_619 »

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: 983
Joined: Sun Mar 16, 2014 2:26 am
Location: Tennessee

Re: MXSLauncher | Server Launcher

Post by motocross_will »

Hey man nice background pic for your program! Would of been cool to know you were using mine! :D :D :D :D
Image
motocross_will
Posts: 983
Joined: Sun Mar 16, 2014 2:26 am
Location: Tennessee

Re: MXSLauncher | Server Launcher

Post by motocross_will »

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