Page 1 of 4

mxserver-2012-10-02 (updated 2012-10-12)

Posted: Tue Oct 02, 2012 11:07 pm
by jlv
New features:
  • Improved bit rate control.
  • "listplayers" now has optional search term.
  • New commands for ignoring specs or everyone while racing.
  • New commands for adding/removing tracks.
  • New commands for adding/removing marshals
  • Supports "/sendfile" from newer clients.
  • Second kick now ends connection immediately.
2012-10-12 update: fixed addtrack bug

mxserver-2012-10-12.zip

Tutorial on how to run a server, compiled by yzmxer608 located here.

Re: mxserver-2012-10-02

Posted: Tue Oct 02, 2012 11:41 pm
by yzmxer608
Thanks JLV! What do you mean by second kick now ends connection immediately, does the first kick (or what it did before) have a timer or something on it before the person was disconnected?

Re: mxserver-2012-10-02

Posted: Tue Oct 02, 2012 11:42 pm
by 760Liam
Sweet! I like the sound of this new track add command! :D

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 1:11 am
by ShackAttack12
jlv wrote:New features:
  • [*]Supports "/sendfile" from newer clients.
What is this used for?

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 1:22 am
by yzmxer608
Scripts I think.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 1:28 am
by Phathry25
Scripts and trackinfo files.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 2:56 am
by Stormz
THANK YOU JLV!

I've wanted the '/sendfile' command for my server for a while now :D

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 3:49 am
by jlv
yzmxer608 wrote:Thanks JLV! What do you mean by second kick now ends connection immediately, does the first kick (or what it did before) have a timer or something on it before the person was disconnected?
The first kick tells the client to disconnect and waits for an acknowledgement. The second one just drops the client. So if there's a lagged out player holding things up the second kick will remove him no matter what.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 3:52 am
by checkerz
So /sendfile is for trackinfo, and adding track functionality is there, so how exactly are these functions used from in game? I'm fine with reading it wherever it is if it is somewhere, and if it's in the readme and I just need to download you may call me names.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 3:58 am
by Phathry25
jlv wrote:server,addtrack <time> <laps> <change interval> <trackinfo>
Adds a new track with the given time, laps and track change interval.
The times are in minutes.

server,removetrack <track number>
Removes the specified track.

server,addmarshal <uid>
Adds a track marshal.

server,removemarshal <uid>
Removes a track marshal.

server,clearmarshals
Removes all track marshals

server,listmarshals
Lists the current track marshals.

To send a file, use the new snapshot, make a folder named "outgoing" in your personal folder, put your file there and type "/sendfile myscipt.mxs" to send it.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 4:10 am
by jlv
It's in the README.TXT, but not in step by step form.

On the server, make a folder to hold the uploaded files. I'll assume you named it "files".
Start your server with "--sendfile-prefix files/". The trailing / is required.
On your PC, make a folder in the install or personal folder named "outgoing". Put the files you want to send there.
In the game connect to the server and type "/sendfile mytrack.trackinfo". On the server, the "mytrack.trackinfo" should now be in "files".
Add the track with "server, addtrack 30 2 100000 files/mytrack.trackinfo".

The filenames are restricted to alphanumeric characters, underscores and periods.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 11:25 am
by kawy949
JLV, would you need to restart the game to acknowledge that the files are within the files folder in your personal folder or can you tab out, place file and then use the sendfile command?

Thanks.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 12:27 pm
by Stormz
kawy949 wrote:JLV, would you need to restart the game to acknowledge that the files are within the files folder in your personal folder or can you tab out, place file and then use the sendfile command?

Thanks.
You can tab out, put the file on the outgoing folder, and upload it. Just make sure it isn't named the same as another script! That was the problem we had for the lites am races last week at LRS! I was just trying to overwrite old scripts and it wasn't working.

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 2:22 pm
by YzJarne_196
The readme says: Then run the server like this: mxserver --args-file serverargs.txt.
dafuq is this do we have to type it somewhere?

Re: mxserver-2012-10-02

Posted: Wed Oct 03, 2012 2:40 pm
by yzmxer608