How To Rez
Game Design
modmaker's Resume
How to Skin
Tools Downloads

News Briefing


  • Learning Curve
  • Lith Tools Overview
  • Download the SDK
  • Installing the Tools
  • Dedit Basics
  • Your First Level
  • Expanding a World
  • Building on the Grid
  • KeyBoard Shortcuts
  • Edit Modes
  • Eradicating Leaks
  • What does the processor log tell you?
  • First Level Basics

  • Textures/Surface Flags
  • 4 Types of Doors
  • Making Windows
  • Grates and Railings
  • Stairs, Lifts & Ramps
  • Lights, dirlights, FX
  • Water & Rain Volumes
  • Sky Boxes / Portals
  • A basic Trigger
  • The Wall Switch
  • Adding Pickups
  • Proptypes vs Props
  • StarlightView Mode
  • Muliplayer/ SinglePlayer
  • Second Level Intermediate

  • Prefab Advantage
  • A Prefab Deconstruct
  • Adding Sound FX
  • Hacking Device
  • Torchable Lock
  • Complex Trigger
  • Active Props
  • Light Groups
  • Particle FX
  • Client FX Light
  • Third Level Intermediate

  • AI Basics
  • AI Volumes and Nodes
  • Simple AI Alien
  • Character AI
  • Goal: Patrol
  • Keyframer
  • Coty's FAQs
  • Advanced Level Building

  • -nosnapnocsg
  • Optimizing a level
  • Importing Terrain
  • Using the Camera
  • A Cinematic
  • Giving AI a script
  • Convoluted trigger
  • Random Events


    How To Rez

    • Use Lithrez
    • Use Winrez if you follow the readme instruction carefully.
    Next to actually having some talent to do things. You need to know how to rez a file, so you can distribute it. Luckily Monolith has provided a program called Lithrez to help you do just that. Unluckily it is a MS-DOS based program so so douple clicking just wont work. No fear though, its fairly easy.

    Lithrez is used to create and extract REZ files.

    This is the explanation given in the tools regarding rezing up a file for distribution.




    Lithrez is a command-line utility which can pack and unpack AvP2

    '.REZ' files. You must use this to "unlock" the media, models,

    textures, etc. that are contained in the AvP2 .REZ files before you

    can edit them with DEdit or ModelEdit. LithRez is located in the

    Tools folder and will display the following help if run without any


    Usage: LITHREZ <command> <rez file name> [parameters]

    Commands: c <rez file name> <root directory to read> - Create

    v <rez file name> - View

    x <rez file name> <directory to output to> - Extract

    Options: v - Verbose

    Options: z - Warn

    zero len

    Options: l - Lower

    case ok

    Example: lithrez cv foo.rez c:\foo (would create rez file foo.rez from the contents of the directory "c:\foo" the verbose option would be turned on)

    A simple DOS batch file (unrez.bat) has been provided to simplify the process of unpacking the AvP2 Game resources for you. To unpack the AvP2 Game Resources, just double click on "unrez.bat" located in the Tools folder. Make sure you have at least 700 MB free space on the hard drive where AvP2 is installed before running the .bat file.

    If you create your own add-ons (that you plan to distribute), you will need to store your resources in a new .REZ file (e.g., MyMod.rez). For these resources to be available to the game you must add the following line in the advanced options section of the AvP2 launcher:

    -rez MyMod.rez

    (NOTE: be sure to check the "Always specify these command line parameters" check-box so these resources are always available to the game.)

    Alternatively, you can add the "-rez MyMod.rez" to a string value named "Update Command Line" in the "HKEY_Local_Machine\Software\Monolith Productions\Aliens vs. Predator 2" registry key.

    If you want to run custom multiplayer worlds on the dedicated server, you will have to set up a special .txt file which the server reads to find the world path:

    1) Make a text file named "customrez.txt" in your AvP2 folder.

    2) Edit the customrez.txt file, adding the names of the custom .rez files you want the server to load when you launch the dedicated server. You have to follow the format


    Rez0 ="mod1.rez"

    Rez1 ="mod2.rez"

    Rez2 ="mod3.rez"

    For instance, if I have a "coolguns.rez" file with altered weapon models and a "fastpred.rez" file with a modified characterbutes.txt attribute file and I wanted my server to use both of them, my customrez.txt would look like this:


    Rez0 ="coolguns.rez"

    Rez1 ="fastpred.rez"

    It is important to note that if the .rez files share contained files, for instance if both coolguns.rez and fastpred.rez had a modified weapons.txt inside them, the second one in the list will be the one that is used. So in the example above the server would end up using the weapons.txt attribute file in fastpred.rez even if coolguns.rez had one as well. You should only include new resources in your .REZ file. For example, if you created a new DeathMatch level (MyCoolLevel) that was based on existing AvP2 textures, you would only need to include the MyCoolLevel.dat file in your add-on .REZ. Your resource folders might look like something like this:


    To create the MyMod.rez file you would run LithRez as follows:

    GameDirPath\Tools\LithRez.exe cv MyMod.rez c:\MyMod

    I might snap some pictures of how I have it set up if I get the time.

    Copyright 2001-2001 William "modmaker" Bostjan All Rights Reserved.