Repository navigation
Releases
Releases · Tatsh/dade
v0.4.0
Immutable
release. Only release title and notes can be modified.
Added
dade sims3 extractunpacks The Sims 3.Sims3Packfiles and DBPF.packagefiles without s3pi or .NET, writing each resource decompressed under its type, group, and instance.dade itgps2 extractconverts the PlayStation 2 discs of In The Groove and of the In The Groove 2 beta to a StepMania data tree. Songs come out as simfiles with WAV music and MPEG movies, neither re-encoded, beside courses, themes, note skins, and characters.dade thps2pc skater2glbwrites each skater model as a skinned GLB with its embedded textures, one joint per body part, and its clips as glTF animations. Outfits and low-detail models are given the clips the game shares between skaters, matched by part name.dade mkw extractwrites the skeleton of every model with more than one bone into its GLB as a glTF skin, with rest pose, inverse bind matrices, and up to four weighted bones for each vertex. Blender imports the skin as an armature.dade mkw extractdecrypts.bfttfand.bfotffonts to TTF, OTF, or TTC underfonts.dade mkw extractwrites the skeletal animations of each archive as JSON underanimations, each quantised cubic curve decoded to Hermite keys with a frame, a value, and a slope.- The level 0 GLB of a model with more than one bone embeds the skeletal clips of its animation archives as glTF animations, sampled at every frame. Blender lists the clips as actions of the armature.
- The animation JSON files of
dade mkw extractrecord material animations. A texture pattern, such as the blinking eyes of a driver, is written as the texture shown from each keyframe on. dade sopranos unpack --convertanddade sopranos gltfwrite a.glbfor each rigged object of a.SGP2library, with its.SKL2skeleton as a glTF skin and the level's.SAM2clips as animations. Vertex weights are provisional. The files record which bones move a vertex and not how much, and a vertex following two bones weighs each at a half.dade amplitude unpackwrites the default FreQ avatar as one skinned GLB,freqmaker/avatar_default.glb, with one animation for each frame range of the game's avatar animations. Each arm is posed by the game's two-bone inverse kinematics.--bpmsets the tempo the animations are timed at (120 by default).dade.harmonix.rndreads Amplitude'sRnd::Mesh(revision 14) objects, with their bone weights and bind transforms, and itsRnd::TransAnim(revision 3) objects field by field.dade xg2 xg2-to-glbwrites each Extreme-G 2 rider as a skinned GLB, with one joint per bone of its skeleton, the game's vertex weights, and every motion clip as an animation.dade monopoly08 extractwrites the Xbox 360 mesh of Mr. Monopoly as a GLB with a glTF skin of 93 joints. The motions of every motion bank animating his skeleton (idles, walks, runs, and cutscenes) become glTF animations, decoded from the SKA codec of EA's character toolkit.dade maxpayne skin2glbconverts every character of Max Payne and Max Payne 2 to a GLB rigged to its skeleton, with a glTF skin, per-vertex joints and weights from the.skd, and the animations its scripts list as glTF animations. A JSON file beside each GLB records the bones and each clip's file, frame count, frame rate, and animation indices.
Changed
- PS2 3D icons (
.ico,.icn) are written as GLB, and as glTF with the texture beside it as PNG, instead of OBJ. Each animation shape is a morph target, the frames are a glTF animation of the target weights, the vertex colours are retained, and compressed textures are decoded. Iso9660Imageis renamedISO9660Image, and the THPS2Pkr*classes are renamedPKR*.- An Amplitude
.tnmis decoded as aRnd::TransAnimkeyframe animation, and its JSON sidecar lists every rotation, translation, and scale key. A FreQuency.tnmis scanned for references as before.
Fixed
- The texture list an Amplitude Milo scene stores between its object table and its first object is read and recorded in
manifest.jsonastextures. It was previously read as the start of the first object, and 49 meshes of the FreQ maker (among them the feet and the lower arms) did not convert. - Extreme-G 2 motion clips decode an eight-bit curve as a base plus an 8.8 step, as the game does, and a sixteen-bit curve at full width rather than as eight-bit samples.
- Extreme-G 2 clip GLBs place each joint at its pivot and turn it about the skeleton's axes, in the order its channel codes give.
- A GLB without meshes omits the empty
meshesarray the glTF validator rejects. - Max Payne 2 models split into per-material batches now index each batch's own vertices and draw each batch with its material. Model images are found whatever the case of their directory.
Removed
- The OBJ output of PS2 3D icons, and
dade.common.ps2_icon.ps2_icon_decompose.
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Immutable
release. Only release title and notes can be modified.
Added
dade mkw extractconverts Mario Kart World models into one GLB per detail level, textures into PNG, sound effects into WAV, and BGM streams into FLAC from an unpacked NUP directory.
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Immutable
release. Only release title and notes can be modified.
Added
dade tgr extractconverts the assets of Top Gear Rally (Nintendo 64, the North American, Japanese, and European releases) and of Boss Rally, its Windows release. Cars, tracks, sky panoramas, and the models of the menus become GLB with their textures embedded and written beside them as upright PNGs. The music is written as the FastTracker 2 modules it ships as and rendered to WAV. The disc may be a cue sheet, a.bin, an ISO image, or a directory. Its bitmaps, icons, and.imgimages become PNG, the resources of its programs are written out, and its CD audio becomes FLAC.- The ISO 9660 reader reads the Joliet tree when an image has one, and the long names it records are returned with their case retained.
dade misc ds-storereads a Finder.DS_Storedesktop database and writes it as JSON. The file is a Buddy allocator file storing one B-tree, and the tree is flattened into one entry per file name, with the.entry belonging to the folder itself. Icon positions (Iloc), window frames (fwi0), modification dates in either thedutcform or the Core Foundation blob form, and property lists that store a view's settings are decoded; every other blob is reported as hex. The allocator's blocks, directories, and free lists are reported alongside the records.
Removed
- Support for Python 3.10. Python 3.11 or later is now required.
Full Changelog: v0.1.0...v0.2.0
v0.1.0
Immutable
release. Only release title and notes can be modified.
Added
dade sopranosgroup for The Sopranos: Road to Respect (PlayStation 2). Oneunpackcommand takes the disc apart and converts everything it recognises. The argument may be a disc image, a directory searched recursively for.FSarchives however they are cased, or any number of archives given directly. Each archive is unpacked into a directory titled after it with the region suffix dropped, andDATA_P.FStherefore becomesdata. With--convert, the.LVLcontainers are split first and the assets inside them are converted by the same pass..TEX2texture banks become PNG with PlayStation 2 alpha rescaled to0..255,.SGP2prop libraries yield the PNGs they embed,.MSHand.MSBsound banks yield one WAV per sound,.MIHand.MIBmusic streams become WAV de-interleaved back to stereo, and.VO2dialogue becomes WAV stitched from itsAUDOblocks. The retail disc converts clean.--ignore-failureslogs and skips an asset that will not convert rather than stopping.- A Sopranos level is written as a
.glbwith its props placed in it, alongside OBJ and MTL. Props are read from the.SGP2libraries belonging to the level, and each is positioned and turned according to the.OLVfile that records where the prop stands. A character with interchangeable wardrobe pieces is given one piece of each kind rather than all of them at once. dade maxpaynegroup for Max Payne and Max Payne 2 (PC).ras-listandras-extractread the RAS (Remedy Archive System) containers both games load everything from. A source may be a.rasarchive, a.mpmmod package, a directory searched recursively, an InstallShieldDATA1.CAB, an ISO, the.cueof a cue/bin pair, or a bare.bin. A raw BIN with no cue sheet is unwrapped by its sector sync patterns, and a rip that lost its cue still reads. Every member is LZSS-compressed and the archive tables are encrypted, both handled transparently, and--rawretains theRA->andRC->wrappers. Members are stored back to back with no offset field, and the directory therefore doubles as an integrity check.ras-listreports an archive asintactwhen the header, both tables, and every stored size account for the file exactly.- Both
dade maxpaynearchive commands take as many sources as a game shipped discs. A retail disc needs two routes at once. The level archives sit loose on the disc while the shared game database is insideDATA1.CABand is unpacked withunshield, and a cabinet is skipped with a warning whenunshieldis missing. A cabinet does not have to fit on one disc. Max Payne 2 splits its cabinet acrossdata1.cab,data1.hdr, anddata2.cabon the install disc anddata3.cabon the play disc, and the parts are gathered from every source given before the cabinet is unpacked once. The discs may therefore be given in any order and in whatever mixture of formats they were ripped to. dade maxpayne inspect-tagsdecodes the taggedR_MemoryFilestream that every custom asset is built from, identifying each value's type. The walk stops where a level exits tagged territory, at the point its first untagged string begins.dade maxpayne ldb2glbconverts levels to binary glTF, one.glbper.ldb, in parallel across every core, anddade maxpayne ldb-textureswrites a level's embedded images out on their own. Each.glbincludes the level's architecture, its props, the game's texture coordinates, and every embedded image. Both games are read, and the game a level came from does not have to be given. A Max Payne 2 level opens withLDB2and is recognised by it. Pass--databaseand the NPCs and pickups are drawn with their models, read from the first game'sskinsandlevel_itemsdirectories; without--databasethey are written as empty nodes with names.- Every clip a prop can play (a door swinging either way, a lift rising, a fan turning) comes out as a glTF animation with a name, and a viewer can list and play the animations. A level stores a clip as two poses and two curves, one giving the distance travelled in world units and the other how far the prop has turned. Both are baked into keyframes on the way out, and a clip that moves nothing is dropped.
- The baked lighting, the sky, and the decal layering are all written out. Each level's atlases are embedded, each face identifies the atlas that lights it, the second coordinate set addresses the atlas, and the lightmap goes in glTF's occlusion slot, the closest the format has to a lightmap. A level's
skyboxfaces get a flat unlit colour and close the level off wherever it opens to the air, and omitting them would put a hole through every street. Graffiti, signage, and switchable surfaces are lifted about eight millimetres along the face normal. A level places each of these surfaces in exactly the plane of what it covers, and nothing in the file marks which is which. dade.maxpayne.ldb2reads Max Payne 2 levels as a separate reader feeding the same exporter. The sequel retains the tagged stream and the archives and rearranges everything above them. Its strings live in one pool addressed by byte offset, its textures are DDS in five groups rather than one, its vertices are packed float arrays behind a sixteen-bit index buffer, and its collision is Havok. A room includes the transform that puts it in the world. The first game deferred placement to the exit graph, and a room had to be assembled by walking the graph. Geometry an artist placed more than once is written once and referred to afterwards. The sequel also states each surface's draw order, and its decals are therefore lifted from what the level records rather than from the geometry.dade rbplus sitebuilds a browsable, static site from a collection of.rbtune packages. It writes every tune's charts as JSON and ships a React page that draws them in the browser. The result can be served from anywhere, GitHub Pages included. Tunes are grouped by artist and title and can be filed A-Z or by gojūon row, and the search matches the Hepburn romanisation of a kana reading. A Japanese title therefore resolves from a Latin keyboard. Pass--basefor a project site served from a sub-path.--basealso writes a404.html, and a link to one tune opens it directly.- A package with only a basic chart, its medium and hard entries empty, is recognised as an extend note, a SPECIAL chart sold for a tune that already exists.
dade rbplus sitefiles it under the tune it extends, worked out from the numbering, rather than listing it separately. - The
dade rbplus siteoutput is an installable app. It ships a web app manifest, a service worker, and icons. A browser therefore offers to install it and opens an already-seen tune offline. The manifest's addresses are relative, and it installs the same from a dedicated domain or from a--basesub-path. dade rbplus dump-chart --flipdraws the chart with time running downward, the way the notes fall down the screen.dade xg2 xg1-to-glb,dade xg2 xg2-to-glb, anddade xg2 xg2-pc-to-glbconvert Extreme-G and Extreme-G 2 levels, models, and track objects to binary glTF. A level is not a display list. It is an LZHUF-compressed bytecode that the loader at0x8004FDB8walks once to build the display lists the hardware then draws, and the geometry therefore comes out by running the same interpreter, dispatched through the jump table at0x8004BA98. Every opcode is decoded whether or not it includes geometry. Each consumes a fixed number of bytes, and skipping one by the wrong amount desynchronises everything after it. Extreme-G 2's dialect has twenty opcodes rather than fifteen and a visibility byte in front of every triangle, and the Windows port's tracks are the console's levels with their multi-byte fields swapped. One interpreter therefore serves all three builds. Models are ordinary display lists and are read straight off. A track's power-up pads and flame columns are placed from the entity stream the track region's+0x40pointer identifies, their models read from a second code segment the ROM stores compressed. The port's bikes are not converted. They take their vertices from segment 8. The engine fills segment 8 at run time, and the vertices are not in the game's files at all.dade xg2 xg2-to-glbalso writes eachBMCmotion clip as an animation. The skeleton the clips drive has no separate file. It is a region inside every rider model, identified by the seventh of the eight segment pointers in the model's header, and its 27 bones have 61 degrees of freedom. With the root's six, the degrees of freedom are exactly the 67 curves every clip has. A curve is a binary angle, a full turn to 65536. Anatomy confirms the scale rather than assumption. Across the seventeen clips, the scale bends the knees 130 and 122 degrees and the elbows 136 and 145, against roughly 135 and 150 for a real rider.- The LZHUF (
LHUF/HUFF) codec is implemented, and the archive entries that used to be dropped now decode. It was a placeholder that raised, and everyLHUFentry was logged and skipped.dade xg2 extract-xg1wrote its level containers as raw compressed slices and skipped the texture banks altogether, and both now come out decoded, the banks as PNG. It is the Okumura and Yoshizaki lineage, with the ring buffer zero-filled rather than space-filled and the decompressed size taken from the archive header rather than from a prefix on the stream, both as the game's decompressor atFUN_80057698does it. - The
dade xg2commands that take the Windows port'sDATA1directory (extract-xg2-pc,xg2-pc-to-glb, andmontage-pc) now also accept the disc it came on, as an ISO image or as the.cueor.binof a cue/bin pair. The disc is extracted to a temporary directory and read from there. File names are matched without regard to case. ISO 9660 stores them upper-cased where an installation stores them lower-cased. - An N64 ROM is accepted in any of the three byt...
v0.0.2
Immutable
release. Only release title and notes can be modified.
v0.0.1
Immutable
release. Only release title and notes can be modified.
Added
- Merged a collection of separate game asset extractors into a single
dadepackage, each exposed as a sub-command:amplitude(Amplitude/FreQuency),bit192(Tone Sphere),bitrock(InstallBuilder installers),i76(Interstate '76),incoming(Incoming),marmalade(Marmalade SDK),monopoly08(Monopoly 2008),thps2pc(Tony Hawk's Pro Skater 2 PC), andxg2(Extreme-G and Extreme-G 2). - A single multi-command entry point, invoked as
dade <game> <subcommand>. dade jubeatplusgroup for the Konami iOS game jubeat plus:unpackconverts a whole download to formats that open outside iOS. It accepts an.ipa, the.appbundle, thePayloaddirectory, or a directory holdingPayload, never writes to the source, and mirrors the bundle into the output directory. Apple-optimised (CgBI) PNGs are rewritten bypngdefry; enciphered.textextures are deciphered and rewritten the same way;.cafsound effects are rewrapped as WAV byffmpeg;.jbttune packages and the marker and share-image ZIPs are unpacked into directories named after themselves, with every entry deciphered and decoded; note charts become JSON with every event's panel, hold length, tempo, and time; and property lists, localisation tables, Core Data models, theSC_Infobookkeeping, and the executable's properties all become JSON. Every other file is copied unchanged. The assets use the sameBFCodeccipher as pop'n rhythmin, under seven keys of their own.--no-pngand--no-audioskip the two conversions that need a helper tool, and-j/--jobssets the pool size.dade rbplusgroup for the Konami iOS game REFLEC BEAT plus:unpackconverts a whole download to formats that open outside iOS,extract-assetsunpacks one of the three downloadable texture archives, anddump-chartwrites a single note chart.unpackaccepts an.ipa, the.appbundle, thePayloaddirectory, or a directory holdingPayload, never writes to the source, and mirrors the bundle into the output directory. A%09d.rbtune package becomes a directory: its metadata as JSON, its artwork and name strips as ordinary PNGs, each of its three note charts as both JSON and a rendered strip image, and its two audio streams as.m4a. Loose Apple-optimised PNGs are rewritten bypngdefry,.cafsound effects become WAV, and property lists, localisation tables, Core Data models, and theSC_Infobookkeeping all become JSON. Mach-O images are left behind entirely. Every other file is copied unchanged. The assets use the sameBFCodeccipher as pop'n rhythmin and jubeat plus, under two keys of their own, neither of which appears in the executable as a passphrase.- The RBFF note chart, versions 10 to 14: a header giving the scroll speed, end time, and record counts, then variable-length note records carrying an inline path-point array and an optional chain block, then thirty-six byte tempo events, then sixteen-byte slide records. A note's hit time is its two stored times added, which is also what makes two notes simultaneous. A chain is the note record's own doubly linked list: its chain block names the note before it and the note after it by identifier, with -1 at each end. Every one of the five flag bits a note carries is exactly redundant with another field: two mark a note struck at the same moment as one on its own or the other side, and the rest mark a chain block, a free note, and a note that travels to the other side to be swiped back, which the engine counts as a side object and which is the same bit as the one marking a path.
- A note's route selector, derived from its second target coordinate the way the engine derives it, says whether the chart names the note's lane. One naming a lane, 0 to 6, comes straight down into that lane and no randomness touches it: that is every slide and every vertical note. One naming 7, 8, or 9 is aimed at one of the three alternative targets beyond the lanes. Only a note naming nothing is laid out at run time, from a generator seeded with
rand(), so that part of a chart falls differently on every play. - A slide's records are its waypoints, one per point the finger passes through. Each gives the lane to be in and, in the same shape a note's own timing takes, a spawn time and a travel time whose sum is the moment to be there. The travel time is one constant per chart, the scroll lead-in, and the waypoints land on musical divisions of the tune's own tempo.
dade rhythmingroup for the Konami iOS game pop'n rhythmin: theBFCodeccipher (Blowfish with one deviation in its F function),dump-charafor downloaded character data,dump-idxfor AEP animation indexes,dump-mapfor sugoroku boards (JSON, a text board, or a rendered PNG),dump-sheetfor note charts from.orband.acvsong packages (JSON or a DDR-style strip image), andextract-dialoguefor the board dialogue pools inside an app binary.dade miscgroup for formats that belong to no single game:coredatadeserialises a compiled Core Data mapping (.cdm) or managed object (.mom) model to JSON, dumps the raw keyed archive, or emits the effective SQLite migration script;stringsreads an Xcode.stringstable in either the compiled or the old-style text form.dade misc macho dump, which writes the properties of a Mach-O image as JSON: the header and its flags, the segments and their sections, the libraries it links against, its UUID and source version, the minimum OS it declares, the entitlements inside its code signature, and, for an image bought from the App Store, theLC_ENCRYPTION_INFOcommand that says its text is still enciphered. It accepts an application's executable, a framework, or a dynamic library, thin or universal, and reads every architecture slice. It decrypts nothing and disassembles no code.dade misc sc-info dump, which describes theSC_InfoFairPlay bookkeeping in a purchased application bundle: the store item ID and App Store link, the manifest, the.sinfpurchase record and its atom tree, the.supfand.suppsupplements broken into their length-prefixed parts, the two Apple FairPlay certificates they embed with every extension broken out, the.supxtagged entries, and cross-checks between the parts. It accepts an.ipa, read in place without being unpacked, or theSC_Infodirectory, the bundle, thePayloaddirectory, or a directory holdingPayload. Every bundle in the download is read, including the app extensions underPlugInsand the watch app underWatch;--main-bundlekeeps only the application and--bundle NAMEkeeps one named bundle. Every set of protection files in anSC_Infois read, not only the first, since a directory can hold one set per executable.--jsonprints the same information as JSON, one entry per bundle, and--regionsupplies the storefront when noiTunesMetadata.plistsits beside the bundle. It decrypts nothing and prints no key material.ian2objandextract-pvr-packcommand-line utilities, nowdade incoming ian2objanddade incoming extract-pvr-pack.ian2objconverts Dreamcast*_M.BINmodel packs in addition to PC.ianmeshes.-j/--jobsoption to run Incoming file conversions concurrently, defaulting to the CPU count.- Three more shared modules under
dade.common, each lifted from a game package once a second consumer appeared:apple_pngfor thepngdefryconversion of Apple-optimised PNGs,audiofor theffmpegrewrap, andfontsfor the fontconfig lookup that picks a font with Japanese coverage.dade.jubeatplus.images,dade.jubeatplus.audio, anddade.rhythmin.renderkeep every name they exported. - Shared format code used by more than one game lives in a single
dade.commonpackage: WAV, PNG, and PPM writers, an LZSS decompressor, a Twofish cipher, theBFCodecBlowfish variant shared by pop'n rhythmin and jubeat plus, a CookFS reader, memory-mapped and byte-range readers, native-tool location, a converter registry, worker-pool helpers, per-run context, and text and filename utilities.
Changed
- Renamed the project from
incoming-extractortodade. The Incoming extractor is now thedade incomingsub-command and its package moved fromincoming_extractortodade.incoming. - File conversions now run concurrently across a pool of worker tasks instead of one at a time.
- The
.cfg,.sav,.xxx, and.levconverters now decode the files into fully structured JSON using schemas reverse-engineered fromincoming.exe, with named fields and a verified config checksum, instead of emitting the body as base64. - Ported the asset-format reference into the Sphinx documentation under
docs/formats/and expanded the documentation into separate, well-organised pages.
Full Changelog: https://github.com/Tatsh/dade/commits/v0.0.1