Some handy scripts

All about making tracks for MX Simulator
jlv
Site Admin
Posts: 14954
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Some handy scripts

Post by jlv »

The demo splice script has been updated. It defaults to the new format. If you need to splice an old demo put --v4 on the command line.
mulishatroop88
Posts: 749
Joined: Mon Mar 17, 2008 6:47 pm
Team: Privateer
Location: Lake Havasu AZ

Re: Some handy scripts

Post by mulishatroop88 »

ok super noob at this stuff

everytime i type python i get
traceback<most recent call last>:
File "<stdin>" , line 1 , in module

etc

whatsup? i edited the path and everything

my path looks like this

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;c:\python30;c:\python30\scripts\
and yes i have python 3.0 not 2.5
WHOA THERE
jlv
Site Admin
Posts: 14954
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Some handy scripts

Post by jlv »

You don't want to start python by itself. You want to give it the script to run on the command line (e.g. "python demosplice.py --sync demo1.mxdemo demo2.mxdemo exporteddemo.mxdemo").
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Some handy scripts

Post by wheels1758 »

What should the directory look like in the demosplice.py file?

Thanks.
DankeKTM21
Posts: 1070
Joined: Mon Dec 24, 2007 5:10 pm
Team: Danke KTM
Location: chile
Contact:

Re: Some handy scripts

Post by DankeKTM21 »

cant use phyton :S
Image
Kawasakis wrote:Hah yeah, because basketball and football requires just one ball - two balls just only for motocross riders haha
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Some handy scripts

Post by DJ99X »

Thanks for letting us know that
DannyBoy
Posts: 1016
Joined: Sun Jun 29, 2008 7:47 am

Re: Some handy scripts

Post by DannyBoy »

WOWW took me long enough but i finally figured out splicing -_-
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Some handy scripts

Post by wheels1758 »

Quick question for JLV: If a person changes their physics from sim to arcade in the middle of a demo, is there something unique that will show up in the .mxdemo file when you open it with Notepad++? I was just wondering, i think it would be an easy way to find out if somebody is cheating. Not that i am saying people would cheat, but if you could just open it up and have the computer search for a certain thing, that would be nice. Thanks.
Also, what is the makeup of the first line in Notepad++ when you open a .mxdemo file?
MX05 1 0 3 1859 <-- [no idea] [number of riders] [no idea] [number of laps] [no idea]? Something like that?
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Some handy scripts

Post by DJ99X »

Also, what is the makeup of the first line in Notepad++ when you open a .mxdemo file?
MX05 1 0 3 1859 <-- [no idea] [number of riders] [no idea] [number of laps] [no idea]? Something like that?
-Number that the game reads to see if its compatible with the snapshot playing it
-Riders
-Time of race
-Laps
-Time the gate drops
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Some handy scripts

Post by wheels1758 »

Is there a reason the gate would drop at a different time for different demos? And does --sync make all the gates drop at the same time when splicing? I guess that would make sense.
Voutare
Posts: 4891
Joined: Sun Jan 13, 2008 5:22 am
Team: Privateer
Location: Southern Vermont
Contact:

Re: Some handy scripts

Post by Voutare »

wheels1758 wrote:Is there a reason the gate would drop at a different time for different demos? And does --sync make all the gates drop at the same time when splicing? I guess that would make sense.

The gate drops at different times in game, so you can't jump it (Like MvA, you know, everyone knows when it's going to drop). and --sync makes them all go at the same time.
Image
DankeKTM21
Posts: 1070
Joined: Mon Dec 24, 2007 5:10 pm
Team: Danke KTM
Location: chile
Contact:

Re: Some handy scripts

Post by DankeKTM21 »

so we always need to use --sync??
Image
Kawasakis wrote:Hah yeah, because basketball and football requires just one ball - two balls just only for motocross riders haha
Voutare
Posts: 4891
Joined: Sun Jan 13, 2008 5:22 am
Team: Privateer
Location: Southern Vermont
Contact:

Re: Some handy scripts

Post by Voutare »

Yes. Unless you want everyone starting 5 seconds from each other.
Image
frederick
Posts: 2424
Joined: Fri Mar 21, 2008 5:05 pm
Team: Adept
Location: Sweden

Re: Some handy scripts

Post by frederick »

Wait, does the gate drop at different times? I count the 30second board guys footsteps and its always the same.
Image
yomo
Posts: 1930
Joined: Tue Apr 22, 2008 10:00 am

Re: Some handy scripts

Post by yomo »

mulishatroop88 wrote:
everytime i type python i get
traceback<most recent call last>:
File "<stdin>" , line 1 , in module

I get the same thing happening

I've downloaded python and installed it (version 3.0)

Followed the video and added in my path thingo ;C:\Python30;C:\Python30\Scripts
I then created a new folder in C:\Python30 called Scripts
I put the demo splice script into the Script folder
I opened a command prompt
C:\Users\Jordan> python demosplice.py --sync yomolocust.mxdemo exporteddemo.mxdemo

Also when i just type in "python" it says... 'python' is not recognized as an internal or external command, operable program or batch.

thanks for any help
Image
Post Reply