Wrp File Format - OPRWv17 to 24: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
[[CPP]] <br>
[[CPP]] <br>
[[BIN]]
[[BIN]]
part of old WRP File Format article:
==General==
The terrain as seen in game are '''wrp''' files (world maps). The 'map' generally consist of an 'island', surrounded by sea texture. All official maps are square areas 256 x 256 'cells'. Each 'cell' defines attributes of that part of the map in a fixed 50 meter square grid.  Thus a 256 square map covers 12.8 kms square.
With the introduction of Resistance, the map sizes could be considerably larger. No official BI island took advantage of this. However, the OFP Community has, for  example: '''BAS Tonal''', '''PMC Rugen 25km''', '''PMC Rattler 25km''', to name only a few.
A '''wrp''' file contain indexed references to models (p3d files) and textures (pac/paa). A wrp file does '''not''' contain the models, or the textures. Instead, these models and textures are held inside a mixture of one or more pbo files. Frequently, since this is after all an island, the very same p3d models accessed in '''this''' wrp file, '''this''' island, might also be available as separate Mission Editor models. Buildings eg, grass eg, trees, eg.
The model and texture pbo files can be 'official' (eg O.pbo,data3d.pbo), or unofficial. Any and all pbos that contain pxx files can be referenced by the wrp file. The wrp file itself, may, or may not be, inside one of the very same pbo's that contain some of the pictures, but, that, is immaterial to the wrp.
A wrp file is accompanied with a familiar [[Config.cpp|config.cpp]], or it's raPified equivalent, [[Config.bin|config.bin]].
All references to models and textures within the config begin:
filename_of_pbo\thing.pxx
note there is NO leading slash.
'''pxx''' of course are p3d. pac. or paa extensions. Depending on context, one or other of these file externsions are default. But, for modellers to play safe it is better (tm) to be specific.
There are two file formats in use. Either can be used in the engine.

Revision as of 16:08, 29 September 2008

New articles: Tiberian Genesis Mod
EXT
CPP
BIN

part of old WRP File Format article:

General

The terrain as seen in game are wrp files (world maps). The 'map' generally consist of an 'island', surrounded by sea texture. All official maps are square areas 256 x 256 'cells'. Each 'cell' defines attributes of that part of the map in a fixed 50 meter square grid. Thus a 256 square map covers 12.8 kms square.

With the introduction of Resistance, the map sizes could be considerably larger. No official BI island took advantage of this. However, the OFP Community has, for example: BAS Tonal, PMC Rugen 25km, PMC Rattler 25km, to name only a few.

A wrp file contain indexed references to models (p3d files) and textures (pac/paa). A wrp file does not contain the models, or the textures. Instead, these models and textures are held inside a mixture of one or more pbo files. Frequently, since this is after all an island, the very same p3d models accessed in this wrp file, this island, might also be available as separate Mission Editor models. Buildings eg, grass eg, trees, eg.

The model and texture pbo files can be 'official' (eg O.pbo,data3d.pbo), or unofficial. Any and all pbos that contain pxx files can be referenced by the wrp file. The wrp file itself, may, or may not be, inside one of the very same pbo's that contain some of the pictures, but, that, is immaterial to the wrp.

A wrp file is accompanied with a familiar config.cpp, or it's raPified equivalent, config.bin.

All references to models and textures within the config begin:

filename_of_pbo\thing.pxx
note there is NO leading slash.

pxx of course are p3d. pac. or paa extensions. Depending on context, one or other of these file externsions are default. But, for modellers to play safe it is better (tm) to be specific.

There are two file formats in use. Either can be used in the engine.