Mapdev:SMT format: Difference between revisions

From Spring
Jump to navigationJump to search
Finally got around to creating this page.
 
m fixed copy paste errors.
Line 1: Line 1:
= SMF(Spring Map File) Reference =
= SMT(Spring Tile File) Reference =
SMF is a binary format
SMT is a binary format
* [https://github.com/spring/spring/blob/2e5bc43dc464ec27d6b880d105f0c618e07c4ff8/rts/Map/SMF/mapfile.h mapfile.h]
* [https://github.com/spring/spring/tree/2e5bc43dc464ec27d6b880d105f0c618e07c4ff8/rts/Map/SMF Relevant code]
* [https://github.com/spring/spring/blob/2e5bc43dc464ec27d6b880d105f0c618e07c4ff8/rts/Map/SMF/SmfMapFile.cpp SmfMapFile.cpp]


== File location ==
== File location ==
maparchive.sd7/maps/mymapname.smf
maparchive.sd7/maps/mymapname.smt


== Data Map ==
== Data Map ==
* smu = spring map unit, the size you see when in the lobby. roughly between 2 and 64.
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
|+ align="left" | Header
|+ align="left" | Header

Revision as of 18:33, 5 October 2013

SMT(Spring Tile File) Reference

SMT is a binary format

File location

maparchive.sd7/maps/mymapname.smt

Data Map

Header
Bytes Type Description
16 char[] Magic number; "spring tilefile\0"
4 int Version; 1
4 int Number of tiles
4 int Size of the tiles; 32
4 int Compression Type; 1(DXT1)
+ Tiles
Bytes Type Description
680 char[] Raw DXT1 compressed 32x32 pixel tiles.