-
Notifications
You must be signed in to change notification settings - Fork 4
1. Getting Started
Let´s getting started with the NoLimitsFramework. In the first step, we have to prepare our script files properly. I guess, you have downloaded the archive of this git project. But if you have a github account, I would suggest, that you make a clone on you hard disk to update newest commitments. This project is still in beta, that means, further changes might not work with older versions. So just use this framework with care. I try to keep changes backward compatible. But lets move on.
Proceed as normal and create a new park or use an existing one. Just create a folder in your park folder. I usually label my folder CoasterScripts but feel free to chose another label for your coaster scripts. This gives you a good abstraction of your assets.
Now copy the com folder, which you can find in the root directory of the NoLimitsFramework into your CoasterScripts folder.
Just create a new script file inside CoasterScripts for your coaster. I usually use the coaster name as script name. For example if your coaster is labeled Expedition Geforce then use something like ExpeditionGeforce.nlvm.
Our new coaster script have to use NoLimitsFramework. I have plenty of script files for certain tasks, but com.nolimitsframework.FrameworkScript class has to be extended, to initialize NoLimitsFramework properly. In addition you have to implement the public init() method to perform your construction stuff. There is another important thing. Your class name has to be match with the filename. ExpeditionGeforce.nlvm turns to ExpeditionGeforce.
I guess it makes sense to give a skeleton code for you guys.
import com.nolimitsframework.*;
public class ExpeditionGeforce extends FrameworkScript {
public void init() {
}
}
We have to attach our script to our coaster. Just open your Coaster Properties and select Scripts and press Add. Its important to select first your class path. In out case we have to select the CoasterScripts folder and select ExepeditionGeforce.nlvm (hint: Of course select your coaster script, only in this wiki series I am using ExpeditionGeforce to represent my "coaster") as Script Class.
The first steps to getting started are accomplished. What did we learned?
- We learned how to prepare the script files
- We learned how to create a coaster script based on NoLimitsFramework
We didn´t approached something visible. Just read the other wiki entires for certain "tasks".