OXP howto

From Elite Wiki
Revision as of 15:12, 6 January 2006 by Murgh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OXP icon

OXP Overview

An Oolite Expansion Pack can implement many big changes or additions to Oolite's gameplay, or it may represent just a small, subtle alteration. By appearances, there is no way to tell what is inside, as it's merely a folder with the added extention .oxp. Inside, it will at least contain a folder named Config, and possibly others such as AIs, Models, Textures, etc. It is down to the desired effect of the OXP, which way to combine the OXP's contents.

Config

This folder would contain

  • shipdata.plist that introduces any new entity (ships, stations, objects etc.) to Oolite
  • shipyard.plist that introduces new ships available for player purchase
  • script.plist that plots conditional script actions
  • planetinfo.plist that plots system specific changes from the default. may also contain script actions

Many other types of files can also be included in Config when needed. For instance, missiontext.plist, demoships.plist, descriptions.plist, speech_pronunciation_guide.plist could appear, as well as custom HUDs. Config is where all plist files belong, except for those introducing new AI.

In its simplest form, an OXP could contain only a Config with an altering script.plist or planetinfo.plist. An OXP that adds a new ship would with the shipdata.plist entry, be committed to include its model and texture.

Models

Oolite models need to be in the .dat format. There are available utilities available that easily convert models made in Wings3D (.obj) and Meshwork (.mesh) into this. A .dat file can be opened in a plain text editor where one can view the object's assigned texture names and see that they correspond with the actual file names in the Textures folder. The .dat file must be named exactly as it is referenced in the shipdata entry.

Textures

Oolite's textures are in the .png format, and must be named exactly as they appear in the .dat file.