Track and instance file structure breakdown

Contents

Introduction / Disclaimer
Basic informations
Level .w file
Instance .prm file
.ncp file
.por file
.rim file
Data structures
structure World
structure Mesh
structure Polygon
structure Vertex
structure Vector
structure UV
structure FunnyBall
structure WorldNCP
structure Polyhedron
structure Plane
structure LookupGrid
structure LookupList
structure UnknownList
structure EnvList
structure Bounding Box
structure RIM_Entry
structure POR_Entry

Continue reading Track and instance file structure breakdown

Tutorial: Track Files

Note: This is a draft (incomplete)

You will find these files in a track folder:

Click on the file extension to get more information about creating/customizing.

*.inf
– Provides information about the track needed by Re-Volt

*.w
– This is the world mesh containing the 3D model itself and UV texture information as well as advanced properties like wether a poly is double sided and glossiness.

*.ncp
– World collision file: contains the collision data (solid or not) and the material properties. Basically, this is the same mesh as the .w file with polies which the car won’t be able to reach cut off.

*.fan
– This file can be created in Makeitgood-mode. It contains the AI nodes and tells the computer-controlled cars where to drive to.

*.pan
– Pos Nodes: needed to calculate the length of the track.

*.taz
– Track Zones: needed to get sure that the cars complete one lap.

*.tri
– Triggers are e.g. used for signs (the red ones telling you where to go on top of the screen), object throwers and reposition.

*.rim
– A file containing a mesh with rectangles telling where the mirrors are.

*.por
– Portals (“Erm, nothing to see here…” in Makeitgood)

*.vis
– Visiboxes tell what part of the track must not be displayed when at a certain position. This is used to increase the frame rate.

*.lit
– Lights file: You can use lights and shadowboxes to make your track even more beautiful.

*.fld
Farce Fields: often used for Water (e.g. Toytanic pool), decreasing gravity or wind for tumbleweeds in Ghost Town.

Tutorial: Inf File Definition (Made by ZR)

The .inf file gives certain traits to your track, mostly having to do with car positioning and fog.
I’m going to go with Market1’s .inf for this, since it’s the first one I clicked on.

NAME
Obviously the name of the track. I believe there is no limit to how long this can be however if its too long it will run off the screen.STARTPOS
STARTPOS REV
STARTROT
STARTROT REV
STARTGRID
STARTGRID REV

All of these change car positions. STARTPOS changes where the cars start the race (spawn).
STARTROT adjusts the rotation of the cars.
STARTGRID changes the grid formation.
Anything with REV in it has to do with a reverse version of the track, which isn’t required.

FARCLIP
Higher the number, the farther away you can see. This is used in correlation with FOGSTART.

FOGSTART
Just like FARCLIP, the higher the number, the farther away you can see. This number sets how close fog is set to the players car. A good example of fog is in RickyD’s track named ‘Wicked Winter 2: Arctic Air’.
You can download said track here.
Remember FOGSTART should always always always be a lower number than FARCLIP.

If you add a skybox you better place these numbers high, or else you wont be able to see the skybox.
FOGCOLOR
Changes the color of the fog. If you make it white it looks similar to mist. It is used in a RGB format, and the highest number for each category is 255.

VERTFOGSTART
This one is slightly more complex. It is used to give the effect of thicker fog. It is responsible for vertical fog instead of horizontal. You do not need to change it from the default 0.

VERTFOGEND
Ending of vertical fog.

WORLDRGBPER
Giving this a higher number makes the track brighter, and vice versa.

MODELRGBPER
Giving this a higher number makes the cars and models brighter, and vice versa.

MIRRORS
MIRRORS are for tracks made with reflective floors, which used by the .rim file. It requires a modified floor, which has some transparency. You need mkmirror to convert .por to .rim files.
First create a portal in ‘Erm, nothing to see here’ edit mode.
Then use mkmirror. Mirrors only work on completely flat horizontal surfaces. Best with 0 0 0 fog color. Make sure nothing is under the floor. Right I’ve spent too much time talking about mirrors, moving on.

MP3
This is used only with WolfR4, and demo versions (such as DEV). It tells what music to play opposed to redbook.

REDBOOK
Decides upon which music to play. For unpatched or 1906 versions only.

SHADOWBOX
I noticed it on Ship2 only. KDL tells me that it changes the contrast/brightness or the shadows on the track. The default is -96.

ENVSTILL
This is for reflective planes. You simply point it to a bmp file.
Ex, Christmas Snow Globe by Hilaire9 and Jaseaka.

QUOTE
ENVSTILL ‘levels\christmas_globe\christmas_globek.bmp’
Quite simple to understand.
Also used for the ball bearing weapon.ENVROLL
For changing the ENV (reflective properties) on spherical objects in the world.
Point it to a BMP as shown above.

Ship tracks only:

ROCK
Adjusts how the track rocks, like a boat. There are four numbers: The first is for the frequency of vertical (up and down) movement, the second one is for the length of vertical movement, the third is for length of horizontal movement and the fourth is for horizontal frequency.

This tutorial created by zipperrulez.
Thanks to Hilaire9 for his insight on Mirrors.
Thanks to AGT2 for some minor edits.
Thanks to KDL for Shadowbox and ENV.
Thanks to MarvTheM for information about rock.