Skip to content

v2.1.2

Latest

Choose a tag to compare

@Crain99 Crain99 released this 02 Sep 03:59
070cafb

[2.1.2] - 2026-09-02

Fixes

  • 3.x script demux: Treat Creator 3.x rollup System.register("chunks:///_virtual/...") packs as SystemJS; demux one file per register id (e.g. Foo.ts) with stable cc._RF.push UUID metas — no more bogus setters.ts / empty module_N.js stubs
  • Demux MD5-cache bundle scripts (index.<hash>.js / game.<hash>.js); emit fused chunks:///main.js packs as game main.pack.js (not a vendor stub)
  • Park engine/vendor scripts (_virtual_cc-*, spine/bullet, builtin-pipeline*, rollup helpers, cocos-js) under assets/Scripts/_vendor/
  • Normalize config.paths db:// and db:/ (single-slash) so assets are not written under a literal db: directory
  • Strip leading assets/ after db:/ normalize — no double assets/<bundle>/assets/... prefix
  • Decode compressed uuids that carry @subAsset / @mip@format suffixes so native/...@….png lookups succeed
  • Use @suffix as ImageAsset subMetas id; strip /texture / /spriteFrame / @6c48a|@f9941 from output paths; fold uuid-only @ siblings onto parent ImageAsset (named or _packed/)
  • Sweep leftover native/ files; report per-bundle native image counts (and an explicit “import descriptors only” note for web-mobile with zero image bytes)
  • Issue #33: Write meta as basename+ext+.meta (e.g. logo.png.meta); do not emit orphan .png.meta when native PNG was not recovered
  • Issue #32 / #37: True 3.x builds emit scenes as .scene (+ matching meta); classic 2.4 bundle flavor keeps .fire
  • Fold Texture2D / SpriteFrame subAsset into parent ImageAsset .png.meta subMetas (Creator layout)
  • Strip trailing RootInfo from rehydrated IFileData; rehydrate packed Prefab pack sections end-to-end
  • Clearer recovery report: game vs vendor script counts; bundle Named vs Packed columns

Features

  • Issue #23: Demux packed bundle index.js / game.js into per-module files under assets/Scripts with .meta (preserves cc._RF UUID mounts)
  • Wire index.jsc / game.jsc decrypt on the 3.x path via existing jscDecryptor + --key / auto-key helpers
  • Honor bundle redirect entries when resolving assets

Tests

  • Vendor script classification + demux under _vendor/; report game/vendor + Named/Packed
  • Regression fixtures for meta names, no orphan meta without PNG, .scene for 3.x, .fire for 2.4, System.register demux, ImageAsset subMetas, packed Prefab rehydrate, MD5 index demux, db:/ path strip

Install

npm i -g cc-reverse@2.1.2
npx cc-reverse@2.1.2 --path ./build --output ./out --verbose

Related: #23 #32 #33 #36 #37 (please retest on latest main / 2.1.2 once published)