Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Map Making
FAQ Community Calendar

Map Making Discuss everything related to creating new levels here.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2013, 06:50 AM
19 cm 19 cm is offline
Member
 
Join Date: Nov 2011
Posts: 73
Default .altx file format

I peeked into Altitude's map files out of curiosity and found it's a very straightforward and efficient format, so I'll describe it here in case anyone's interested.

The entire file is a compressed LZMA stream (that's what the 7z archiver uses). So for instance if you have 1bd_core.altx, you can do
Code:
7z x 1bd_core.altx
and you'll get a file named 1bd_core with the following structure:

Code:
int32   number of files (let's call it N)
-----------------------------
N filename records, tightly packed: no word alignment.
{
  int16   length
  byte[]  filename, no trailing zero
}
-----------------------------
array of N file lengths (int32).  no alignment.
-----------------------------
data for file 1
-----------------------------
...
-----------------------------
data for file N
Filenames can (and do) include path, e.g. _config/image-descriptors.txt

The directory structure corresponds to what you can see in Altitude/editor/maps/_imported_map. At a minimum it will be:

1de_imported_map.alte
_derived/dist/.image/pck.txt
_derived/dist/.sound/convert.txt
_derived/dist/.sound/precache.txt
_config/image-descriptors.txt

The name of the .alte file doesn't seem to matter; most .altx files contain a corresponding .alte as first entry, but some have "1de_imported_map.alte", and 1de_lazer.altx contains obj_lazer.alte

The contents of most files is XML encoded, but interestingly _derived/dist/.image/pck.txt appears to consist of random-looking binary data.

Last edited by 19 cm; 05-12-2013 at 06:53 AM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SL4 playoffs format discussion andy League Organization 13 07-10-2011 09:55 AM
Sky League 4 format andy League Organization 42 05-31-2011 10:27 AM
New format for SL4/ EABL2 beefheart League Organization 18 03-30-2011 01:08 AM
Map file specification §teve Map Making 6 06-08-2010 01:44 AM
altitude midi file? omnicron245 The Water Cooler 0 10-26-2009 04:03 AM


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC