# ROM Organization Visual Comparison Visual comparison of different build configurations and their resulting folder structures. --- ## USA 1G1R Build **Configuration:** ```bash export KEEP_IN_ROOT_REGIONS="USA,World" export KEEP_IN_ROOT_KINDS="" export ORGANIZE_LANGUAGES_BY_SYMLINK="false" export LANGUAGE_EXCLUDE_REGIONS="" ``` **Use Case:** USA-only game collection for casual players **Directory Structure:** ``` nes.usa.1g1r/ │ ├── Super Mario Bros (USA).nes ← USA: Root ├── The Legend of Zelda (USA).nes ← USA: Root ├── Metroid (USA).nes ← USA: Root ├── Tetris (World).nes ← World: Root │ └── By Region/ ← International games organized ├── Europe/ │ ├── Terranigma (Europe) (En,Fr,De).nes │ └── Suikoden (Europe) (En).nes └── Japan/ ├── Final Fantasy (Japan) (En).nes └── Mother 3 (Japan) (Ja).nes ``` **Characteristics:** - ✅ USA/World games in root (easy access) - ✅ International games organized by region - ✅ No language folders (all USA games are English) - ✅ Simple, clean structure - ❌ No way to find international English games --- ## English 1G1R Build **Configuration:** ```bash export KEEP_IN_ROOT_REGIONS="USA,World" export KEEP_IN_ROOT_KINDS="" export ORGANIZE_LANGUAGES_BY_SYMLINK="true" export LANGUAGE_EXCLUDE_REGIONS="USA,World" ``` **Use Case:** English speakers who want access to international English games **Directory Structure:** ``` nes.eng.1g1r/ │ ├── Super Mario Bros (USA).nes ← USA: Root (excluded from English folder) ├── The Legend of Zelda (USA).nes ← USA: Root (excluded from English folder) ├── Metroid (USA).nes ← USA: Root (excluded from English folder) ├── Tetris (World).nes ← World: Root (excluded from English folder) │ ├── By Region/ ← Physical files │ ├── Europe/ │ │ ├── Terranigma (Europe) (En,Fr,De).nes │ │ └── Suikoden (Europe) (En).nes │ ├── Japan/ │ │ ├── Final Fantasy (Japan) (En).nes │ │ └── Dragon Quest (Japan) (En,Ja).nes │ └── France/ │ └── Asterix (France) (Fr).nes │ └── By Language/ ← Symlinks to physical files ├── English/ ← ONLY non-USA English games │ ├── Terranigma (Europe) (En,Fr,De).nes ──→ ../../By Region/Europe/... │ ├── Suikoden (Europe) (En).nes ───────────→ ../../By Region/Europe/... │ ├── Final Fantasy (Japan) (En).nes ──────→ ../../By Region/Japan/... │ └── Dragon Quest (Japan) (En,Ja).nes ────→ ../../By Region/Japan/... │ ├── French/ │ ├── Terranigma (Europe) (En,Fr,De).nes ──→ ../../By Region/Europe/... │ └── Asterix (France) (Fr).nes ────────────→ ../../By Region/France/... │ ├── German/ │ └── Terranigma (Europe) (En,Fr,De).nes ──→ ../../By Region/Europe/... │ └── Japanese/ └── Dragon Quest (Japan) (En,Ja).nes ────→ ../../By Region/Japan/... ``` **Characteristics:** - ✅ USA/World games in root (easy access to most common games) - ✅ International games organized by region - ✅ Language folders show games by language - ✅ **USA games excluded from English folder** (prevents clutter) - ✅ English folder shows **only** international English games - ✅ Multi-language games appear in multiple folders - ✅ No file duplication (symlinks only) **Why exclude USA from English folder?** - USA region typically has 500+ games - All USA games are English - Would dominate the English folder - USA games already accessible in root - English folder focuses on **international** English games --- ## All Languages Build **Configuration:** ```bash export KEEP_IN_ROOT_REGIONS="USA,World" export KEEP_IN_ROOT_KINDS="" export ORGANIZE_LANGUAGES_BY_SYMLINK="true" export LANGUAGE_EXCLUDE_REGIONS="" ← No exclusions! ``` **Use Case:** Collectors who want to browse ALL games by language **Directory Structure:** ``` nes.all.1g1r/ │ ├── Super Mario Bros (USA).nes ├── The Legend of Zelda (USA).nes ├── Metroid (USA) (En,Fr).nes ← Multi-language USA game ├── Tetris (World).nes │ ├── By Region/ │ ├── Europe/ │ │ └── Terranigma (Europe) (En,Fr,De).nes │ └── Japan/ │ ├── Final Fantasy (Japan) (En).nes │ └── Mother 3 (Japan) (Ja).nes │ └── By Language/ ├── English/ ← USA + International │ ├── Super Mario Bros (USA).nes ──────────→ ../../... │ ├── The Legend of Zelda (USA).nes ───────→ ../../... │ ├── Metroid (USA) (En,Fr).nes ───────────→ ../../... │ ├── Tetris (World).nes ──────────────────→ ../../... │ ├── Terranigma (Europe) (En,Fr,De).nes ──→ ../../By Region/Europe/... │ └── Final Fantasy (Japan) (En).nes ──────→ ../../By Region/Japan/... │ ├── French/ │ ├── Metroid (USA) (En,Fr).nes ───────────→ ../../... │ └── Terranigma (Europe) (En,Fr,De).nes ──→ ../../By Region/Europe/... │ ├── German/ │ └── Terranigma (Europe) (En,Fr,De).nes ──→ ../../By Region/Europe/... │ └── Japanese/ └── Mother 3 (Japan) (Ja).nes ────────────→ ../../By Region/Japan/... ``` **Characteristics:** - ✅ USA/World games in root - ✅ International games organized by region - ✅ Language folders include ALL games (USA + international) - ✅ English folder has 500+ games (all USA + international) - ✅ Complete language browsing capability - ❌ English folder dominated by USA games - ❌ Harder to find international English games --- ## Fully Organized Build (No Root Games) **Configuration:** ```bash export KEEP_IN_ROOT_REGIONS="" ← Organize all regions export KEEP_IN_ROOT_KINDS="" export ORGANIZE_LANGUAGES_BY_SYMLINK="true" export LANGUAGE_EXCLUDE_REGIONS="" ``` **Use Case:** Strict organization - everything categorized **Directory Structure:** ``` nes.all.1g1r/ │ ├── By Region/ ← ALL games organized by region │ ├── USA/ │ │ ├── Super Mario Bros (USA).nes │ │ ├── The Legend of Zelda (USA).nes │ │ └── Metroid (USA) (En,Fr).nes │ │ │ ├── World/ │ │ └── Tetris (World).nes │ │ │ ├── Europe/ │ │ └── Terranigma (Europe) (En,Fr,De).nes │ │ │ └── Japan/ │ ├── Final Fantasy (Japan) (En).nes │ └── Mother 3 (Japan) (Ja).nes │ └── By Language/ ├── English/ │ ├── Super Mario Bros (USA).nes ───────────→ ../../By Region/USA/... │ ├── The Legend of Zelda (USA).nes ────────→ ../../By Region/USA/... │ ├── Metroid (USA) (En,Fr).nes ────────────→ ../../By Region/USA/... │ ├── Tetris (World).nes ───────────────────→ ../../By Region/World/... │ ├── Terranigma (Europe) (En,Fr,De).nes ───→ ../../By Region/Europe/... │ └── Final Fantasy (Japan) (En).nes ───────→ ../../By Region/Japan/... │ ├── French/ │ ├── Metroid (USA) (En,Fr).nes ────────────→ ../../By Region/USA/... │ └── Terranigma (Europe) (En,Fr,De).nes ───→ ../../By Region/Europe/... │ └── Japanese/ └── Mother 3 (Japan) (Ja).nes ─────────────→ ../../By Region/Japan/... ``` **Characteristics:** - ✅ Completely organized - no games in root - ✅ Region browsing capability - ✅ Language browsing capability - ❌ USA games harder to access (buried in subfolder) - ❌ More navigation required to reach common games --- ## Kind Organization Examples Kinds are organized **within** their current location (root or region folder). ### Beta/Proto Organization **Before:** ``` nes.usa.1g1r/ ├── Super Mario Bros (USA).nes ├── Super Mario Bros (USA) (Beta).nes └── Zelda (USA) (Proto).nes ``` **After (with `KEEP_IN_ROOT_KINDS=""`):** ``` nes.usa.1g1r/ ├── Super Mario Bros (USA).nes ← Release version stays │ └── Beta Proto/ ← Kinds organized ├── Super Mario Bros (USA) (Beta).nes └── Zelda (USA) (Proto).nes ``` **After (with `KEEP_IN_ROOT_KINDS="Beta,Proto"`):** ``` nes.usa.1g1r/ ├── Super Mario Bros (USA).nes ← Release version ├── Super Mario Bros (USA) (Beta).nes ← Beta kept in place └── Zelda (USA) (Proto).nes ← Proto kept in place ``` ### Recursive Kind Organization Kinds are organized in **both** root and region subfolders: **Before:** ``` nes.usa.1g1r/ ├── Super Mario Bros (USA) (Beta).nes ← Root beta ├── By Region/ │ └── Europe/ │ └── Terranigma (Europe) (Beta).nes ← Region beta ``` **After:** ``` nes.usa.1g1r/ ├── Beta Proto/ │ └── Super Mario Bros (USA) (Beta).nes ← Organized in root │ └── By Region/ └── Europe/ └── Beta Proto/ └── Terranigma (Europe) (Beta).nes ← Organized in region ``` --- ## Multi-Language ROM Behavior A single ROM with multiple language tags appears in multiple language folders: **ROM:** `Secret of Mana (Europe) (En,Fr,De,Es).nes` **Physical Location:** ``` By Region/Europe/Secret of Mana (Europe) (En,Fr,De,Es).nes ``` **Symlinks Created:** ``` By Language/English/Secret of Mana (Europe) (En,Fr,De,Es).nes → ../../By Region/Europe/... By Language/French/Secret of Mana (Europe) (En,Fr,De,Es).nes → ../../By Region/Europe/... By Language/German/Secret of Mana (Europe) (En,Fr,De,Es).nes → ../../By Region/Europe/... By Language/Spanish/Secret of Mana (Europe) (En,Fr,De,Es).nes → ../../By Region/Europe/... ``` **Result:** - Physical file exists once (saves disk space) - Appears in 4 language folders (convenience) - Each symlink points to same physical file --- ## Build Type Decision Matrix | Build Type | Region In Root | Language Symlinks | Exclude USA | Best For | |------------|----------------|-------------------|-------------|----------| | **USA 1G1R** | USA, World | No | N/A | USA-only players | | **English 1G1R** | USA, World | Yes | USA, World | English speakers wanting international games | | **All Languages** | USA, World | Yes | No | Collectors/multi-language users | | **Fully Organized** | None | Yes | No | Strict organization enthusiasts | | **Japan Focus** | Japan | Yes | Japan | Japanese collectors | | **Europe Focus** | Europe | Yes | Europe | European collectors | --- ## Summary ### USA Build Philosophy - **Focus:** Simplicity and quick access to USA games - **Structure:** USA in root, international organized by region - **No language folders:** Unnecessary (all USA games are English) ### English Build Philosophy - **Focus:** USA games accessible, international English discoverable - **Structure:** USA in root, international by region + language symlinks - **Exclude USA from English folder:** Prevent clutter (500+ games) - **English folder:** Shows **only** international English games ### All Languages Build Philosophy - **Focus:** Complete language browsing capability - **Structure:** USA in root, international by region + language symlinks for all - **Include everything:** No exclusions, all games in language folders ### Key Insight **Physical organization (region/kind) vs Virtual organization (language)** - Regions/kinds **move** files to new locations - Languages create **symlinks** for alternate views - No file duplication, maximum flexibility --- ## See Also - [BUILD-SCRIPT-CONFIGURATION.md](./BUILD-SCRIPT-CONFIGURATION.md) - Configuration guide - [LANGUAGE-SYMLINK-IMPLEMENTATION.md](./LANGUAGE-SYMLINK-IMPLEMENTATION.md) - Implementation details - [organize-roms.sh](../organizers/organize-roms.sh) - Main organization script - [test-language-symlinks.sh](../tests/test-language-symlinks.sh) - Test suite