Scripting
-
Paulo#33
- Posts: 370
- Joined: Mon Nov 14, 2011 11:33 pm
- Team: Me and God
Re: Scripting
EVERYTHING ABOUNT SCRIPTING ? What kind of scripting ? C , C+ , C++, C#, Java, JavaScript, .NET, Python, MS-DOS ?Logeyboy wrote:Could someone please teach me everything about scripting because i'm looking at hosting a series
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 !
-
Logeyboy
- Posts: 2718
- Joined: Mon Aug 06, 2012 8:17 am
- Team: Galaxy
- Location: Auckland, New Zealand
Re: Scripting
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
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'.
http://forum.mxsimulator.com/viewtopic.php?f=1&t=25399
Code: Select all
#mxserverscript
forcespec all
forceplay 1
broadcast Josh Vanderhoof
-
Logeyboy
- Posts: 2718
- Joined: Mon Aug 06, 2012 8:17 am
- Team: Galaxy
- Location: Auckland, New Zealand
Re: Scripting
So where is the file I put it in?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'.
http://forum.mxsimulator.com/viewtopic.php?f=1&t=25399Code: Select all
#mxserverscript forcespec all forceplay 1 broadcast Josh Vanderhoof
-
wheels1758
- Posts: 4132
- Joined: Tue Oct 21, 2008 5:20 pm
- Location: Washington, USA
- Contact:
Re: Scripting
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
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
C, C++, C# and Java are not scripting languages.Paulo#33 wrote:EVERYTHING ABOUNT SCRIPTING ? What kind of scripting ? C , C+ , C++, C#, Java, JavaScript, .NET, Python, MS-DOS ?Logeyboy wrote:Could someone please teach me everything about scripting because i'm looking at hosting a series
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+ 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
---
Everytime you post something, a stupid baby gets punched in the face. Please post, for the smart children.
MXS Cares
