Board index Roller Coaster Games NoLimits Coaster 2 NoLimits Coaster 2 Scripting Track switching help

Track switching help

Post your Nolimits 2 scripts here! Also any discussion regarding scription for NoLimits Coaster 2 should be placed in this forum

Post February 23rd, 2014, 3:51 pm

Posts: 42
Points on hand: 837.00 Points
Heys guys will someone be able to help me out I have a script generator and have made a ride, there is a backwards section but now I want the car to face forward again but it wont allow me to connect the track switches because of the back section not being connected.



Image Insert:
Image
235.44 KB

Post February 23rd, 2014, 4:20 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
That's a Merge Switch, a Split Switch will have the connectors reversed.

Post February 23rd, 2014, 4:34 pm

Posts: 42
Points on hand: 837.00 Points
Originally posted by BoboMunkee

That's a Merge Switch, a Split Switch will have the connectors reversed.


Thank you im still getting my head round the track switches, also I have my script but where do I put the file to open it up in the editor?

Post February 23rd, 2014, 4:42 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
There is no in game script editor, you have to use a stand alone editor like Notepad.

You attach to your coaster at Coaster->Coaster Properties->Scripts->Add from file

Post February 23rd, 2014, 4:47 pm

Posts: 42
Points on hand: 837.00 Points
Originally posted by BoboMunkee

There is no in game script editor, you have to use a stand alone editor like Notepad.

You attach to your coaster at Coaster->Coaster Properties->Scripts->Add from file


Yeah I know that I have saved the note as .NLVM just cant find it though when it open it up [|)]

Post February 23rd, 2014, 5:06 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
Are you looking to add the .NLVM file to your coaster? The file needs to be in your park folder then add it to your coaster by using... Coaster->Coaster Properties->Scripts->Add->Script Class.

Post February 23rd, 2014, 5:11 pm

Posts: 42
Points on hand: 837.00 Points
Originally posted by BoboMunkee

Are you looking to add the .NLVM file to your coaster? The file needs to be in your park folder then add it to your coaster by using... Coaster->Coaster Properties->Scripts->Add->Script Class.


This is where the scripts file is now but because I haven't yet finished the coaster like supports and tweaks it doesn't appear the the park folder

Image Insert:
Image
234.32 KB

Post February 23rd, 2014, 5:23 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
It does appear, but the file doesn't have a name so it appears blank. .nlvm is just the extension.

Open the .nlvm file in an editor and look for a line like this near the top of the file

"public class <class name> extends Script implements BlockSystemController"

<class name> will be the name of your class. That's what you need to name the file: <class name>.nlvm

Here is an example, my class is named SplitTrack.

"public class SplitTrack extends Script implements BlockSystemController"

and my file name is SplitTrack.nlvm

Post February 23rd, 2014, 5:42 pm

Posts: 42
Points on hand: 837.00 Points
Right I have named the script as intamin my name for the park (for now) I go to coaster properties then scripts and add then my documents>nolimits2>intamin> stillno file there.

Post February 23rd, 2014, 5:59 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
Unless the name of your class is also "intamin", your going to get an error. I told you how it must be named. It won't work if you don't do it that way. Go to Help->Scripting API->The Basics->Class Files from the main screen to read what the developers say about it.

Second. You probably deleted the .nlvm extension when you named it, that's why it's not showing up.

Post February 23rd, 2014, 6:18 pm

Posts: 42
Points on hand: 837.00 Points
Haven't got a clue what im doing please could you post a point to point in order what to do please :)

Post February 23rd, 2014, 6:27 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
I already did that. I even gave you an example to follow.

Originally posted by BoboMunkee


Open the .nlvm file in an editor and look for a line like this near the top of the file

"public class <class name> extends Script implements BlockSystemController"

<class name> will be the name of your class. That's what you need to name the file: <class name>.nlvm

Here is an example, my class is named SplitTrack.

"public class SplitTrack extends Script implements BlockSystemController"

and my file name is SplitTrack.nlvm



Once you have that done, add it to your coaster.

Post February 23rd, 2014, 7:05 pm

Posts: 42
Points on hand: 837.00 Points
Finally! I edited the script back in the editor as before I was just renaming it in the notepad, thankyou


Return to NoLimits Coaster 2 Scripting

 


  • Related topics
    Replies
    Views
    Last post