ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

PreviewPack: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m Maps/PreviewPack moved to PreviewPack: Moving the Maps/ sections' pages to main space.
Zzattack (talk | contribs)
No edit summary
Line 1: Line 1:
{{WrongTitle|[PreviewPack]}}
{{WrongTitle|[PreviewPack]}}


This section in a map file contains a base64-encoded string of LZO compressed data that, when decompressed, represents the picture that is to be used as the map preview, in BGR format. Red and blue values therefor have to be swapped.
This section in a map file contains the picture that is to be used as the map preview. The dimensions of this image are given in the [[Preview]] section. The image itself is stored as a base64-encoded string of LZO compressed data that, when decompressed, contains the image in BGR format. The scanline of each row of pixels is precisely 3 times the width, i.e. no additional padding is used. For official maps, the dimensions of the preview image are 1.975 times the width of the [[LocalSize]] and 1.0 times the size of the height of this LocalSize.  
There is little need to edit this manually, as [[XCC:Mixer|XCC Mixer]] can [[XCC Mixer file conversion#Copy As|create this section]] from any desired picture, which can then be pasted into a map file. This is used in the newest version of the [[Assault Mappacks]] to display an informational picture to users which are playing an Assault-compatible mod without downloading the mappacks themselves. (See the Assault Mappacks page for more info.)
 
There is little need to edit this manually, as [[XCC Mixer]] can [[XCC Mixer file conversion#Copy As|create this section]] from any desired picture, which can then be pasted into a map file. This is used in the newest version of the [[Assault Mappacks]] to display an informational picture to users which are playing an Assault-compatible mod without downloading the mappacks themselves. (See the Assault Mappacks page for more info.)
The map editor [[Final Alert]] is also capable of generating previews based on the tiles of the map. Higher quality previews can be obtained using a resized picture of the full map. The [http://github.com/zzattack/ccmaps-net CNCMaps rendering tool] contains an option to directly inject a high-quality preview into the map.


[[Category:Maps Sections|PreviewPack]]
[[Category:Maps Sections|PreviewPack]]

Revision as of 14:02, 26 August 2013

This page should correctly be named "[PreviewPack]"; it is wrong due to technical restrictions.



This section in a map file contains the picture that is to be used as the map preview. The dimensions of this image are given in the Preview section. The image itself is stored as a base64-encoded string of LZO compressed data that, when decompressed, contains the image in BGR format. The scanline of each row of pixels is precisely 3 times the width, i.e. no additional padding is used. For official maps, the dimensions of the preview image are 1.975 times the width of the LocalSize and 1.0 times the size of the height of this LocalSize.

There is little need to edit this manually, as XCC Mixer can create this section from any desired picture, which can then be pasted into a map file. This is used in the newest version of the Assault Mappacks to display an informational picture to users which are playing an Assault-compatible mod without downloading the mappacks themselves. (See the Assault Mappacks page for more info.) The map editor Final Alert is also capable of generating previews based on the tiles of the map. Higher quality previews can be obtained using a resized picture of the full map. The CNCMaps rendering tool contains an option to directly inject a high-quality preview into the map.