Skip to content
Pinned

The NoLimits 2 Mega Resource Thread - Guides, Tools, Scripts

176 to 200 of 341

phoenixwang posted on September 2nd, 2020

I‘m a little comfused that if I use my own car but not the car NL2 offered ,how could I change the view type like pursuit view or fly-by view?
thanks

In the right script, there is an POV postion in that script, use the same standard key as normal.

MrRC posted on September 2nd, 2020

In the right script, there is an POV postion in that script, use the same standard key as normal.

yeah I‘ve try but failed. Maybe I did something wrong. I used thecodemaster's script CCCreator to attach my own car to the car NL2 offer. then when I press E to change the view type to pursuit view ,it failed.So it means I need another script ?

Posted September 4, 2020· Edited September 4, 2020

Short answer yes. i can provide u with that script. Send me your PACKAGE file of your park and i will fix that for u. OR u give me your email adress (in a PM) where i send the scripts and u try to make it work for your self.

Make a station for your purpose, make a fake station in e.g. Sketchup, place them over each other and make the fake station the same dimensions a the original. Then go to station settings and choose the option for your purpose.

Does anyone know where I can find 2nd generation 4 across b&m trains and is it possible to for me to edit them to put the Orion logo on the front?

OrionBack posted on October 1st, 2020

Does anyone know where I can find 2nd generation 4 across b&m trains and is it possible to for me to edit them to put the Orion logo on the front?

yes there is a away to put a orion logo on it, u will need to download the blank textures car file here it will be on the first page, then u will need to extract the files to your park files, then once u have that in, u will need to edit it for me to edit it I use photoshop to edit and draw on it. And idk there is a 2nd generation 4 across B&M tains.

Coasterman0108 posted on October 2nd, 2020

yes there is a away to put a orion logo on it, u will need to download the blank textures car file here it will be on the first page, then u will need to extract the files to your park files, then once u have that in, u will need to edit it for me to edit it I use photoshop to edit and draw on it. And idk there is a 2nd generation 4 across B&M tains.

Yeah I know how to do the design thing, I’m just wondering about the trains as I heard codemaster designed some

Fairly new person here. I'm trying to make a sliding door. I need to download "bestdani instant animations" but i cannot find a link without steam. I am trying to make sliding door. Any help would be appreciated.

import com.nolimitscoaster.;
import nlvm.math3d.
;

public class DoorScript_Slide extends Script implements TrackTriggerListener
{
private SceneObject sco;
private SceneObjectElement leftDoor;

private static final int STATE_IDLE = 0;
private static final int STATE_OPENING = 1;
private static final int STATE_OPENING_REVERSED = 2;
private static final int STATE_CLOSING = 3;

// rotate up to 90 degrees
private static final float MAX_ANGLE = (float)(Math.PI / 0.5f);
private static final float SPEED = 5.0f;

private static final String OpenTriggerNamea = "Deur_1_Open";
private static final String CloseTriggerNamea = "Deur_1_Dicht";

// rotate around Y-Axis
private static final Vector3f AXIS = new Vector3f(1,0,0);

private int state;
private float rot;

private TrackTrigger OpenTriga;
private TrackTrigger CloseTriga;

private StaticSound doorSound;

private static final String scriptName = "DoorScript_Slide";

private final static String doorSoundFile = "Air.ogg";

public bool onInit()
{
sco = sim.getSceneObjectForEntityId(getParentEntityId());
if (sco == null)
{
//System.err.println(scriptName + ": the script is not part of a scene object");
return false;
}

leftDoor = sco.getElementForName("deur");
if (leftDoor == null)
{
  System.err.println(scriptName + ": element not found: Left");
  return false;
}   


doorSound = StaticSound.loadFromFile(doorSoundFile, 0);
if (doorSound == null)
{
  System.err.println(scriptName + ": could not load sound '" + doorSoundFile + "'");
  return false;
}

Vector3f pos = new Vector3f();

sco.getTranslation(pos);


doorSound.setPosition(pos);

// Setting to 'Local' will enable environmental (reverb) effects if this sound's position should be e.g. in a tunnel
doorSound.setEnvironmentMode(StaticSound.E_ENVMODE_LOCAL);

// These parameters affect the distance attenuation
doorSound.setDistanceParameters(2.0f, 0.8f);

final float range = 20;

// create triggers...
TrackPos trackPos = sim.findNearestCoasterTrack(pos, range);
if (trackPos == null)
{
  System.err.println(scriptName + ": no coaster found within a range of "+ range + " meters");
  return false;
}
else
{
  Coaster coaster = sim.getCoaster("Bermuda_Explorer");
 
  System.out.println(scriptName + ": Coaster found: " + coaster);

  System.out.println("Coaster Style is: " + coaster.getCoasterStyleId());


  // tell the triggers that they should call our onTrainEntering/onTrainLeaving methods
  // We have to implement the TrackTriggerListener interface
  
  OpenTriga = coaster.getTrackTrigger(OpenTriggerNamea);
  OpenTriga.addTrackTriggerListener(this);
  
  CloseTriga = coaster.getTrackTrigger(CloseTriggerNamea);
  CloseTriga.addTrackTriggerListener(this);
  
  
}

state = STATE_IDLE;
rot = 0;

return true;

}

public void onNextFrame(float fTickTime)
{
switch (state)
{
case STATE_IDLE:
// do nothing
break;
case STATE_OPENING:
{
rot += fTickTime * SPEED;
if (rot >= MAX_ANGLE)
{
rot = MAX_ANGLE;
state = STATE_IDLE;
}
leftDoor.setTranslation(new Vector3f(-rot, 0, 0));

  }
  break;
case STATE_OPENING_REVERSED:
  {
    rot -= fTickTime * SPEED;
    if (rot <= -MAX_ANGLE)
    {
      rot = -MAX_ANGLE;
      state = STATE_IDLE;
    }
    
  leftDoor.setTranslation(new Vector3f(-rot, 0, 0));
    
  
  }
  break;     
case STATE_CLOSING:
  {
    if (rot > 0)
    {
      rot -= fTickTime * SPEED;
      if (rot <= 0)
      {
        rot = 0;
        state = STATE_IDLE;
      }
    }
    else if (rot < 0)
    {
      rot += fTickTime * SPEED;
      if (rot >= 0)
      {
        rot = 0;
        state = STATE_IDLE;
      }
    }
    
  leftDoor.setTranslation(new Vector3f(-rot, 0, 0));
    
  
  }
  break;
}

}

/**

  • This method is part of the TrackTriggerListener Interface implementation

  • It will be called if the interface is registered for a trigger using the

  • addTrackTriggerListener method.
    */
    public void onTrainEntering(TrackTrigger trigger, Train train)
    {
    if (trigger == OpenTriga)
    {
    if (train.getSpeed() > 0)
    {
    state = STATE_OPENING;
    //doorSound.play();

    //printTrainPositionAndRotation(train);
    }
    }
    else if (trigger == CloseTriga)
    {
    if (train.getSpeed() < 0)
    {
    state = STATE_OPENING_REVERSED;
    //doorSound.play();
    }
    }
    }

/**

  • This method is part of the TrackTriggerListener Interface implementation
  • It will be called if the interface is registered for a trigger using the
  • addTrackTriggerListener method.
    */
    public void onTrainLeaving(TrackTrigger trigger, Train train)
    {
    if (trigger == OpenTriga)
    {
    if (train.getSpeed() < 0)
    {
    state = STATE_CLOSING;
    //doorSound.play();
    }
    }
    else if (trigger == CloseTriga)
    {
    if (train.getSpeed() > 0)
    {
    state = STATE_CLOSING;
    //doorSound.play();
    }
    }
    }

// This method demonstrates how to get the position and rotation of the first bogey
private void printTrainPositionAndRotation(Train train)
{
if (train.getBogieCount() > 0)
{
Vector3f pos = new Vector3f();
Vector3f front = new Vector3f();

  train.getBogieOrientationAndPosition(0, front, null, null, pos);

  System.out.println(scriptName + ": First bogey is at " + pos);

  double azimuthRad = Math.atan2(front.x, -front.z);
  double elevationRad = Math.atan2(front.y, Math.sqrt(front.x* front.x + front.z* front.z));

  System.out.println(scriptName + ": Yaw is " + Math.toDegrees(azimuthRad) + " degrees");
  System.out.println(scriptName + ": Pitch is " + Math.toDegrees(elevationRad) + " degrees");
}

}
}
Feel free to ask if u have any problems, some words are in Dutch Language

Posted November 9, 2020· Edited November 10, 2020

Hello everyone,
I have created Vekome STC trains for everyone to use.
The pack contains 2 objects, a zero car bogie, and normal cars.
The trains connect to the B&M Invert style (4 seats across) with a -1.5m heartline, the coaster has to be named "STC".
You have to add 1 more car in the properties tab than you want for a spot to connect the zero car to.
I have also provided a .blend file with a 10m long track section you can use for custom track with the array + curve method.
Download link: https://drive.google.com/file/d/1pDx5WH2UxwJHWwTeDjyyZWv_BAPKHGWK/view?usp=sharing

Posted November 10, 2020· Edited November 10, 2020

^ Looking great! idk if I'm the only one but the wheels of the "Bogie" object don't spin. All the other wheels on the car ar working perfect, it's just the zero car. And if you enter ride view in the right seats you are facing the wrong way

Just Jay posted on November 10th, 2020

^ Looking great! idk if I'm the only one but the wheels of the "Bogie" object don't spin. All the other wheels on the car ar working perfect, it's just the zero car. And if you enter ride view in the right seats you are facing the wrong way

Thanks for letting me know! I've just updated the package along with some other minor fixes, I highly suggest you redownload it with the new link.

Does anyone have some light package scene objects? Something similar to what is on Orion and Hangtime. I am looking for something that can crossfade slowly in between many colors that can be used for uplighting. I am also looking for something that can go in the track to light it up with a similar crossfade pattern. Any help would be much appreciated!! Thanks!

elight8680 posted on November 18th, 2020

It works great, thanks! Do you also have some custom made stations? I am looking for something that has a dual loading platform. Thank you!

U have to look in the exchange for a park / coaster with a dual station.
I don't have any.

176 to 200 of 341