neige d'aoust

knowledge, art, and other stuff

User Tools

Site Tools


mozaic

This is an old revision of the document!


Mozaïc

Some game distributed with lottery tickets from Loto-Québec

Download and install instructions: https://www.youtube.com/watch?v=YygmFM3qP8w (also hacked to bypass ticket validity checks)

Install on Wine

This game makes heavy use of Indeo 5 and other DirectShow codecs so make sure to install it. Ideally, use a 32-bit prefix and pretend you're Windows XP.

# mount the ISO
sudo mount MOZAIC.iso /mnt/cdrom
 
# create a new 32-bit prefix, and optionally pretend you're on Windows XP
# it currently won't work in a 64-bit prefix like the one that is created by default
export WINEARCH=win32
export WINEPREFIX=~/.wine32
winecfg
 
# install the codecs
winetricks -q allcodecs
 
# install and run the game (also make sure $WINEPREFIX is set)
wine /mnt/cdrom/Mozaic.exe

The installation may fail because you have an ï in the install path, you may remove it and put a normal i instead.

PAK file format

Data is in little-endian.

NomTypeOffsetSizeNotes
magicstring04 bytes“PACK”
sizeu3244 bytesNumber of entries
??? 832 bytesUnknown
filelistFile40size * (12 + name)

File

NomTypeOffsetSizeNotes
filesizeu3204 bytes
offsetu3244 bytesByte offset from the beginning of the file
???u3284 bytesUnknown
nameNull-terminated string12 File path and name

ImHex pattern

import std.string;
 
struct File {
    u32 filesize;
    u32 offset;
    u32 unknown;
    std::string::NullString name;
    char data[filesize] @ offset;
};
 
char magic[4] @ 0;
u32 size @ 4;
char unknown[32] @ 8;
File filelist[size] @ 40;

Hacking

soon

mozaic.1742275695.txt.gz · Last modified: by Yuki