MXSLauncher | Server Launcher

Post anything about MX Simulator here. Please. I'm begging you.
broland278
Posts: 1252
Joined: Sat Dec 20, 2008 4:28 am
Team: MotoSavage
Location: Kansas
Contact:

Re: MXSLauncher | Server Launcher

Post by broland278 »

I chose the background, thought it looked good :)
Image
Ascaped
Posts: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

Holt_619 wrote:
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!
Thanks man! And thank you for the help when I had a question.
SavFinesseCo.
Posts: 6
Joined: Fri Oct 19, 2018 8:05 pm

Re: MXSLauncher | Server Launcher

Post by SavFinesseCo. »

Something like this is long overdue. Great job!
Jakob Hubbard
Posts: 1147
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: MXSLauncher | Server Launcher

Post by Jakob Hubbard »

rip, can't use it because my anti-virus blocked it from accessing the internet, aka the server index.
Image
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: MXSLauncher | Server Launcher

Post by Wahlamt »

Jakob Hubbard wrote:rip, can't use it because my anti-virus blocked it from accessing the internet, aka the server index.
Just whitelist it?
Jakob Hubbard
Posts: 1147
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: MXSLauncher | Server Launcher

Post by Jakob Hubbard »

Wahlamt wrote:
Jakob Hubbard wrote:rip, can't use it because my anti-virus blocked it from accessing the internet, aka the server index.
Just whitelist it?
ended up figuring it out, the anti-virus I have was just confusing af
Image
Ascaped
Posts: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

If you guys have any feature request I can now take them...
Ascaped
Posts: 15
Joined: Sun Feb 12, 2017 6:23 pm
Team: Privateer

Re: MXSLauncher | Server Launcher

Post by Ascaped »

Anyone interested in an overhaul or would it be a waste of my time?
Post Reply