General
Legends Website
Tutorial & Skiing
Legends FAQs
Player Configuration
Legends Teams List
How to Host
Server List Backup

Add-Ons
New Maps
New Skins
New Voices
Player Scripts
Server Scripts & Mods

Modding
Legends Mapping Guide
Legends Scripting Guide
Creating Team Skins
Creating Voice Packs

Gameplay Guide
Legends Guide

Linux
Installation Instructions
Installer Script
Package Creator Scripts
Legends Distro Status

The preferred method for packaging maps is in an unf. An unf is just a zip file with the file extension changed to .unf. To make an unf, organise your map files in the correct directory structure, zip it and change the file extension from .zip to .unf.

Simple Example

The following example assumes that you've made a terrain and used the textures and interiors that come with Legends, which is the most common for your first map. In this case, you only need to distribute your .mis and .ter. The loadscreen is optional, read the loadscreens page for more info on making loadscreens.

data/missions/LandOfChocolate.mis
data/missions/LandOfChocolate.ter
data/missions/loadscreens/LandOfChocolate.jpg

In Linux, type the following commands

zip -r -0 LandOfChocolate.unf data/

The -r switch means recursive, and the -0 (zero) means no compression, which will speed up mission load times.

Detailed Example - New Content

Now we assume that you've decided to make brand new content for your map. For example, assume you have made custom interiors, interior textures, a sky, objects, and terrain textures:

  • Custom Interiors
    • chocolate_house.dif
    • chocolate_car.dif
    • chocolate_lamp_post.dif
  • Custom Interior Textures
    • dark_chocolate.png
    • white_chocolate.png
  • A Custom Sky
    • chocolate_sky.dml
    • chocolate_sky1.jpg
    • chocolate_sky2.jpg
    • chocolate_sky3.jpg
    • chocolate_sky4.jpg
    • chocolate_sky5.jpg
  • Custom Shapes
    • chocolate_bar.dts
    • chocolate_bar.png
  • Custom Terrain Textures
    • chocolate_terrain1.jpg
    • chocolate_terrain2.jpg

Organise these files in the following directory structure, zip it, then rename to LandOfChocolate.unf.

data/missions/LandOfChocolate.mis
data/missions/LandOfChocolate.ter
data/missions/loadscreens/LandOfChocolate.jpg
data/interiors/dark_chocolate.png
data/interiors/white_chocolate.png
data/interiors/contrib/chocolate_house.dif
data/interiors/contrib/chocolate_car.dif
data/interiors/contrib/chocolate_lamp_post.dif
data/shapes/chocolate/chocolate_bar.dts
data/shapes/chocolate/chocolate_nar.png
data/terrains/chocolate_terrain1.jpg
data/terrains/chocolate_terrain2.jpg
data/textures/skies/chocolate_sky.dml
data/textures/skies/chocolate_sky1.jpg
data/textures/skies/chocolate_sky2.jpg
data/textures/skies/chocolate_sky3.jpg
data/textures/skies/chocolate_sky4.jpg
data/textures/skies/chocolate_sky5.jpg

Note that interior textures must go in

  • data/interiors

but interiors (.dif files) should go in

  • data/interiors/subdirectory/

where subdirectory is usually contrib, but can be anything, such as chocolate.

Other Content

If you have created new content that isn't listed here such as lighting, sounds, or scripts, then look in the unf files that come with Legends (data.unf, sounds.unf, scripts.unf) for the correct path.

 
mapping/mission/file_structure.txt · Last modified: 2008/07/03 16:09 (external edit)