What's new

NL Tutorial - Custom Environments

Antinos

Slut for Spinners
Many people like to go all out with their NL rides. Usually, fabricating the full experience of one's ride requires building a new environment custom to the ride. I will show how to build or modify an environment in this tutorial.

Building an environment is not as hard as one would imagine. If one locates the NL root folder on their computer and finds an environment, they can right click it and open it with Notepad. In the Notepad window, the user will see a few lines of text. Usually, there will be some comments for a name, date, and description. The rest of the text will be the code for the environment. The code follows a simple variable = value format. Here's the code for Canyonrunner:

;NoLimits Environment
;Created with: NL-Env-Editor v1.0 ©2002 by Tia

;Creation Date: 20.04.2003 - 20:21:09

sim.background.texture.enabled=false
sim.clouds.enabled=false
sim.clouds.visible=false
sim.ground.texture.path=Environments\Canyonrunner\Canyonrunner-Ground.jpg
sim.skyboxfront.texture.path=Environments\Canyonrunner\Canyonrunner-North.jpg
sim.skyboxback.texture.path=Environments\Canyonrunner\Canyonrunner-South.jpg
sim.skyboxleft.texture.path=Environments\Canyonrunner\Canyonrunner-East.jpg
sim.skyboxright.texture.path=Environments\Canyonrunner\Canyonrunner-West.jpg
sim.skyboxup.texture.path=Environments\Canyonrunner\Canyonrunner-Sky.jpg
sim.skyboxdown.texture.path=Environments\Canyonrunner\Canyonrunner-Ground.jpg
sim.tree1.texture.path=Environments\Canyonrunner\tree1.tga
sim.tree2.texture.path=Environments\Canyonrunner\tree2.tga
sim.tree3.texture.path=Environments\Canyonrunner\tree3.tga
sim.tree1.sizex=5
sim.tree1.sizey=7
sim.tree2.sizex=8
sim.tree2.sizey=10
sim.tree3.sizex=2
sim.tree3.sizey=2
sim.sun.pos.alpha=21,0
sim.sun.pos.beta=0,0

To build or modify the environment, one must add, remove, or change code until desired. There are three types of code:

-Numeric: enter a numeric value to change a setting in the environment.
-Boolean: state whether a variable is true or false.
-Path: locates a file on one's computer. Be weary of what file types are used.

Here is a link to all the different types of code lines that can be used, as well as a bit more info on the topic:

http://www.nolimitscoaster.de/index.php?page=howto


When the code has been assembled and the environment is complete, save the file as filename.env in the NL environments folder. If images or other objects are needed for a skybox or sounds, etc, create a new folder in the environments folder and place the objects in the folder(do not forget to build a path to the objects in the code!). Lastly, open the NL editor and select the environment under 'Track Info'. Be sure to check the box stating that said environment is the preferred environment.

It takes a bit of tinkering, but overall it is pretty easy to do. Feel free to ask questions or share more information. Lastly, good luck!
 

Hixee

Flojector
Staff member
Administrator
Moderator
Social Media Team
Good work Marc. At least you've actually followed through on your promise of a tutorial (looks at Xpress ;) ).

Whilst this doesn't interest me directly, it's good for the site, so thanks. :D
 
Top