Scripting

Post anything about MX Simulator here. Please. I'm begging you.
Post Reply
Logeyboy
Posts: 2718
Joined: Mon Aug 06, 2012 8:17 am
Team: Galaxy
Location: Auckland, New Zealand

Scripting

Post by Logeyboy »

Could someone please teach me everything about scripting because i'm looking at hosting a series
Paulo#33
Posts: 370
Joined: Mon Nov 14, 2011 11:33 pm
Team: Me and God

Re: Scripting

Post by Paulo#33 »

Logeyboy wrote:Could someone please teach me everything about scripting because i'm looking at hosting a series
EVERYTHING ABOUNT SCRIPTING ? What kind of scripting ? C , C+ , C++, C#, Java, JavaScript, .NET, Python, MS-DOS ?

Dude, if you want teach scripting, first you will choose a language for your script... when you choosen, try search on Google about the language !
Hello i'm MotocrossPlays Channel
Image
Check out and subscribe
http://youtube.com/user/pingo33
Image
Logeyboy
Posts: 2718
Joined: Mon Aug 06, 2012 8:17 am
Team: Galaxy
Location: Auckland, New Zealand

Re: Scripting

Post by Logeyboy »

It's for like setting things up in the server for events. I don't know what it is though
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Scripting

Post by wheels1758 »

If you're looking to write .mxs files, look at the README.txt that comes with the server download. That lists all the commands that are used within the server. Each script must begin with #mxserverscript (on the first line), then contain the commands you wish to execute after that. For example, running the following script would force everyone to be spectators, set UID 1 as a racer, then broadcast 'Josh Vanderhoof'.

Code: Select all

#mxserverscript
forcespec all
forceplay 1
broadcast Josh Vanderhoof
http://forum.mxsimulator.com/viewtopic.php?f=1&t=25399
Logeyboy
Posts: 2718
Joined: Mon Aug 06, 2012 8:17 am
Team: Galaxy
Location: Auckland, New Zealand

Re: Scripting

Post by Logeyboy »

wheels1758 wrote:If you're looking to write .mxs files, look at the README.txt that comes with the server download. That lists all the commands that are used within the server. Each script must begin with #mxserverscript (on the first line), then contain the commands you wish to execute after that. For example, running the following script would force everyone to be spectators, set UID 1 as a racer, then broadcast 'Josh Vanderhoof'.

Code: Select all

#mxserverscript
forcespec all
forceplay 1
broadcast Josh Vanderhoof
http://forum.mxsimulator.com/viewtopic.php?f=1&t=25399
So where is the file I put it in?
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Scripting

Post by wheels1758 »

It has to be accessible by the server. In your mxserver folder if you're running the server from your computer.
Logeyboy
Posts: 2718
Joined: Mon Aug 06, 2012 8:17 am
Team: Galaxy
Location: Auckland, New Zealand

Re: Scripting

Post by Logeyboy »

so if i want to do a race say 20 people do i have to do it all 1 by 1 and then wat would i put for the spec part
Servatis
Posts: 1103
Joined: Tue Aug 18, 2009 5:10 pm
Location: The Netherlands

Re: Scripting

Post by Servatis »

Paulo#33 wrote:
Logeyboy wrote:Could someone please teach me everything about scripting because i'm looking at hosting a series
EVERYTHING ABOUNT SCRIPTING ? What kind of scripting ? C , C+ , C++, C#, Java, JavaScript, .NET, Python, MS-DOS ?

Dude, if you want teach scripting, first you will choose a language for your script... when you choosen, try search on Google about the language !
C, C++, C# and Java are not scripting languages.
C+ doesn't exist, and MS-DOS is an operating system...

don't give advice if you don't understand the question or what you percieve to be the subject.

on topic: have you looked at this. other than that I've never tried setting up a complicated MXS Server
MXS Garage 0.9 download here

---

Everytime you post something, a stupid baby gets punched in the face. Please post, for the smart children.

MXS Cares
Post Reply