Scripts, Software and Other Stuff

Post anything about MX Simulator here. Please. I'm begging you.
churchy525
Crushed Dissenter
Posts: 352
Joined: Sat Oct 01, 2011 7:20 pm
Team: Decal Works Racing
Location: clinton, ontario, canada

Re: Scripts, Software and Other Stuff

Postby churchy525 » Fri Jun 15, 2012 6:50 pm

i dont understand the demosplice thing. can somebody explain how i can do it

cedric_v_r
Posts: 4
Joined: Fri Aug 23, 2013 5:33 pm
Team: Privateer

Re: Scripts, Software and Other Stuff

Postby cedric_v_r » Thu Sep 12, 2013 5:40 pm

hey i'm new and i was wondering how i can add these scripts to a track or what ever where they are suposed to be.
thanks alot :)

Dark Flare
Posts: 1
Joined: Thu Feb 06, 2014 12:28 pm
Team: Privateer

Re: Scripts, Software and Other Stuff

Postby Dark Flare » Thu Feb 06, 2014 12:31 pm

I got pretty sick of having to type in Trackinfo additions manually for the serverargs.txt, so this will create an entry for every track you have in that folder. It's quick and dirty and you'll have to edit the params at the top yourself (and add any you want in the same style). Works fine on Linux, not tested on Windows.

Code: Select all

import os
import sys
from os.path import join, getsize

trackinfos = []
filepath = "FULL PATH TO YOUR MXS TRACKINFO FOLDER"

for dirpath, dirnames, files in os.walk(filepath):
   for fil in files:
      if fil.endswith('.trackinfo'):
         trackinfos.append(fil)

f = open('serverargs.txt', 'w')
f.write('--port 19800\n')
f.write('--max-clients 11\n')
f.write('--greeting "PUT YOUR GREETING HERE"\n')
f.write('--results-file results.txt\n')
f.write('--track-interval 15\n')
f.write('--laps 5\n')
f.write('--no-arcade\n')
f.write('--admin YOUR ADMIN UID\n')
for track in trackinfos:
   f.write('trackinfo/' + track + '\n')

f.close()


Save as generateserverargs.py or whatever inside your MXServer folder. serverargs.txt outputs to the same folder as the one the script is run from.

User avatar
fuzzynachos10
Posts: 4
Joined: Sat Feb 09, 2019 6:17 pm
Team: Privateer
Contact:

Re: Scripts, Software and Other Stuff

Postby fuzzynachos10 » Sun Apr 07, 2019 6:41 pm

how do i change the icon for my on screen gear shifter?
:D :D

x1xderrick
Posts: 1
Joined: Wed Apr 03, 2019 2:02 am

Re: Scripts, Software and Other Stuff

Postby x1xderrick » Mon Apr 29, 2019 3:55 am

Is there a SAF creator for Linux?


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests