MXSLauncher | Server Launcher

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

Re: MXSLauncher | Server Launcher

Postby broland278 » Wed Dec 05, 2018 3:38 pm

I chose the background, thought it looked good :)
Image

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

Re: MXSLauncher | Server Launcher

Postby Ascaped » Thu Dec 06, 2018 4:28 am

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.

User avatar
SavFinesseCo.
Posts: 6
Joined: Fri Oct 19, 2018 8:05 pm
Contact:

Re: MXSLauncher | Server Launcher

Postby SavFinesseCo. » Fri Dec 07, 2018 10:28 pm

Something like this is long overdue. Great job!
SavageFinesseCo.
Sponsor in development: https://savfinesseco.com/
Contact: SavFinesseCo@Gmail.com
Image

User avatar
Jakob Hubbard
Posts: 579
Joined: Fri Nov 24, 2017 3:16 am
Team: BPC
Location: Cold

Re: MXSLauncher | Server Launcher

Postby Jakob Hubbard » Fri Dec 07, 2018 10:47 pm

rip, can't use it because my anti-virus blocked it from accessing the internet, aka the server index.

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

Re: MXSLauncher | Server Launcher

Postby Wahlamt » Fri Dec 07, 2018 10:49 pm

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?

User avatar
Jakob Hubbard
Posts: 579
Joined: Fri Nov 24, 2017 3:16 am
Team: BPC
Location: Cold

Re: MXSLauncher | Server Launcher

Postby Jakob Hubbard » Fri Dec 07, 2018 10:53 pm

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


Return to “General Discussion”

Who is online

Users browsing this forum: bcrase14, Wahlamt and 9 guests