This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mozaic [2025/03/18 01:28] – Yuki | mozaic [2025/03/20 01:28] (current) – Yuki | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Some game distributed with lottery tickets from Loto-Québec | Some game distributed with lottery tickets from Loto-Québec | ||
| - | Download | + | Download: [[https://archive.org/details/ |
| + | |||
| + | See also: [[https:// | ||
| ===== Install on Wine ===== | ===== 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. | + | This game makes heavy use of Indeo 5 and other DirectShow codecs so make sure to install it. Use a 32-bit prefix, and ideally |
| <code bash> | <code bash> | ||
| # mount the ISO | # mount the ISO | ||
| + | # the game won't run without it | ||
| sudo mount MOZAIC.iso /mnt/cdrom | sudo mount MOZAIC.iso /mnt/cdrom | ||
| - | # create a new 32-bit prefix, and optionally pretend you're on Windows XP | + | # create a new 32-bit prefix |
| - | # it currently won't work in a 64-bit prefix | + | # it currently won't work in a 64-bit prefix |
| + | # also make sure the CD-ROM | ||
| export WINEARCH=win32 | export WINEARCH=win32 | ||
| export WINEPREFIX=~/ | export WINEPREFIX=~/ | ||
| Line 35: | Line 39: | ||
| |magic|string|0|4 bytes|" | |magic|string|0|4 bytes|" | ||
| |size|u32|4|4 bytes|Number of entries| | |size|u32|4|4 bytes|Number of entries| | ||
| - | |???| |8|32 bytes|Unknown| | + | |???| |8|32 bytes|Seems unused, can be used as a comment field| |
| |filelist|File|40|size * (12 + name)| | | |filelist|File|40|size * (12 + name)| | | ||
| Line 43: | Line 47: | ||
| |filesize|u32|0|4 bytes| | | |filesize|u32|0|4 bytes| | | ||
| |offset|u32|4|4 bytes|Byte offset from the beginning of the file| | |offset|u32|4|4 bytes|Byte offset from the beginning of the file| | ||
| - | |??? | + | |??? |
| |name|Null-terminated string|12| |File path and name| | |name|Null-terminated string|12| |File path and name| | ||
| Line 65: | Line 69: | ||
| </ | </ | ||
| - | ===== Hacking | + | ===== Tools ===== |
| + | |||
| + | < | ||
| + | <code javascript extractpak.js> | ||
| + | const fs = require(' | ||
| + | const path = require(' | ||
| + | |||
| + | if(process.argv.length < 3) | ||
| + | { | ||
| + | console.log(" | ||
| + | process.exit(1); | ||
| + | } | ||
| + | |||
| + | var f = fs.readFileSync(process.argv[2]); | ||
| + | |||
| + | var magic = f.toString(' | ||
| + | if(magic != " | ||
| + | { | ||
| + | console.log(" | ||
| + | process.exit(1); | ||
| + | } | ||
| + | |||
| + | var size = f.readUInt32LE(4); | ||
| + | var offset = 40; | ||
| + | |||
| + | for(var i = 0; i < size; i++) | ||
| + | { | ||
| + | var filesize = f.readUint32LE(offset); | ||
| + | var fileoffset = f.readUint32LE(offset); | ||
| + | var mystery = f.readUint32LE(offset); | ||
| + | var next = f.indexOf(0, | ||
| + | var name = f.toString(' | ||
| + | offset = next+1; | ||
| + | console.log(" | ||
| + | |||
| + | fs.mkdirSync(path.dirname(name), | ||
| + | var data = fs.createWriteStream(name, | ||
| + | data.end(f.slice(fileoffset, | ||
| + | } | ||
| + | </ | ||
| + | < | ||
| - | soon | + | [[https:// |