Skip to content

Commit 6d5ff47

Browse files
RagnarokOnline: unify offline extraction pipeline into a single script
The five stage scripts and the extract-all orchestrator collapse into src/RagnarokOnline/tools/extract.ts. Bare CLI args are the map-id filter; --only=stage1,stage2 (repeatable) restricts the run. The previously-missing extract-from-grf stage is now wired in.
1 parent 2907364 commit 6d5ff47

10 files changed

Lines changed: 1652 additions & 1589 deletions

File tree

src/RagnarokOnline/mapcategory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// Classifies a map by its id. Consumed by the scene list (grouping), the sky
33
// renderer (dome enable + default sky tint), and the fog path (dungeons only).
4-
// The category for each known map is baked into the manifest by gen-maps.ts;
4+
// The category for each known map is baked into the manifest by extract.ts (Stage 5);
55
// the runtime is just a lookup. Ids outside the manifest fall back to "other".
66

77
import { maps } from "./maps.js";

src/RagnarokOnline/maps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// Generated map manifest for the Ragnarok Online scene registry. Do not edit
33
// by hand: regenerate by running
4-
// npx tsx src/RagnarokOnline/tools/gen-maps.ts
4+
// npx tsx src/RagnarokOnline/tools/extract.ts --only=gen-maps
55
//
66
// 1014 entries (992 bare + 22
77
// pre-renewal classic variants with rebuilt geometry). 931 with an iRO

src/RagnarokOnline/particles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
// Per-map particle emitters from each map's compiled effecttool LUB. Offline,
3-
// `tools/extract-emitters.ts` runs the patched Lua 5.1 binary to dump emitter
3+
// `tools/extract.ts` (Stage 3) runs the patched Lua 5.1 binary to dump emitter
44
// tables to `<mapId>.emitters.json` next to the .rsw. At runtime we fetch the
55
// JSON, decode textures, transform to the render frame, and own a particle pool
66
// per emitter.

src/RagnarokOnline/tools/extract-all.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)