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
Offline
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
Offline
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.

Sponsors
Did you know? Active community members enjoy an ad-free experience! Learn how ›
  • Rate 80%+ of your downloaded tracks (min 40 downloads)
  • Post at least 10 forum topics or replies in the last 90 days
  • Upload a track in the last 90 days
  • Earn 50,000+ points with a 10+ year account
  • Or become a Premium member

Return to NoLimits Coaster 2 Scripting

 


  • Related topics
    Replies
    Views
    Last post