coasterlover420
Members-
Posts
2,044 -
Joined
Everything posted by coasterlover420
-
Kings Island (KI) Discussion Thread
coasterlover420 replied to robbalvey's topic in Theme Parks, Roller Coasters, & Donkeys!
An armchair would be a more thrilling experience. -
[NL2] Slider
coasterlover420 replied to jcgoldcoast's topic in Roller Coaster Games, Models, and Other Randomness
Looks like you implemented a lot from my tutorial. How did it help?? However, I don't think this script works well with the coaster layout. The first time I opened the coaster, the randomizer sent each train to the right side, which meant since there are only 3 blocks on that side, the trains were sitting and waiting for a very long time. I'd take the random out of it unless you have the trains converge BEFORE the final brake run so that each side can run smoothly no matter what. -
Try defining the vector separately (in the appropriate places) private Vector3f vectorName = new Vector3f(0,0,0); private Vector3f vectorName2 = new Vector3f(0,0,0); ... vectorName = Vector3f(0,time2,0); vectorName2 = Vector3f(0,0-time2,0); ... sco1.setRotation(vectorName); sco2.setRotation(vectorName2); etc...
-
Be sure that in the block before the main brake run, you are defining that the main brake block is "approaching" otherwise it will stay in the "free" state the entire time. That seems to be what would be causing it. Can you post the block previous to this one (lift possibly?) if the problem persists?
-
If anyone can help, I have no experience with fixing null pointer exceptions and I have no idea what is causing this: Exception: NullPointerException at private void BlockScript.processLift() in line 1614 at public void BlockScript.onNextFrame(float) at public final void com.nolimitscoaster.Script.run() I've written two codes for the same coaster that are practically identical, yet one works while the other doesn't. I have the setup to the script ( public bool onInit() ) basically exactly the same between the two. Is there something that causes this to happen? The error says it's occuring during .onNextFrame and mine looks something like this: public void onNextFrame(float tick) { if (mode != FULL_MANUAL_MODE) { processLift(); processCoasting1(); processCoasting2(); processWaiting(); processPre2(); processPre1(); processStation2(); processStation1(); processTransfer(); } etc...... } All of the variables used in the processes are defined, I've triple checked that. What's odd is when I change the order in .onNextFrame, the error changes to this: Exception: NullPointerException at private void BlockScript.processCoasting1()in line 1678 at public void BlockScript.onNextFrame(float) at public final void com.nolimitscoaster.Script.run() ...which leads me to believe it is a problem with the initialization rather than with the processes...but I've triple checked the entire beginning of the code and everything matches with several codes I've written that work perfectly fine. Am I missing something? Is this a problem with the processes? I can't find any reason anything would end up null. All of the block names return true, the special track returns true, the coaster returns true, "private static bool checkAndSetInitialBlockState" returns true... If anyone can help I'd appreciate it greatly!