Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Racer track conversion howto
06-02-2006, 08:13 PM,
#4
 
thelusiv:

Here's a crash course on it. You basically can do load, save, ls, set, and quit. Load, save, and quit are obvious. You can supply arguments to load and save to specify the file if you want. The ls and set commands work using the object list file format:

Code:
#vdrift object list file format v0.4
#format is:
#0 model filename (no spaces allowed)
#1 texture filename (no spaces allowed)
#2 mipmap texture (1 for true, 0 for false)
#3 disable lighting (1 for true, 0 for false)
#4 is this a skybox? (1 for true, 0 for false)
#5 is this object a transparent blended texture? (1 for true, 0 for false)
#6 reserved
#7 reserved
#8 ignore
#9 collide-able (1 for true, 0 for false)

The first argument to ls is the object property you want to search. For example, specify 1 if you want to search objects based on the texture filename. The second argument to ls is what you want to search for. You can use * and ? wildcards. For example, to find all of the objects that use a texture called sky*, you'd do:

Code:
ls 1 sky*

To find all of the objects that have the skybox property set to true (1), do:

Code:
ls 4 1

Note that all of the objects will start with default properties.

The set command is similar. It allows you to both search for objects and set their properties in one step. The first two arguments to set are exactly the same as ls. The second two arguments the property you want to set on the objects that match your search. For example, say want to set the skybox property to true for all objects that have a texture starting with "sky"... you'd do:

Code:
set 1 sky* 4 1

Understand?
Reply


Messages In This Thread
Racer track conversion howto - by thelusiv - 06-02-2006, 01:33 PM
[No subject] - by thelusiv - 06-02-2006, 02:24 PM
[No subject] - by FFuser - 06-02-2006, 03:34 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-02-2006, 08:13 PM
[No subject] - by thelusiv - 06-04-2006, 04:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)