

Returns a MultiSection that includes all Sections of a coaster named after sectionId GetFromCoaster(Coaster coaster, String sectionId) Returns all Sections the Sound is bound to in an Array Returns true if the specified train is on any of the Sections the Sound is bound to Currently the MultiSection-Class has the following functions: Function Access it any time by calling this.multisection. For this Reason I've provided a MultiSection object which your Sound-Class automatically implements. Since Section Names in NoLimits 2 are unique you still might want to have your sound be applied to multiple sections. This gets called when your sound stops playing. If you want your sound to fade in you can do that in here. This gets called when your sound starts playing. If your sound pitch depends on the speed you can configure stuff in here. Public void onFrame(StaticSound sound, Train train) Stuff like Distance Parameters go in here. The sound will only play as long as this method returns true. Public bool shouldPlay(Coaster coaster, Train train) Super(sim, coaster, Sections.BM_ROAR) // Resource ID goes in here Public BMRoar(Simulator sim, Coaster coaster) // The constructor of your Sound-Class To make the implementation significantly easier I provided a TrackedSound class which provides 4 methods: As a result create a new class after the following naming scheme. Now we get into the actual Scripting! Hooray!Įach sound has it's own. Public static final String BM_ROAR = "bm_roar" Adding the Sound-Class Make sure the String is public, static and final is we can access it globally. As for yours add a new String which puts the id you also registered in the 2script into a variable. Every sound also has it's id registered in there too so we prevent typos when accessing the resource several times programmatically later on. The id is unique, so watch out if the sound you're trying to add already exists.įurthermore take a look into the src/lib/vm file. We do this inside the 2script file located in the root folder. In order to use it in the script later on we have to assign a resource id to the sound. In my case the file would go into assets/bm/roar.ogg (Can't use & in a folder name so just leave it out if you have the same problem) Registering it If you're sound is not clearly bound to a manufacturer you can put it in the misc (miscallenous) folder. Normally we distinguish between sounds by manufacturer which also have there own folder inside the assets folder. Adding the sound fileĪll sounds go into the assets folder. Setupįirst thing you have to do is to fork and clone this repository. There are just some things to keep in mind.įor this tutorial I will use a B&M Roar sound as an example. DevelopersĪdding a sound yourself isn't hard either as we provide a small API. Simply post a new comment providing the information named above and we will be sure to check it out. There is alternatively a discussion thread on NoLimits Central ( Link). This is the new place after Nolimits-Exchange shut down After you provided the information named above in the description send it. This is the fastest way but you have to have a GitHub account to create an Issue.Ĭlick here and select the sound submission label.
LUNATIC FOR NO LIMITS COASTER 2 HOW TO
You found a sound or recorded one yourself which you want to add? See below how to get it into the game. General Purpose LSM Sound as found on Premier Rides Launch Coasters

Vintage Sound for normal and fast Lifthills. Roar suitable for most steel coaster types Note: Global sounds like bm_roar also have to be appended by _1 due to the way this script works, even though you'd only add it once per coaster anyways.įunky Lifthill Sound for sketchy Jet Co rsters In this case we name the first lift-hill misc_old_lift_1, the second misc_old_lift_2 and so on. Let's say we have a Mine Train coaster that has 3 Lifthills and we want each lift-hill to have the misc_old_lift sound. To support having a sound on multiple sections every section-name is appended by an underscore and a number starting at 1 going up with each additional section: _ You can now add any sound by naming sections. Note: It is not needed to change the coaster's operation mode to scripted.Ĭoaster Properties -> Add from File -> 2script This is an OpenSource Project for rollercoaster related Sounds to add to the realism of NoLimits 2 How to useĭownload the latest release and copy it into your park directory.Īdd the Script to a coaster.
