- Joined
- Dec 16, 2009
- Messages
- 778
- Trophies
- 0
- Location
- 3dbrew.org
- Website
- www.sherer.co.il
- XP
- 392
- Country
Hello there,
As we did when pushmo was out, now we have the mission of figuring out how crashmo works to enable the pc level editor (and by that enable importing images and stuff to the game).
Official level editor: INTELLIGENT level editor (this will work as an all around editor for these games)
I'll present here what we know and hope to keep it updated:
Endianess: Little Endian (Intel, lowest byte first)
QR Data
0x00000AAD - Magic (like pushmo had 0x068D)
0x00000001 - uint32 (always 1, probably version) (was zero on pushmo)
0x???????? - uint32 size of the compressed data
[Data] - 720 bytes compressed with LZ10 (starts with 0x10)
Data
Code:
{
char[4] Magic // MTUA
byte[4] CustomCrc32
uint32 Unknown1 // always = 7
byte[16] Zeros0
byte[22] Author // UTF-16 string
byte[34] LevelName // UTF-16 string
byte Zero1 // ??
uint32 Difficulty
byte[7] Unknown3 // = 042C0920010000
byte[10] PaletteData
byte[6] Zeros2
uint32 Flags
CrashmoPosition FlagPosition
CrashmoPosition[21] Utilities
byte[0x200] LevelData
byte Protection // 4-locked, 3-open
byte[3] Footer // = FAFF0F
} //4+4+4+16+22+34+1+4+7+10+6+4+4+21*4+0x200+1+3 = 720 bytes
Code:
CrashmoPosition {
uint16 Pos // x = bits 12..16 , y = bits 7..11 *negated*
byte Type // 1 = flag, 2 = manhole, 3 = shiftswitches, 4 = doors, 5 = cloud
byte Flags
// for manholes & doors it's the color 0=red, 1=yellow...
// for shiftswitches it's the color (1st nibble) from the palette, 2nd nibble = direction (push, pull, left, right).
// for flag & clouds it's nothing
}
You can find the files i worked on here
Open questions:
[Answered: 5] 1. (Clouds) How many clouds can be put on a map?
2. (Clouds) on the crashmo studio, what happens when you put a cloud on an empty space?
3. (Switches) On Crashmo studio, how switches are used, do they have a color, do you rotate it?
[Answered: 4 one for each direction] 4. (Switches) How many can be put on the map?
[Answered: 3 & 3] 5. (Doors+Manholes) How many colors are there?