Board index Roller Coaster Games NoLimits Coaster 2 NoLimits Coaster 2 Scripting I have a hard time with attaching custom trains.

I have a hard time with attaching custom trains.

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


Posts: 6183
Points on hand: 483.00 Points
Bank: 19,590.00 Points
I keep getting this error message.

Exception: NullPointerException
at public bool Carattach.onInit() in line 157
at public final void com.nolimitscoaster.Script.run()

What does that even mean?

This is the jet coaster i am trying to have Kevens custom trains from his new Jetcoaster pack to attach to.

Screenshot 2017-11-05 14.39.41.png


I even tried adding a trigger named "Station" and making the coaster name "BigBoomCoaster" instead of "Big Boom Coaster" No luck.

herman116 User avatar
Premium Member
Premium Member

Posts: 636
Points on hand: 7,471.00 Points
Location: The Netherlands
A "NullPointerException" generally means that it hasn't found a certain object (like a coaster track, car, station or really anything else). Since this is a script to attach a custom train to an existing coaster, it's most likely that it couldn't find the coaster or the trains to which the car should attach to.

However I don't know the script so I don't know what exactly is going wrong here other than that it's not able to find an object.


Return to NoLimits Coaster 2 Scripting

 


  • Related topics
    Replies
    Views
    Last post