How garyttierney/me3 works
me3 is a framework for modifying and instrumenting supported FROMSOFTWARE games. The principal workflow starts with a user invoking the CLI to select a game and profile, then launches the game and attaches the mod host; the host applies runtime hooks and asset overrides. Profiles, package/dependency metadata, game-specific analysis, IPC, and telemetry support that flow. Relationships for unsampled subsystems are omitted or marked unverified where the excerpts do not establish their wiring.
Main entry points: lib.rs Attached mod host · launch.rs Launch command · profile.rs Profile commands · main.rs CLI commands
Components 22
CLI and profiles
- CLI commands
crates/cli/src/main.rs - Launch command
crates/cli/src/commands/launch.rs - Profile commands
crates/cli/src/commands/profile.rs - Profile database
crates/cli/src/db/profile.rs - Configuration
crates/cli/src/config.rs - Launch logs
crates/cli/src/db/logs.rs
Game launch
- Game launcher
crates/launcher/src/main.rs - Game process
crates/launcher/src/game.rs - Launch strategies
crates/cli/src/commands/launch/strategy/compat_tool.rs - Attach protocol
crates/launcher-attach-protocol/src/lib.rs
Mod host runtime
- Attached mod host
crates/mod-host/src/lib.rs - Asset hooks
crates/mod-host/src/asset_hooks.rs - Virtual filesystem
crates/mod-host/src/filesystem.rs - Asset mappings
crates/mod-host-assets/src/mapping.rs - Native mods
crates/mod-host/src/native.rs
Runtime support
- Profile and package model
crates/mod-protocol/src/dependency.rs - Binary analysis
crates/binary-analysis/src/rtti.rs - Process IPC bridge
crates/ipc/src/bridge.rs - Telemetry
crates/telemetry/src/lib.rs - Game data types
crates/mod-host-types/src/tree.rs
Other components
- Game user
- Target game
Connections 23
- Game user → CLI commands: invokes
README.md - CLI commands → Launch command: dispatches
crates/cli/src/main.rs - CLI commands → Profile commands: dispatches
crates/cli/src/main.rs - Profile commands → Profile database: loads profiles
crates/cli/src/commands/profile.rs - Profile commands → Configuration: reads options
crates/cli/src/commands/profile.rs - Profile commands → Launch logs: writes output
- Launch command → Launch strategies: selects strategy
crates/cli/src/commands/launch.rs - Launch command → Profile database: resolves profile
- Launch command → Launch logs: creates log
crates/cli/src/commands/launch.rs - Launch command → Game launcher: starts launcher
- Game launcher → Game process: launches process
crates/launcher/src/main.rs - Game launcher → Attach protocol: sends attach request
crates/launcher/src/main.rs - Target game → Attached mod host: receives attachment
- Attached mod host → Process IPC bridge: opens bridge
crates/mod-host/src/lib.rs - Attached mod host → Asset mappings: scans packages
crates/mod-host/src/lib.rs - Attached mod host → Binary analysis: analyzes executable
crates/mod-host/src/lib.rs - Attached mod host → Asset hooks: installs hooks
crates/mod-host/src/asset_hooks.rs - Asset hooks → Virtual filesystem: intercepts access
crates/mod-host/src/asset_hooks.rs - Virtual filesystem → Asset mappings: resolves assets
- Attached mod host → Native mods: loads natives
crates/mod-host/src/lib.rs - Profile database → Profile and package model: parses profile data
- Attached mod host → Telemetry: reports events
- Game data types → Profile and package model: uses game model
crates/mod-host-types/src/tree.rs