mxserver-2019-11-17-1519

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

mxserver-2019-11-17-1519

Post by jlv »

Changes:
  • Added "redirectslot" command.
  • Added "ready_handler" to Javascript API.
  • Added "drop_time" to mxserver.get_number() variables.
  • Added erode voting to callvote script.
  • Added "emptyhook.js" example script.
mxserver-2019-11-17-1519.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.
Brendan.28
Posts: 26
Joined: Tue Apr 07, 2020 4:37 pm
Team: Privateer

Re: mxserver-2019-11-17-1519

Post by Brendan.28 »

How do you put erode on mxserver?
jlv
Site Admin
Posts: 14930
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: mxserver-2019-11-17-1519

Post by jlv »

It's in the readme file.
README.TXT wrote:--erode <amount>

Sets the erode amount. Can be between 0 and 100. Default is 0.
Example: --erode 20
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.
Wahlamt
Posts: 7934
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: mxserver-2019-11-17-1519

Post by Wahlamt »

Brendan.28 wrote:How do you put erode on mxserver?
If you're admin/marshal on the server:
server, erode 10
For erode 10
kawy949
Posts: 977
Joined: Sat Feb 11, 2012 11:33 pm
Location: UK
Contact:

Re: mxserver-2019-11-17-1519

Post by kawy949 »

Hey JLV,

Hope all are well?

I'd like to be able to get a track list from an external source, posting to the UDP port /listtracks returns nothing, and there is nothing in the server logs. Is there any chance of being able to return the servers internal list of tracks? Seeing as server,addtrack doesn't add this to the serverargs otherwise we would just parse this etc.

Any thoughts would be appreciated.
jlv
Site Admin
Posts: 14930
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: mxserver-2019-11-17-1519

Post by jlv »

You have to use javascript. You can either hook the addtrack command or use mxserver.getstring("tracklist", index) to enumerate the tracks. Use mxserver.string_to_file to write the list out to a file.
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.
kawy949
Posts: 977
Joined: Sat Feb 11, 2012 11:33 pm
Location: UK
Contact:

Re: mxserver-2019-11-17-1519

Post by kawy949 »

jlv wrote:You have to use javascript. You can either hook the addtrack command or use mxserver.getstring("tracklist", index) to enumerate the tracks. Use mxserver.string_to_file to write the list out to a file.
That's great, thanks JLV - I wasn't in the know (been a while) with regards to the JS API so thanks for that :D
Post Reply