# Build Wizard - Interactive Quick Start ## ๐Ÿš€ One Command to Rule Them All ```bash ./build-wizard ``` The interactive wizard guides you through building perfect ROM collections with beautiful menus and zero guesswork! --- ## ๐ŸŽฏ What It Does ### Auto-Discovery Scans your configuration and shows: - โœ… All available platforms (15 found) - โœ… All selection strategies (4 found) - โœ… All existing builds (11 found) ### Guided Flow Asks you exactly what you need: 1. Create new or use existing build? 2. Which platform? (Saturn, PS3, PSX, etc.) 3. How many games? (10 for testing, 40GB for production, etc.) 4. Confirm and run! ### Smart Validation - Checks configs before running - Shows you the exact command it will execute - Confirms before starting the build --- ## ๐Ÿ“‹ Example Session ```bash $ ./build-wizard โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ ๐ŸŽฎ ROM Farmer Quick Build โ”‚ โ”‚ Interactive wizard for building ROM collections โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ Discovering available configurations... โœ“ Found 15 platforms โœ“ Found 4 selections โœ“ Found 11 existing builds Step 1: Build Configuration Would you like to use an existing build or create a new one? 1. Create new build (guided) 2. Use existing build Choice [1/2] (1): 1 Step 2: Select Platform Available Platforms โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“ โ”ƒ # โ”ƒ Platform โ”ƒ Games โ”ƒ Description โ”ƒ โ”กโ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ โ”‚ 1 โ”‚ saturn โ”‚ 318 โ”‚ Sega Saturn โ”‚ โ”‚ 2 โ”‚ psx โ”‚ 1798 โ”‚ PlayStation โ”‚ โ”‚ 3 โ”‚ ps3 โ”‚ 800 โ”‚ PS3 โ”‚ โ”‚ 4 โ”‚ virtualboy โ”‚ 30 โ”‚ Virtual Boy โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ Select platform (1-15) (1): 1 โœ“ Selected: saturn Step 3: Select Strategy How many games do you want to process? Available Selection Strategies โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“ โ”ƒ # โ”ƒ Name โ”ƒ Strategy โ”ƒ Limit โ”ƒ Description โ”ƒ โ”กโ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ โ”‚ 1 โ”‚ usa-10 โ”‚ first โ”‚ 10 โ”‚ First 10... โ”‚ โ”‚ 2 โ”‚ rating-budget-40gb โ”‚ rating_budget โ”‚ โ€” (40.0GB) โ”‚ Top-rated...โ”‚ โ”‚ 3 โ”‚ smallest-5 โ”‚ smallest โ”‚ 5 โ”‚ 5 smallest..โ”‚ โ”‚ 4 โ”‚ multi-disc-20 โ”‚ first โ”‚ 20 โ”‚ 20 multi-...โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ Select strategy (1-4 (or 0 for none)) (1): 1 โœ“ Selected: usa-10 โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Review โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ Build Summary โ”‚ โ”‚ โ”‚ โ”‚ Platform: saturn โ”‚ โ”‚ Selection: usa-10 โ”‚ โ”‚ Games: 318 available โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ Proceed with build? [y/n] (y): y โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Executing โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ python3 -m romfarmer build run saturn-usa10-test โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ [Starting build...] ``` --- ## ๐ŸŽฎ Quick Test (Recommended First Run) ```bash ./build-wizard # Select: saturn (option 1) # Select: usa-10 (option 1) # Confirm: y # Result: 10 USA Saturn games in ~5 minutes ``` This validates: - โœ… Your source ROMs are accessible - โœ… DAT files are working - โœ… Extraction pipeline functions - โœ… CHD compression works - โœ… Output organization is correct --- ## ๐Ÿ“Š Selection Strategies Explained ### Testing Strategies (Fast) **usa-10** - `10 games in ~5 minutes` ```yaml strategy: first limit: 10 pattern: "*USA*" ``` Perfect for: Initial testing, validating pipeline **smallest-5** - `5 games in ~2 minutes` ```yaml strategy: smallest limit: 5 ``` Perfect for: Fast iteration, PS3 testing (large files) **multi-disc-20** - `20 games in ~10 minutes` ```yaml strategy: first limit: 20 pattern: "*Disc*" ``` Perfect for: Testing M3U generation, PSX multi-disc games ### Production Strategies (Curated) **rating-budget-40gb** - `Top quality within 40GB` ```yaml strategy: rating_budget max_size_gb: 40.0 min_rating: 0.0 ``` Perfect for: Storage-limited devices, best games only --- ## ๐Ÿ”ง Advanced Usage ### Skip Interactive Mode ```bash python3 -m romfarmer quick --platform saturn --selection usa-10 ``` ### Run Specific Build ```bash python3 -m romfarmer build run saturn-usa10-test ``` ### See Available Options ```bash ls config/platforms/ # All platforms ls config/selections/ # All strategies ls config/builds/ # All builds ``` --- ## ๐Ÿ“‚ File Locations ``` rom-farmer/ โ”œโ”€โ”€ build-wizard โ† Run this! โ”œโ”€โ”€ logs/ โ† Build logs here โ”‚ โ””โ”€โ”€ romfarmer_*.log โ”œโ”€โ”€ config/ โ”‚ โ”œโ”€โ”€ platforms/ โ† Platform configs โ”‚ โ”œโ”€โ”€ selections/ โ† Selection strategies โ”‚ โ””โ”€โ”€ builds/ โ† Build definitions โ””โ”€โ”€ src/ โ† Source code ``` **Source ROMs:** ``` /path/to/roms// ``` **Output Collections:** ``` /path/to/output/// ``` **Temp Processing:** ``` /path/to/temp// ``` --- ## ๐Ÿ” Monitoring Progress ### Watch Logs Live ```bash tail -f logs/romfarmer_*.log ``` ### Check for Errors ```bash grep -i error logs/romfarmer_*.log | tail -20 ``` ### See Current Processing ```bash ls -lh /path/to/temp/saturn/ ``` --- ## ๐Ÿ’ก Pro Tips ### 1. Always Test First Run small selections (usa-10, smallest-5) before big builds ### 2. Keep Logs Terminal Open ```bash tail -f logs/*.log ``` ### 3. Check Disk Space ```bash df -h /path/to/... df -h /path/to/... ``` ### 4. Reuse Successful Configs Share your `config/builds/*.yaml` files ### 5. Create Custom Selections Add YAML to `config/selections/` for your needs --- ## ๐Ÿ†˜ Troubleshooting ### "No platforms found" Check: `ls config/platforms/*.yaml` ### "No selections found" Check: `ls config/selections/*.yaml` ### "Build validation failed" Run with validation only: ```bash python3 -m romfarmer build run --validate-only ``` ### "Permission denied" Make executable: ```bash chmod +x build-wizard ``` --- ## ๐ŸŽฏ What You Get ### Example: Saturn usa-10 Build **Input:** - 2,393 ZIP files in `/path/to/roms/saturn/` **Processing:** 1. DAT filter: 318 matched games 2. Selection filter: 10 USA games 3. Extract BIN/CUE from ZIPs 4. Convert to CHD format (best compression) 5. Generate M3U for multi-disc games 6. Organize for target device **Output:** ``` /path/to/output/test/saturn/ โ”œโ”€โ”€ Game 1 (USA).chd โ”œโ”€โ”€ Game 2 (USA) (Disc 1).chd โ”œโ”€โ”€ Game 2 (USA) (Disc 2).chd โ”œโ”€โ”€ Game 2 (USA).m3u โ””โ”€โ”€ ... (10 games total) ``` Ready to copy to your device and play! ๐ŸŽฎ --- ## ๐Ÿš€ Next Steps 1. โœ… Run `./build-wizard` 2. โœ… Select Saturn + usa-10 3. โœ… Watch it complete successfully 4. โœ… Examine output in /path/to/output/ 5. โœ… Try other platforms! 6. โœ… Create custom selections for your needs --- ## ๐ŸŒŸ Why This Is Amazing ### Before (Manual Process): 1. Download DAT files 2. Manually match ROMs 3. Extract archives 4. Convert formats 5. Organize files 6. Repeat for each platform 7. **Time: Hours per platform** ### After (Build Wizard): 1. Run `./build-wizard` 2. Select options from menus 3. Confirm 4. **Time: One click** **The wizard does everything automatically! ๐ŸŽ‰** --- **Built with โค๏ธ for the ROM preservation community** *"One command to build them all!"*