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

Post by churchy525 »

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

Post by cedric_v_r »

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

Post by Dark Flare »

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.
fuzzynachos10
Posts: 4
Joined: Sat Feb 09, 2019 6:17 pm
Team: Privateer
Contact:

Re: Scripts, Software and Other Stuff

Post by fuzzynachos10 »

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

Post by x1xderrick »

Is there a SAF creator for Linux?
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Scripts, Software and Other Stuff

Post by Wahlamt »

x1xderrick wrote:Is there a SAF creator for Linux?
Yep, here.
ddmx
Posts: 5373
Joined: Sun Apr 20, 2008 3:36 pm
Location: Midland MI

Re: Scripts, Software and Other Stuff

Post by ddmx »

Could someone post a list of all available scripting functions?

Thanks
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Scripts, Software and Other Stuff

Post by jlv »

ddmx wrote: Fri Mar 19, 2021 6:46 pm Could someone post a list of all available scripting functions?

Thanks
There's no documentation for the track scripts aside from the examples I've posted. I'll try to write something up now.
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.
Trevdawg197
Posts: 70
Joined: Fri Apr 13, 2018 4:17 am
Team: OCMX Racing

Re: Scripts, Software and Other Stuff

Post by Trevdawg197 »

Has anyone looked into creating a different interface or overlay for the track cameras? Even maybe bringing in a software like ATVO used in iRacing would maybe make the process easier? Idk though since I have no idea how tf to script or any of that lmao. Just throwing my hat into the ring!
Image
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Scripts, Software and Other Stuff

Post by Wahlamt »

Trevdawg197 wrote: Sat Apr 22, 2023 6:12 am Has anyone looked into creating a different interface or overlay for the track cameras? Even maybe bringing in a software like ATVO used in iRacing would maybe make the process easier? Idk though since I have no idea how tf to script or any of that lmao. Just throwing my hat into the ring!
Pretty sure this isn't supported, but JLV's said that he want to open scripting up to more things, such as custom HUD's etc.
Fraser
Posts: 1
Joined: Tue Sep 12, 2023 3:10 pm
Team: Privateer

Re: Scripts, Software and Other Stuff

Post by Fraser »

hi im new i have downloaded tracks and gear put them in my mx simulator folder but they dont show in the game could someone help
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Scripts, Software and Other Stuff

Post by jlv »

Fraser wrote: Tue Sep 12, 2023 3:26 pm hi im new i have downloaded tracks and gear put them in my mx simulator folder but they dont show in the game could someone help
There are some instructions for installing tracks here. For 7z or rar compressed tracks you'll need to install 7-zip first.
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.
Post Reply